Changeset 3852 for dynamico_lmdz/aquaplanet/ICOSA_LMDZ/src
- Timestamp:
- Jul 15, 2015, 1:08:35 PM (9 years ago)
- Location:
- dynamico_lmdz/aquaplanet/ICOSA_LMDZ/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/ICOSA_LMDZ/src/distrib_icosa_lmdz.f90
r3841 r3852 45 45 DO j=jj_begin,jj_end 46 46 DO i=ii_begin,ii_end 47 ij=(j-1)*iim+i 48 pos_tmp=pos_tmp+1 49 IF (pos_tmp >= klon_omp_begin .AND. pos_tmp <= klon_omp_end) nindex=nindex+1 47 IF (domain(ind)%own(i,j)) THEN 48 pos_tmp=pos_tmp+1 49 IF (pos_tmp >= klon_omp_begin .AND. pos_tmp <= klon_omp_end) nindex=nindex+1 50 ENDIF 50 51 ENDDO 51 52 ENDDO … … 63 64 DO i=ii_begin,ii_end 64 65 ij=(j-1)*iim+i 65 pos=pos+1 66 IF (pos >= klon_omp_begin .AND. pos <= klon_omp_end) THEN 67 nindex=nindex+1 68 distrib_physic(ndomain_distrib)%index(nindex)=ij 66 IF (domain(ind)%own(i,j)) THEN 67 pos=pos+1 68 IF (pos >= klon_omp_begin .AND. pos <= klon_omp_end) THEN 69 nindex=nindex+1 70 distrib_physic(ndomain_distrib)%index(nindex)=ij 71 ENDIF 69 72 ENDIF 70 73 ENDDO -
dynamico_lmdz/aquaplanet/ICOSA_LMDZ/src/interface_icosa_lmdz.f90
r3841 r3852 2 2 3 3 USE field_mod, ONLY: t_field 4 USE transfert_mod, ONLY: t_message 4 USE transfert_mod, ONLY: t_message 5 5 6 6 7 TYPE(t_message) :: req_u 7 TYPE(t_message),SAVE :: req_u 8 TYPE(t_message),SAVE :: req_dps0, req_dulon0, req_dulat0, req_dTemp0, req_dq0 8 9 9 10 TYPE(t_field),POINTER,SAVE :: f_p(:) … … 48 49 USE xios_mod 49 50 USE time_mod , init_time_icosa=> init_time 50 51 USE transfert_mod 52 51 53 ! from LMDZ 52 54 USE mod_grid_phy_lmdz, ONLY : unstructured … … 112 114 CALL allocate_field(f_dps,field_t,type_real) 113 115 CALL allocate_field(f_duc,field_t,type_real,3,llm) 116 117 CALL init_message(f_dps,req_i0,req_dps0) 118 CALL init_message(f_dulon,req_i0,req_dulon0) 119 CALL init_message(f_dulat,req_i0,req_dulat0) 120 CALL init_message(f_dTemp,req_i0,req_dTemp0) 121 CALL init_message(f_dq,req_i0,req_dq0) 114 122 !$OMP END PARALLEL 115 123 … … 117 125 DO ind=1,ndomain 118 126 CALL swap_dimensions(ind) 119 nbp_phys=nbp_phys+ii_nb*jj_nb 127 DO j=jj_begin,jj_end 128 DO i=ii_begin,ii_end 129 IF (domain(ind)%own(i,j)) nbp_phys=nbp_phys+1 130 ENDDO 131 ENDDO 120 132 ENDDO 121 133 … … 392 404 ENDIF 393 405 394 IF(it==itaumax) THEN 406 407 IF(it-itau0>=itaumax) THEN 395 408 lafin=.TRUE. 396 409 ELSE … … 485 498 CALL transfer_lmdz_to_icosa(dq_phy , f_dq ) 486 499 CALL transfer_lmdz_to_icosa(dps_phy , f_dps ) 487 488 500 501 CALL send_message(f_dps,req_dps0) 502 CALL send_message(f_dulon,req_dulon0) 503 CALL send_message(f_dulat,req_dulat0) 504 CALL send_message(f_dTemp,req_dTemp0) 505 CALL send_message(f_dq,req_dq0) 506 507 CALL wait_message(req_dps0) 508 CALL wait_message(req_dulon0) 509 CALL wait_message(req_dulat0) 510 CALL wait_message(req_dTemp0) 511 CALL wait_message(req_dq0) 489 512 490 513
Note: See TracChangeset
for help on using the changeset viewer.