Changeset 2044


Ignore:
Timestamp:
Nov 18, 2018, 8:09:06 PM (6 years ago)
Author:
flefevre
Message:

Photolyse on-line : desormais par defaut

Location:
trunk/LMDZ.MARS/libf
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/calchim.F90

    r2042 r2044  
    193193
    194194         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
    199202         end if
    200203         ! find index of chemical tracers to use
  • trunk/LMDZ.MARS/libf/aeronomars/photochemistry.F90

    r2042 r2044  
    2020use photolysis_mod, only : nb_phot_max,       &
    2121                           nb_reaction_3_max, &
    22                            nb_reaction_4_max
     22                           nb_reaction_4_max, &
     23                           jonline
    2324
    2425use param_v4_h, only: jdistot, jdistot_b
     
    7374integer :: lswitch
    7475logical, save :: firstcall = .true.
    75 logical :: jonline               ! switch for online photolysis
    7676logical :: jparam                ! switch for J parameterization
    7777
     
    151151!===================================================================
    152152
    153 jonline = .false.
    154153jparam= .false.
    155154
  • trunk/LMDZ.MARS/libf/aeronomars/photolysis_mod.F90

    r2043 r2044  
    33  implicit none
    44
     5! photolysis
     6
     7  logical, parameter :: jonline = .true.  ! true: on-line ! false: lookup table
    58  integer, parameter :: nphot = 13        ! number of photolysis
    69  integer, parameter :: nabs  = 10        ! number of absorbing gases
     
    397400         fil = trim(datadir)//'/solar_fluxes/atlas3_thuillier_tuv.txt'
    398401         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
    400415         nhead = 9
    401416         n = 19193
     
    928943      fil = trim(datadir)//'/cross_sections/o2_composite_2018_150K.txt'
    929944      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
    931957
    932958      DO i = 1,nhead
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2031 r2044  
    180180      include "comg1d.h"
    181181      include "nlteparams.h"
    182       include "chimiedata.h"
    183182      include "netcdf.inc"
    184183
Note: See TracChangeset for help on using the changeset viewer.