Changeset 2502 for LMDZ5


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

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

Location:
LMDZ5/trunk/libf/phylmd
Files:
2 edited

Legend:

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

    r2458 r2502  
    113113  IF (prt_level>=20) PRINT *, 'cv3p1_param nloc ncum nd icb inb nl', nloc, &
    114114    ncum, nd, icb(nloc), inb(nloc), nl
    115   DO k = 1, nl
     115  DO k = 1, nd          !jyg: initialization up to nd
    116116    DO il = 1, ncum
    117117      m(il, k) = 0.0
     
    120120
    121121!CR: initializations for erosion of adiabatic ascent
    122   DO k = 1,nl
     122  DO k = 1,nd           !jyg: initialization up to nd
    123123    DO il = 1, ncum
    124124        mad(il,k)=0.
     
    628628
    629629!Verification sum(me)=sum(m)
    630   DO k = 1,nl+1
     630  DO k = 1,nd                         !jyg: initialization up to nd
    631631    DO il = 1, ncum
    632632       md(il,k)=0.
  • 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.