Changeset 1279 for LMDZ4/trunk/libf/dyn3d/calfis.F
- Timestamp:
- Dec 10, 2009, 10:02:56 AM (15 years ago)
- Location:
- LMDZ4/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk
- Property svn:mergeinfo changed
/LMDZ4/branches/LMDZ4-dev merged: 1150-1162,1164-1193,1195-1231,1234-1235,1237-1240,1242-1274,1276
- Property svn:mergeinfo changed
-
LMDZ4/trunk/libf/dyn3d/calfis.F
r1146 r1279 1 1 ! 2 ! $ Header$2 ! $Id$ 3 3 ! 4 4 C 5 5 C 6 6 SUBROUTINE calfis(lafin, 7 $ rdayvrai, 8 $ heure, 7 $ jD_cur, jH_cur, 9 8 $ pucov, 10 9 $ pvcov, … … 102 101 c ----------- 103 102 LOGICAL lafin 104 REAL heure 103 105 104 106 105 REAL pvcov(iip1,jjm,llm) … … 170 169 DATA firstcal/.true./ 171 170 SAVE firstcal,debut 172 REAL rdayvrai 171 ! REAL rdayvrai 172 REAL, intent(in):: jD_cur, jH_cur 173 173 c 174 174 c----------------------------------------------------------------------- … … 177 177 c -------------------- 178 178 c 179 180 IF (ngridmx.NE.2+(jjm-1)*iim) THEN 179 c 180 IF ( firstcal ) THEN 181 debut = .TRUE. 182 IF (ngridmx.NE.2+(jjm-1)*iim) THEN 181 183 PRINT*,'STOP dans calfis' 182 184 PRINT*,'La dimension ngridmx doit etre egale a 2 + (jjm-1)*iim' … … 184 186 PRINT*,ngridmx,jjm,iim 185 187 STOP 186 ENDIF 187 188 c----------------------------------------------------------------------- 189 c latitude, longitude et aires des mailles pour la physique: 190 c ---------------------------------------------------------- 191 192 c 193 IF ( firstcal ) THEN 194 debut = .TRUE. 188 ENDIF 195 189 ELSE 196 197 ENDIF 190 debut = .FALSE. 191 ENDIF ! of IF (firstcal) 198 192 199 193 c … … 290 284 291 285 c convergence dynamique pour les traceurs "EAU" 292 293 DO iq=1,2 286 ! Earth-specific treatment of first 2 tracers (water) 287 if (planet_type=="earth") then 288 DO iq=1,2 294 289 DO l=1,llm 295 290 pcvgq(1,l,iq)= pdq(1,1,l,iq) / pmasse(1,1,l) … … 303 298 pcvgq(ig0,l,iq)= pdq(1,jjp1,l,iq) / pmasse(1,jjp1,l) 304 299 ENDDO 305 ENDDO 300 ENDDO 301 endif ! of if (planet_type=="earth") 306 302 307 303 … … 428 424 ENDDO 429 425 c 426 if (planet_type=="earth") then 427 #ifdef CPP_EARTH 430 428 cIM calcul PV a teta=350, 380, 405K 431 429 CALL PVtheta(ngridmx,llm,pucov,pvcov,pteta, 432 430 $ ztfi,zplay,zplev, 433 431 $ ntetaSTD,rtetaSTD,PVteta) 432 #endif 433 endif 434 434 c 435 435 c On change de grille, dynamique vers physiq, pour le flux de masse verticale … … 441 441 442 442 443 if (planet_type=="earth") then 444 #ifdef CPP_EARTH 443 445 CALL physiq (ngridmx, 444 446 . llm, 445 447 . debut, 446 448 . lafin, 447 . rdayvrai,448 . heure,449 . jD_cur, 450 . jH_cur, 449 451 . dtphys, 450 452 . zplev, … … 467 469 . pducov, 468 470 . PVteta) 471 #endif 472 endif !of if (planet_type=="earth") 469 473 470 474 500 CONTINUE … … 502 506 c 62. humidite specifique 503 507 c --------------------- 504 505 DO iq=1,nqtot506 DO l=1,llm507 DO i=1,iip1508 pdqfi(i,1,l,iq) = zdqfi(1,l,iq)509 pdqfi(i,jjp1,l,iq) = zdqfi(ngridmx,l,iq)510 ENDDO511 DO j=2,jjm512 ig0=1+(j-2)*iim513 DO i=1,iim514 pdqfi(i,j,l,iq) = zdqfi(ig0+i,l,iq)515 ENDDO516 pdqfi(iip1,j,l,iq) = pdqfi(1,j,l,iq)517 ENDDO518 ENDDO519 ENDDO508 ! Ehouarn: removed this useless bit: was overwritten at step 63 anyways 509 ! DO iq=1,nqtot 510 ! DO l=1,llm 511 ! DO i=1,iip1 512 ! pdqfi(i,1,l,iq) = zdqfi(1,l,iq) 513 ! pdqfi(i,jjp1,l,iq) = zdqfi(ngridmx,l,iq) 514 ! ENDDO 515 ! DO j=2,jjm 516 ! ig0=1+(j-2)*iim 517 ! DO i=1,iim 518 ! pdqfi(i,j,l,iq) = zdqfi(ig0+i,l,iq) 519 ! ENDDO 520 ! pdqfi(iip1,j,l,iq) = pdqfi(1,j,l,iq) 521 ! ENDDO 522 ! ENDDO 523 ! ENDDO 520 524 521 525 c 63. traceurs 522 526 c ------------ 523 527 C initialisation des tendances 524 pdqfi =0.528 pdqfi(:,:,:,:)=0. 525 529 C 526 530 DO iq=1,nqtot
Note: See TracChangeset
for help on using the changeset viewer.