subroutine largescale(ngrid,nq,ptimestep, pplev, pplay, pt, pq, & pdt, pdq, pdtlsc, pdqvaplsc, pdqliqlsc, rneb) ! to use 'getin' use ioipsl_getincom use watercommon_h, only : RLVTT, RCPD, RVTMP2, & T_h2O_ice_clouds,T_h2O_ice_liq,Psat_waterDP,Lcpdqsat_waterDP USE tracer_h IMPLICIT none !================================================================== ! ! Purpose ! ------- ! Calculates large-scale (stratiform) H2O condensation. ! ! Authors ! ------- ! Adapted from the LMDTERRE code by R. Wordsworth (2009) ! Original author Z. X. Li (1993) ! !================================================================== #include "dimensions.h" #include "dimphys.h" #include "comcstfi.h" #include "callkeys.h" INTEGER ngrid,nq ! Arguments REAL ptimestep ! intervalle du temps (s) REAL pplev(ngrid,nlayermx+1) ! pression a inter-couche REAL pplay(ngrid,nlayermx) ! pression au milieu de couche REAL pt(ngrid,nlayermx) ! temperature (K) REAL pq(ngrid,nlayermx,nq) ! tracer mixing ratio (kg/kg) REAL pdt(ngrid,nlayermx) ! physical temperature tenedency (K/s) REAL pdq(ngrid,nlayermx,nq)! physical tracer tenedency (K/s) REAL pdtlsc(ngrid,nlayermx) ! incrementation de la temperature (K) REAL pdqvaplsc(ngrid,nlayermx) ! incrementation de la vapeur d'eau REAL pdqliqlsc(ngrid,nlayermx) ! incrementation de l'eau liquide REAL rneb(ngrid,nlayermx) ! fraction nuageuse ! Options du programme REAL, SAVE :: ratqs ! determine largeur de la distribution de vapeur ! Variables locales REAL CBRT EXTERNAL CBRT INTEGER i, k , nn INTEGER,PARAMETER :: nitermax=5000 DOUBLE PRECISION,PARAMETER :: alpha=.1,qthreshold=1.d-8 ! JL13: if "careful, T