Changeset 2027 for trunk/LMDZ.MARS
- Timestamp:
- Oct 25, 2018, 8:40:10 PM (6 years ago)
- Location:
- trunk/LMDZ.MARS/libf/aeronomars
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/aeronomars/calchim.F90
r2007 r2027 91 91 real :: pdq(ngrid,nlayer,nq) ! previous tendencies 92 92 real :: zday ! date (time since Ls=0, in martian days) 93 real :: tauref(ngrid) ! optical depth at 7 hPa93 real :: tauref(ngrid) ! Reference column optical depth 94 94 real :: co2ice(ngrid) ! co2 ice surface layer (kg.m-2) 95 95 real :: surfdust(ngrid,nlayer) ! dust surface area (m2/m3) … … 150 150 real :: zu(ngrid,nlayer) ! u component of the wind 151 151 real :: zv(ngrid,nlayer) ! v component of the wind 152 real :: taucol ! optical depth at 7 hPa152 real :: taucol ! dust optical depth at the surface 153 153 154 154 logical,save :: firstcall = .true. … … 659 659 660 660 call photochemistry(nlayer,nq, & 661 ig,lswitch,zycol,szacol,ptimestep,&662 zpress,ztemp,zdens,zmmean,dist_sol,&663 661 ig,lswitch,zycol,szacol,ptimestep, & 662 zpress,zlocal,ztemp,zdens,zmmean,dist_sol, & 663 surfdust1d,surfice1d,jo3,taucol,iter) 664 664 665 665 ! ozone photolysis, for output -
trunk/LMDZ.MARS/libf/aeronomars/photochemistry.F90
r2024 r2027 13 13 !***************************************************************** 14 14 15 subroutine photochemistry(nlayer, nq, &16 ig, lswitch, zycol, sza, ptimestep, press, &17 temp, dens, zmmean, dist_sol, surfdust1d,&15 subroutine photochemistry(nlayer, nq, & 16 ig, lswitch, zycol, sza, ptimestep, press, & 17 alt, temp, dens, zmmean, dist_sol, surfdust1d,& 18 18 surfice1d, jo3, tau, iter) 19 19 … … 34 34 real :: ptimestep ! physics timestep (s) 35 35 real :: press(nlayer) ! pressure (hpa) 36 real :: alt(nlayer) ! altitude (km) 36 37 real :: temp(nlayer) ! temperature (k) 37 38 real :: dens(nlayer) ! density (cm-3) … … 40 41 real :: surfdust1d(nlayer) ! dust surface area (cm2/cm3) 41 42 real :: surfice1d(nlayer) ! ice surface area (cm2/cm3) 42 real :: tau ! optical depth at 7 hpa43 real :: tau ! reference dust optical depth 43 44 44 45 !=================================================================== … … 65 66 66 67 logical, save :: firstcall = .true. 68 logical :: jonline 67 69 68 70 parameter (nesp = 17) ! number of species in the chemistry … … 141 143 !=================================================================== 142 144 143 call photolysis(nlayer, lswitch, press, temp, sza, tau, zmmean, dist_sol, & 144 rm(:,i_co2), rm(:,i_o3), v_phot) 145 jonline = .false. ! .false. recommended until the end of testing phase 146 147 if (jonline) then 148 tau = tau*press(1)/6.1 ! temporary 149 call photolysis_online(nlayer,lswitch, alt, press, temp, & 150 zmmean, i_co2, i_co, i_o, i_o1d, i_o2, i_o3, i_h, & 151 i_h2, i_oh, i_ho2, i_h2o2, i_h2o, & 152 i_n, i_n2d, i_no, i_no2, i_n2, nesp, rm, & 153 tau, sza, dist_sol, v_phot) 154 else 155 call photolysis(nlayer, lswitch, press, temp, sza, tau, zmmean, dist_sol, & 156 rm(:,i_co2), rm(:,i_o3), v_phot) 157 end if 145 158 146 159 ! save o3 photolysis for output
Note: See TracChangeset
for help on using the changeset viewer.