Changeset 2044 for trunk/LMDZ.MARS/libf/aeronomars
- Timestamp:
- Nov 18, 2018, 8:09:06 PM (6 years ago)
- Location:
- trunk/LMDZ.MARS/libf/aeronomars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/aeronomars/calchim.F90
r2042 r2044 193 193 194 194 if (photochem) then 195 print*,'calchim: Read photolysis lookup table' 196 call read_phototable ! off-line photolysis 197 print*,'calchim: Read UV absorption cross-sections' 198 call init_photolysis ! on-line photolysis 195 if (jonline) then 196 print*,'calchim: Read UV absorption cross-sections' 197 call init_photolysis ! on-line photolysis 198 else 199 print*,'calchim: Read photolysis lookup table' 200 call read_phototable ! off-line photolysis 201 end if 199 202 end if 200 203 ! find index of chemical tracers to use -
trunk/LMDZ.MARS/libf/aeronomars/photochemistry.F90
r2042 r2044 20 20 use photolysis_mod, only : nb_phot_max, & 21 21 nb_reaction_3_max, & 22 nb_reaction_4_max 22 nb_reaction_4_max, & 23 jonline 23 24 24 25 use param_v4_h, only: jdistot, jdistot_b … … 73 74 integer :: lswitch 74 75 logical, save :: firstcall = .true. 75 logical :: jonline ! switch for online photolysis76 76 logical :: jparam ! switch for J parameterization 77 77 … … 151 151 !=================================================================== 152 152 153 jonline = .false.154 153 jparam= .false. 155 154 -
trunk/LMDZ.MARS/libf/aeronomars/photolysis_mod.F90
r2043 r2044 3 3 implicit none 4 4 5 ! photolysis 6 7 logical, parameter :: jonline = .true. ! true: on-line ! false: lookup table 5 8 integer, parameter :: nphot = 13 ! number of photolysis 6 9 integer, parameter :: nabs = 10 ! number of absorbing gases … … 397 400 fil = trim(datadir)//'/solar_fluxes/atlas3_thuillier_tuv.txt' 398 401 print*, 'solar flux : ', fil 399 OPEN(UNIT=kin,FILE=fil,STATUS='old') 402 open(kin, file=fil, status='old', iostat=ierr) 403 404 if (ierr /= 0) THEN 405 write(*,*)'cant find solar flux : ', fil 406 write(*,*)'It should be in :', trim(datadir),'/solar_fluxes' 407 write(*,*)'1) You can change this directory address in ' 408 write(*,*)' callphys.def with datadir=/path/to/dir' 409 write(*,*)'2) If necessary, /solar fluxes (and other datafiles)' 410 write(*,*)' can be obtained online on:' 411 write(*,*)' http://www.lmd.jussieu.fr/~lmdz/planets/mars/datadir' 412 stop 413 end if 414 400 415 nhead = 9 401 416 n = 19193 … … 928 943 fil = trim(datadir)//'/cross_sections/o2_composite_2018_150K.txt' 929 944 print*, 'section efficace O2 150K: ', fil 930 OPEN(UNIT=kin,FILE=fil,STATUS='old') 945 open(kin, file=fil, status='old', iostat=ierr) 946 947 if (ierr /= 0) THEN 948 write(*,*)'cant find O2 cross-sections : ', fil 949 write(*,*)'It should be in :', trim(datadir),'/cross_sections' 950 write(*,*)'1) You can change this directory address in ' 951 write(*,*)' callphys.def with datadir=/path/to/dir' 952 write(*,*)'2) If necessary, /cross_sections (and other datafiles)' 953 write(*,*)' can be obtained online on:' 954 write(*,*)' http://www.lmd.jussieu.fr/~lmdz/planets/mars/datadir' 955 stop 956 end if 931 957 932 958 DO i = 1,nhead
Note: See TracChangeset
for help on using the changeset viewer.