Changeset 227 for codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/condense_cloud.F90
- Timestamp:
- 07/16/14 18:05:01 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
codes/icosagcm/branches/SATURN_DYNAMICO/LMDZ.COMMON/libf/phystd/condense_cloud.F90
r222 r227 32 32 ! ptsrf(ngrid) Surface temperature 33 33 ! 34 ! pdt(ngrid,nlayer mx) Time derivative before condensation/sublimation of pt34 ! pdt(ngrid,nlayer) Time derivative before condensation/sublimation of pt 35 35 ! pdtsrf(ngrid) Time derivative before condensation/sublimation of ptsrf 36 36 ! pqsurf(ngrid,nq) Sedimentation flux at the surface (kg.m-2.s-1) … … 38 38 ! Outputs 39 39 ! ------- 40 ! pdpsrf(ngrid) 41 ! pdtc(ngrid,nlayer mx) / to the time derivatives of Ps, pt, and ptsrf42 ! pdtsrfc(ngrid) 40 ! pdpsrf(ngrid) \ Contribution of condensation/sublimation 41 ! pdtc(ngrid,nlayer) / to the time derivatives of Ps, pt, and ptsrf 42 ! pdtsrfc(ngrid) / 43 43 ! 44 44 ! Both … … 56 56 !================================================================== 57 57 58 #include "dimensions.h"59 #include "dimphys.h"58 !#include "dimensions.h" 59 !#include "dimphys.h" 60 60 #include "comcstfi.h" 61 #include "comvert.h"61 !#include "comvert.h" 62 62 #include "callkeys.h" 63 63 … … 99 99 100 100 REAL reffrad(ngrid,nlayer) ! radius (m) of the co2 ice particles 101 REAL*8 zt(ngrid,nlayer mx)102 REAL zq(ngrid,nlayer mx,nq)101 REAL*8 zt(ngrid,nlayer) 102 REAL zq(ngrid,nlayer,nq) 103 103 REAL zcpi 104 REAL ztcond (ngrid,nlayer mx)105 REAL ztnuc (ngrid,nlayer mx)104 REAL ztcond (ngrid,nlayer) 105 REAL ztnuc (ngrid,nlayer) 106 106 REAL ztcondsol(ngrid) 107 107 REAL zdiceco2(ngrid) 108 REAL zcondicea(ngrid,nlayer mx), zcondices(ngrid)108 REAL zcondicea(ngrid,nlayer), zcondices(ngrid) 109 109 REAL zfallice(ngrid), Mfallice(ngrid) 110 REAL zmflux(nlayer mx+1)111 REAL zu(nlayer mx),zv(nlayermx)110 REAL zmflux(nlayer+1) 111 REAL zu(nlayer),zv(nlayer) 112 112 REAL ztsrf(ngrid) 113 REAL ztc(nlayer mx), ztm(nlayermx+1)114 REAL zum(nlayer mx+1) , zvm(nlayermx+1)113 REAL ztc(nlayer), ztm(nlayer+1) 114 REAL zum(nlayer+1) , zvm(nlayer+1) 115 115 LOGICAL condsub(ngrid) 116 116 REAL subptimestep 117 117 Integer Ntime 118 real masse (ngrid,nlayer mx), w(ngrid,nlayermx,nq)119 real wq(ngrid,nlayer mx+1)118 real masse (ngrid,nlayer), w(ngrid,nlayer,nq) 119 real wq(ngrid,nlayer+1) 120 120 real vstokes,reff 121 121 122 122 ! Special diagnostic variables 123 real tconda1(ngrid,nlayer mx)124 real tconda2(ngrid,nlayer mx)125 real zdtsig (ngrid,nlayer mx)126 real zdt (ngrid,nlayer mx)123 real tconda1(ngrid,nlayer) 124 real tconda2(ngrid,nlayer) 125 real zdtsig (ngrid,nlayer) 126 real zdt (ngrid,nlayer) 127 127 128 128 !----------------------------------------------------------------------- … … 133 133 REAL,SAVE :: cpice=1000. 134 134 REAL,SAVE,ALLOCATABLE,DIMENSION(:) :: emisref 135 !$OMP THREADPRIVATE(latcond,ccond,cpice,emisref) 135 136 136 137 LOGICAL,SAVE :: firstcall=.true. 138 !$OMP THREADPRIVATE(firstcall) 137 139 REAL,EXTERNAL :: SSUM 138 140 … … 140 142 141 143 INTEGER,SAVE :: i_co2ice=0 ! co2 ice 144 !$OMP THREADPRIVATE(i_co2ice) 142 145 CHARACTER(LEN=20) :: tracername ! to temporarily store text 143 146 … … 205 208 ! zcondices(ngrid) condensation rate on the ground (kg/m2/s) 206 209 ! zfallice(ngrid) flux of ice falling on surface (kg/m2/s) 207 ! pdtc(ngrid,nlayer mx) dT/dt due to phase changes (K/s)210 ! pdtc(ngrid,nlayer) dT/dt due to phase changes (K/s) 208 211 209 212 … … 301 304 302 305 ! sedimentation computed from radius computed from q in module radii_mod 303 call co2_reffrad(ngrid,n q,zq,reffrad)306 call co2_reffrad(ngrid,nlayer,nq,zq,reffrad) 304 307 305 308 do ilay=1,nlayer … … 321 324 ! Computing q after sedimentation 322 325 323 call vlz_fi(ngrid, zq(1,1,i_co2ice),2.,masse,w(1,1,i_co2ice),wq)326 call vlz_fi(ngrid,nlayer,zq(1,1,i_co2ice),2.,masse,w(1,1,i_co2ice),wq) 324 327 325 328
Note: See TracChangeset
for help on using the changeset viewer.