Ignore:
Timestamp:
May 4, 2016, 11:51:01 AM (8 years ago)
Author:
jyg
Message:

Bug fix in cv3p1_closure.F90 and
cv3p2_closure.F90: initialization loops extended
up to nd.

File:
1 edited

Legend:

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

    r2458 r2502  
    126126  DO k = 1, nl
    127127    DO il = 1, ncum
    128       m(il, k) = 0.0
    129128      rhodp(il,k) = 0.007*p(il, k)*(ph(il,k)-ph(il,k+1))/tv(il, k)
    130129    END DO
    131130  END DO
    132131
    133 !CR: initializations for erosion of adiabatic ascent
    134   DO k = 1,nl
     132!CR+jyg: initializations (up to nd) for erosion of adiabatic ascent and of m and wlim
     133  DO k = 1,nd
    135134    DO il = 1, ncum
    136135        mad(il,k)=0.
     
    138137        betalim(il,k)=1.
    139138        wlim(il,k)=0.
     139        m(il, k) = 0.0
    140140    ENDDO
    141141  ENDDO
     
    711711
    712712!Verification sum(me)=sum(m)
    713   DO k = 1,nl+1
     713  DO k = 1,nd
    714714    DO il = 1, ncum
    715715       md(il,k)=0.
Note: See TracChangeset for help on using the changeset viewer.