Changeset 2073 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Jan 18, 2019, 10:53:39 PM (6 years ago)
Author:
aslmd
Message:

in largescale enforce type conversion as is done in the other instance of Lcpdqsat_water. corrects an error with picky compilers (e.g. gfortran)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/largescale.F90

    r1993 r2073  
    151151!           iterative process to stabilize the scheme when large water amounts JL12
    152152            zcond(i) = 0.0d0
    153             Do nn=1,nitermax 
    154                call Lcpdqsat_water(zt(i),local_p,psat_tmp,zqs(i),zdqs,dlnpsat_tmp)
     153            Do nn=1,nitermax
     154               ! use zqs_temp and not zqs(i) to force type conversion
     155               ! -- might not be a good solution, actually
     156               ! but this is compliant with "complete cloud cover" case above
     157               call Lcpdqsat_water(zt(i),local_p,psat_tmp,zqs_temp,zdqs,dlnpsat_tmp)
    155158               zcond_iter = MAX(0.0d0,alpha*(zx_q(i)-zqs(i))/(1.d0+zdqs))         
    156159                  !zcond always postive! cannot evaporate clouds!
Note: See TracChangeset for help on using the changeset viewer.