Changeset 1454 for LMDZ5/trunk/libf/dyn3d/leapfrog.F
- Timestamp:
- Nov 18, 2010, 1:01:24 PM (14 years ago)
- Location:
- LMDZ5/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk
- Property svn:mergeinfo changed
/LMDZ5/branches/LMDZ5V1.0-dev (added) merged: 1436-1438,1441-1449,1452-1453
- Property svn:mergeinfo changed
-
LMDZ5/trunk/libf/dyn3d/leapfrog.F
r1403 r1454 209 209 c -------------------------------------------------- 210 210 211 dq =0.211 dq(:,:,:)=0. 212 212 CALL pression ( ip1jmp1, ap, bp, ps, p ) 213 213 CALL exner_hyb( ip1jmp1, ps, p,alpha,beta, pks, pk, pkf ) … … 253 253 CALL SCOPY ( ijp1llm, masse, 1, finvmaold, 1 ) 254 254 CALL filtreg ( finvmaold ,jjp1, llm, -2,2, .TRUE., 1 ) 255 256 ! Ehouarn: what is this for? zqmin & zqmax are not used anyway ...257 ! call minmax(ijp1llm,q(:,:,3),zqmin,zqmax)258 255 259 256 2 CONTINUE … … 430 427 431 428 IF(iflag_phys.EQ.2) THEN ! "Newtonian" case 432 c Calcul academique de la physique = Rappel Newtonien + friction 433 c -------------------------------------------------------------- 434 teta(:,:)=teta(:,:) 435 s -iphysiq*dtvr*(teta(:,:)-tetarappel(:,:))/taurappel 436 call friction(ucov,vcov,iphysiq*dtvr) 437 ENDIF 429 ! Academic case : Simple friction and Newtonan relaxation 430 ! ------------------------------------------------------- 431 DO l=1,llm 432 DO ij=1,ip1jmp1 433 teta(ij,l)=teta(ij,l)-dtvr* 434 & (teta(ij,l)-tetarappel(ij,l))*(knewt_g+knewt_t(l)*clat4(ij)) 435 ENDDO 436 ENDDO ! of DO l=1,llm 437 call friction(ucov,vcov,dtvr) 438 439 ! Sponge layer (if any) 440 IF (ok_strato) THEN 441 dufi(:,:)=0. 442 dvfi(:,:)=0. 443 dtetafi(:,:)=0. 444 dqfi(:,:,:)=0. 445 dpfi(:)=0. 446 CALL top_bound(vcov,ucov,teta,masse,dufi,dvfi,dtetafi) 447 CALL addfi( dtvr, leapf, forward , 448 $ ucov, vcov, teta , q ,ps , 449 $ dufi, dvfi, dtetafi , dqfi ,dpfi ) 450 ENDIF ! of IF (ok_strato) 451 ENDIF ! of IF (iflag_phys.EQ.2) 438 452 439 453 … … 615 629 616 630 617 if (planet_type.eq."earth") then631 ! if (planet_type.eq."earth") then 618 632 ! Write an Earth-format restart file 619 633 CALL dynredem1("restart.nc",0.0, 620 634 & vcov,ucov,teta,q,masse,ps) 621 endif ! of if (planet_type.eq."earth")635 ! endif ! of if (planet_type.eq."earth") 622 636 623 637 CLOSE(99) … … 727 741 728 742 IF(itau.EQ.itaufin) THEN 729 if (planet_type.eq."earth") then743 ! if (planet_type.eq."earth") then 730 744 CALL dynredem1("restart.nc",0.0, 731 745 & vcov,ucov,teta,q,masse,ps) 732 endif ! of if (planet_type.eq."earth")746 ! endif ! of if (planet_type.eq."earth") 733 747 ENDIF ! of IF(itau.EQ.itaufin) 734 748
Note: See TracChangeset
for help on using the changeset viewer.