Changeset 1047 for trunk/LMDZ.MARS/libf/phymars/simpleclouds.F
- Timestamp:
- Sep 23, 2013, 9:56:47 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/simpleclouds.F
r1036 r1047 29 29 c of the typical CCN profile, Oct. 2011) 30 30 c------------------------------------------------------------------ 31 #include "dimensions.h"32 #include "dimphys.h"31 !#include "dimensions.h" 32 !#include "dimphys.h" 33 33 #include "comcstfi.h" 34 34 #include "callkeys.h" 35 35 !#include "tracer.h" 36 #include "comgeomfi.h" 37 #include "dimradmars.h" 36 !#include "comgeomfi.h" 37 !#include "dimradmars.h" 38 ! naerkind is set in scatterers.h (built when compiling with makegcm -s #) 39 #include"scatterers.h" 40 38 41 c------------------------------------------------------------------ 39 42 c Arguments: … … 52 55 real pdq(ngrid,nlay,nq) ! tendance avant condensation 53 56 ! (kg/kg.s-1) 54 REAL tau(ngrid mx,naerkind)! Column dust optical depth at each point57 REAL tau(ngrid,naerkind) ! Column dust optical depth at each point 55 58 56 59 c Output: … … 65 68 c Local variables: 66 69 67 LOGICAL firstcall 68 DATA firstcall/.true./ 69 SAVE firstcall 70 70 LOGICAL,SAVE :: firstcall = .true. 71 71 72 REAL rhocloud(ngrid mx,nlayermx) ! Cloud density (kg.m-3)72 REAL rhocloud(ngrid,nlay) ! Cloud density (kg.m-3) 73 73 74 74 INTEGER ig,l 75 75 76 REAL zq(ngrid mx,nlayermx,nq) ! local value of tracers77 REAL zq0(ngrid mx,nlayermx,nq) ! local initial value of tracers78 REAL zt(ngrid mx,nlayermx) ! local value of temperature79 REAL zqsat(ngrid mx,nlayermx) ! saturation76 REAL zq(ngrid,nlay,nq) ! local value of tracers 77 REAL zq0(ngrid,nlay,nq) ! local initial value of tracers 78 REAL zt(ngrid,nlay) ! local value of temperature 79 REAL zqsat(ngrid,nlay) ! saturation 80 80 REAL*8 dzq ! masse de glace echangee (kg/kg) 81 81 REAL lw !Latent heat of sublimation (J.kg-1) 82 82 REAL,PARAMETER :: To=273.15 ! reference temperature, T=273.15 K 83 real rdusttyp(ngrid mx,nlayermx) ! Typical dust geom. mean radius (m)84 REAL ccntyp(ngrid mx,nlayermx)83 real rdusttyp(ngrid,nlay) ! Typical dust geom. mean radius (m) 84 REAL ccntyp(ngrid,nlay) 85 85 ! Typical dust number density (#/kg) 86 86 c CCN reduction factor … … 120 120 c ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 121 121 122 call watersat(ngrid mx*nlayermx,zt,pplay,zqsat)122 call watersat(ngrid*nlay,zt,pplay,zqsat) 123 123 124 124 c taux de condensation (kg/kg/s-1) dans les differentes couches … … 147 147 c ~~~~~~~~~~~~~~~ 148 148 do l=1, nlay 149 do ig=1,ngrid mx149 do ig=1,ngrid 150 150 pdqcloud(ig,l,igcm_h2o_vap)=(zq(ig,l,igcm_h2o_vap) 151 151 & -zq0(ig,l,igcm_h2o_vap))/ptimestep … … 159 159 c ice crystal radius 160 160 do l=1, nlay 161 do ig=1,ngrid mx161 do ig=1,ngrid 162 162 call updaterice_typ(zq(ig,l,igcm_h2o_ice), 163 163 & tau(ig,1),pzlay(ig,l),rice(ig,l))
Note: See TracChangeset
for help on using the changeset viewer.