Changeset 2340


Ignore:
Timestamp:
Aug 18, 2015, 5:27:50 PM (9 years ago)
Author:
Ehouarn Millour
Message:

Bug fix: Adding the tendencies from wakes to dry adjustement tendencies should only be done if wakes are computed.
EM + JYG

File:
1 edited

Legend:

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

    r2333 r2340  
    984984  pde_u(:,:) = 0.
    985985  aam=0.
     986  d_t_adjwk(:,:)=0
     987  d_q_adjwk(:,:)=0
    986988
    987989  alp_bl_conv(:)=0.
     
    21542156        CALL ajsec(paprs, pplay, t_wake, q_wake, limbas, &
    21552157                  d_t_adjwk, d_q_adjwk)
    2156       ELSE
     2158      ENDIF
     2159!
    21572160      DO k=1,klev
    2158          DO i=1,klon
    2159            d_t_adjwk(i,k) = 0.
    2160            d_q_adjwk(i,k) = 0.
    2161          ENDDO
    2162       ENDDO
    2163      ENDIF
    2164 !
    2165      DO k=1,klev
    21662161        DO i=1,klon
    21672162          IF (wake_s(i) .GT. 1.e-3) THEN
     
    21722167          ENDIF
    21732168        ENDDO
    2174      ENDDO
     2169      ENDDO
    21752170     ENDIF ! (iflag_wake>=1)
    21762171!>jyg
     
    23682363!jyg<
    23692364!    Add the tendency due to the dry adjustment of the wake profile
    2370        DO k=1,klev
     2365      IF (iflag_wake>=1) THEN
     2366        DO k=1,klev
    23712367          DO i=1,klon
    2372           ftd(i,k) = ftd(i,k) + wake_s(i)*d_t_adjwk(i,k)/dtime
    2373           fqd(i,k) = fqd(i,k) + wake_s(i)*d_q_adjwk(i,k)/dtime
    2374           d_t_con(i,k) = d_t_con(i,k) + wake_s(i)*d_t_adjwk(i,k)
    2375           d_q_con(i,k) = d_q_con(i,k) + wake_s(i)*d_q_adjwk(i,k)
    2376           enddo
    2377        enddo
     2368            ftd(i,k) = ftd(i,k) + wake_s(i)*d_t_adjwk(i,k)/dtime
     2369            fqd(i,k) = fqd(i,k) + wake_s(i)*d_q_adjwk(i,k)/dtime
     2370            d_t_con(i,k) = d_t_con(i,k) + wake_s(i)*d_t_adjwk(i,k)
     2371            d_q_con(i,k) = d_q_con(i,k) + wake_s(i)*d_q_adjwk(i,k)
     2372          ENDDO
     2373        ENDDO
     2374      ENDIF
    23782375!>jyg
    23792376!
Note: See TracChangeset for help on using the changeset viewer.