Changeset 2347 for trunk/LMDZ.MARS/libf/phymars/tcondco2.F90
- Timestamp:
- Jun 9, 2020, 2:52:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/tcondco2.F90
r2346 r2347 8 8 ! Condensation temperature for co2 ice; based on 9 9 ! the saturation in co2sat.F JA17 10 !-------------------------------------------------- i10 !-------------------------------------------------- 11 11 12 12 integer, intent(in) :: ngrid,nlay … … 14 14 double precision, intent(out), dimension(ngrid,nlay):: tcond ! CO2 condensation temperature (atm) 15 15 double precision:: A,B,pco2 16 real :: qco2 16 17 integer:: ig,l 17 18 18 19 A=dlog(1.382d12) 19 20 B=-3182.48 20 21 qco2=0. 21 22 DO l=1,nlay 22 23 DO ig=1,ngrid 24 ! qco2 = min(1., q(ig,l))!added by CM not sure, to be verified before 25 ! cleaning 26 ! pco2 = qco2 * (mmean(ig,l)/44.01) * p(ig,l) 23 27 pco2 = q(ig,l) * (mmean(ig,l)/44.01) * p(ig,l) 24 28 tcond(ig,l)=B/(dlog(pco2)-A)
Note: See TracChangeset
for help on using the changeset viewer.