Changeset 1647 for trunk/LMDZ.TITAN/libf/phytitan/callsedim.F
- Timestamp:
- Jan 11, 2017, 3:33:51 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/callsedim.F
r1477 r1647 4 4 5 5 use radinc_h, only : naerkind 6 use radii_mod, only: h2o_reffrad 7 use aerosol_mod, only : iaero_h2o 8 USE tracer_h, only : igcm_co2_ice,igcm_h2o_ice,radius,rho_q 6 USE tracer_h, only : radius, rho_q 9 7 use comcstfi_mod, only: g 10 use callkeys_mod, only : water11 8 12 9 IMPLICIT NONE … … 62 59 real epaisseur (ngrid,nlay) ! Layer thickness (m) 63 60 real wq(ngrid,nlay+1) ! displaced tracer mass (kg.m-2) 64 c real dens(ngrid,nlay) ! Mean density of the ice part. accounting for dust core65 61 66 62 … … 73 69 IF (firstcall) THEN 74 70 firstcall=.false. 75 ! add some tests on presence of required tracers/aerosols:76 if (water) then77 if (igcm_h2o_ice.eq.0) then78 write(*,*) "callsedim error: water=.true.",79 & " but igcm_h2o_ice=0"80 stop81 endif82 if (iaero_h2o.eq.0) then83 write(*,*) "callsedim error: water=.true.",84 & " but iaero_ho2=0"85 stop86 endif87 endif88 71 ENDIF ! of IF (firstcall) 89 72 … … 106 89 107 90 do iq=1,nq 108 if( (radius(iq).gt.1.e-9).and.(iq.ne.igcm_co2_ice)) then109 ! (no sedim for gases , and co2_ice sedim is done in condense_co2)91 if(radius(iq).gt.1.e-9) then 92 ! (no sedim for gases) 110 93 111 94 ! store locally updated tracers … … 120 103 ! Sedimentation 121 104 !====================================================================== 122 ! Water123 if (water.and.(iq.eq.igcm_h2o_ice)) then124 ! compute radii for h2o_ice125 call h2o_reffrad(ngrid,nlay,zqi(1,1,igcm_h2o_ice),zt,126 & reffrad(1,1,iaero_h2o),nueffrad(1,1,iaero_h2o))127 ! call sedimentation for h2o_ice128 call newsedim(ngrid,nlay,ngrid*nlay,ptimestep,129 & pplev,masse,epaisseur,zt,reffrad(1,1,iaero_h2o),130 & rho_q(iq),zqi(1,1,igcm_h2o_ice),wq)131 132 105 ! General Case 133 else134 106 call newsedim(ngrid,nlay,1,ptimestep, 135 107 & pplev,masse,epaisseur,zt,radius(iq),rho_q(iq), 136 108 & zqi(1,1,iq),wq) 137 endif138 109 139 110 !======================================================================= … … 152 123 ENDDO 153 124 ENDDO 154 endif ! of no gases no co2_ice125 endif ! of no gases 155 126 enddo ! of do iq=1,nq 156 127 return
Note: See TracChangeset
for help on using the changeset viewer.