Changeset 2476 for LMDZ5/trunk
- Timestamp:
- Mar 23, 2016, 10:48:19 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/physiq_mod.F90
r2469 r2476 937 937 !albedo SB <<< 938 938 939 !--OB variables for mass fixer 940 logical, parameter :: mass_fixer=.true. 941 real qql1(klon),qql2(klon),zdz,corrqql 942 939 943 ! Ehouarn: set value of jjmp1 since it is no longer a "fixed parameter" 940 944 jjmp1=nbp_lat … … 1588 1592 ENDDO 1589 1593 ENDDO 1594 ! 1595 !--OB mass fixer 1596 IF (mass_fixer) THEN 1597 !--store initial water burden 1598 qql1(:)=0.0 1599 DO i = 1, klon 1600 DO k = 1, klev 1601 zdz=(paprs(i,k)-paprs(i,k+1))/RG 1602 qql1(i)=qql1(i)+(q_seri(i,k)+ql_seri(i,k))*zdz 1603 ENDDO 1604 ENDDO 1605 ENDIF 1606 !--fin mass fixer 1607 1590 1608 tke0(:,:)=pbl_tke(:,:,is_ave) 1591 1609 !CR:Nombre de traceurs de l'eau: nqo … … 4528 4546 ENDIF 4529 4547 4548 !--OB mass fixer 4549 !--profile is corrected to force mass conservation of water 4550 IF (mass_fixer) THEN 4551 qql2(:)=0.0 4552 DO i = 1, klon 4553 DO k = 1, klev 4554 zdz=(paprs(i,k)-paprs(i,k+1))/RG 4555 qql2(i)=qql2(i)+(q_seri(i,k)+ql_seri(i,k))*zdz 4556 ENDDO 4557 ENDDO 4558 DO i = 1, klon 4559 !--compute ratio of what q+ql should be with conservation to what it is 4560 corrqql=(qql1(i)+(evap(i)-rain_fall(i)-snow_fall(i))*pdtphys)/qql2(i) 4561 DO k = 1, klev 4562 q_seri(i,k) =q_seri(i,k)*corrqql 4563 ql_seri(i,k)=ql_seri(i,k)*corrqql 4564 ENDDO 4565 ENDDO 4566 ENDIF 4567 !--fin mass fixer 4530 4568 4531 4569 ! 22.03.04 END
Note: See TracChangeset
for help on using the changeset viewer.