Ignore:
Timestamp:
Mar 23, 2016, 10:48:19 PM (9 years ago)
Author:
oboucher
Message:

Introduction of a mass fixer for water in physiq
int q+ql dz at the end = int q+ql dz at the beginning + evap*pdtphys - precip*pdtphys

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/physiq_mod.F90

    r2469 r2476  
    937937    !albedo SB <<<
    938938
     939    !--OB variables for mass fixer
     940    logical, parameter :: mass_fixer=.true.
     941    real qql1(klon),qql2(klon),zdz,corrqql
     942
    939943    ! Ehouarn: set value of jjmp1 since it is no longer a "fixed parameter"
    940944    jjmp1=nbp_lat
     
    15881592       ENDDO
    15891593    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
    15901608    tke0(:,:)=pbl_tke(:,:,is_ave)
    15911609    !CR:Nombre de traceurs de l'eau: nqo
     
    45284546    ENDIF
    45294547
     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
    45304568
    45314569    ! 22.03.04 END
Note: See TracChangeset for help on using the changeset viewer.