Changeset 2225 for LMDZ5/trunk/libf/dyn3dpar
- Timestamp:
- Mar 11, 2015, 3:55:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3dpar/gcm.F
r2222 r2225 24 24 ! Only INCA needs these informations (from the Earth's physics) 25 25 USE indice_sol_mod 26 USE mod_phys_lmdz_omp_data, ONLY: klon_omp 26 27 #endif 27 28 28 29 #ifdef CPP_PHYS 29 USE mod_grid_phy_lmdz 30 USE mod_phys_lmdz_para, ONLY : klon_mpi_para_nb 31 USE mod_phys_lmdz_omp_data, ONLY: klon_omp 32 USE dimphy 33 USE comgeomphy 30 ! USE mod_grid_phy_lmdz 31 ! USE mod_phys_lmdz_para, ONLY : klon_mpi_para_nb 32 ! USE dimphy 33 ! USE comgeomphy 34 34 #endif 35 35 IMPLICIT NONE … … 105 105 106 106 LOGICAL lafin 107 c INTEGER ij,iq,l,i,j108 INTEGER i,j109 110 107 111 108 real time_step, t_wrt, t_ops 112 109 113 114 LOGICAL call_iniphys115 data call_iniphys/.true./116 110 117 111 c+jld variables test conservation energie … … 136 130 137 131 c----------------------------------------------------------------------- 138 c variables pour l'initialisation de la physique :139 c ------------------------------------------------140 INTEGER ngridmx141 PARAMETER( ngridmx = 2+(jjm-1)*iim - 1/jjm )142 REAL zcufi(ngridmx),zcvfi(ngridmx)143 REAL latfi(ngridmx),lonfi(ngridmx)144 REAL airefi(ngridmx)145 SAVE latfi, lonfi, airefi146 147 INTEGER :: ierr148 149 150 c-----------------------------------------------------------------------151 132 c Initialisations: 152 133 c ---------------- … … 181 162 #ifdef CPP_PHYS 182 163 CALL Init_Phys_lmdz(iim,jjp1,llm,mpi_size,distrib_phys) 183 #endif 164 !#endif 165 ! CALL set_bands 166 !#ifdef CPP_PHYS 167 CALL Init_interface_dyn_phys 168 #endif 169 CALL barrier 170 184 171 CALL set_bands 185 #ifdef CPP_PHYS186 CALL Init_interface_dyn_phys187 #endif188 CALL barrier189 190 172 if (mpi_rank==0) call WriteBands 191 173 call SetDistrib(jj_Nb_Caldyn) … … 195 177 c$OMP END PARALLEL 196 178 197 #ifdef CPP_PHYS198 c$OMP PARALLEL199 call InitComgeomphy 200 c$OMP END PARALLEL201 #endif179 !#ifdef CPP_PHYS 180 !c$OMP PARALLEL 181 ! call InitComgeomphy ! now done in iniphysiq 182 !c$OMP END PARALLEL 183 !#endif 202 184 203 185 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 419 401 c Initialisation de la physique : 420 402 c ------------------------------- 421 IF (call_iniphys.and.(iflag_phys==1.or.iflag_phys>=100)) THEN 422 latfi(1)=rlatu(1) 423 lonfi(1)=0. 424 zcufi(1) = cu(1) 425 zcvfi(1) = cv(1) 426 DO j=2,jjm 427 DO i=1,iim 428 latfi((j-2)*iim+1+i)= rlatu(j) 429 lonfi((j-2)*iim+1+i)= rlonv(i) 430 zcufi((j-2)*iim+1+i) = cu((j-1)*iip1+i) 431 zcvfi((j-2)*iim+1+i) = cv((j-1)*iip1+i) 432 ENDDO 433 ENDDO 434 latfi(ngridmx)= rlatu(jjp1) 435 lonfi(ngridmx)= 0. 436 zcufi(ngridmx) = cu(ip1jm+1) 437 zcvfi(ngridmx) = cv(ip1jm-iim) 438 CALL gr_dyn_fi(1,iip1,jjp1,ngridmx,aire,airefi) 439 ! Poles are single points on physics grid 440 airefi(1)=sum(aire(1:iim)) 441 airefi(ngridmx)=sum(aire(ip1jmp1-(iim+1)+1:ip1jmp1-1)) 442 ! WRITE(lunout,*) 443 ! . 'GCM: WARNING!!! vitesse verticale nulle dans la physique' 403 IF ((iflag_phys==1).or.(iflag_phys>=100)) THEN 444 404 ! Physics: 445 405 #ifdef CPP_PHYS 446 CALL iniphysiq( ngridmx,llm,daysec,day_ini,dtphys/nsplit_phys,447 & latfi,lonfi,airefi,zcufi,zcvfi,rad,g,r,cpp,406 CALL iniphysiq(iim,jjm,llm,daysec,day_ini,dtphys/nsplit_phys, 407 & rlatu,rlonv,aire,cu,cv,rad,g,r,cpp, 448 408 & iflag_phys) 449 409 #endif 450 call_iniphys=.false. 451 ENDIF ! of IF (call_iniphys.and.(iflag_phys==1.or.iflag_phys>=100)) 410 ENDIF ! of IF ((iflag_phys==1).or.(iflag_phys>=100)) 452 411 453 412
Note: See TracChangeset
for help on using the changeset viewer.