Changeset 2633


Ignore:
Timestamp:
Mar 1, 2022, 11:56:54 PM (3 years ago)
Author:
dbardet
Message:

Adding of strictboundH2H2cia flag to allow the run to continue even for temperature bigger than 400K (that is out of the current H2H2 cia tables)

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/callkeys_mod.F90

    r2595 r2633  
    1414      logical,save :: strictboundcorrk                                     
    1515!$OMP THREADPRIVATE(strictboundcorrk)
     16      logical,save :: strictboundH2H2cia                                     
     17!$OMP THREADPRIVATE(strictboundH2H2cia)
    1618
    1719      logical,save :: enertest
  • trunk/LMDZ.GENERIC/libf/phystd/inifis_mod.F90

    r2595 r2633  
    266266
    267267     if (is_master) write(*,*) trim(rname)//&
     268       ": prohibit calculations outside H2H2 CIA T grid?"
     269     strictboundH2H2cia=.true. ! default value
     270     call getin_p("strictboundH2H2cia",strictboundH2H2cia)
     271     if (is_master) write(*,*) trim(rname)//&
     272       ": strictboundH2H2cia = ",strictboundH2H2cia
     273
     274     if (is_master) write(*,*) trim(rname)//&
    268275       ": Minimum atmospheric temperature for Planck function integration ?"
    269276     tplanckmin=30.0 ! default value
  • trunk/LMDZ.GENERIC/libf/phystd/interpolateH2H2.F90

    r2245 r2633  
    1717!==================================================================
    1818
    19       use callkeys_mod, only: versH2H2cia
     19      use callkeys_mod, only: versH2H2cia, strictboundH2H2cia
    2020      use datafile_mod, only: datadir
    2121
     
    6262
    6363      if(temp.gt.400)then
    64          print*,'Your temperatures are too high for this H2-H2 CIA dataset. If you '
    65          print*,'really want to run simulations with hydrogen at T > 400 K, contact'
    66          print*,'Robin Wordsworth [rwordsworth@uchicago.edu].'
    67          stop
     64         if (strictboundH2H2cia) then
     65            print*,'Your temperatures are too high for this H2-H2 CIA dataset. If you '
     66            print*,'really want to run simulations with hydrogen at T > 400 K, contact'
     67            print*,'Robin Wordsworth [rwordsworth@uchicago.edu].'
     68            stop
     69         else
     70            print*,'Your temperatures are too high for this H2-H2 CIA dataset'
     71            print*,'you have chosen strictboundH2H2cia = ', strictboundH2H2cia
     72            print*,'*********************************************************'
     73            print*,' we allow model to continue but with temp = 400          '
     74            print*,'  ...       for H2-H2 CIA dataset          ...           '
     75            print*,'  ... we assume we know what you are doing ...           '
     76            print*,'*********************************************************'
     77            temp = 400
     78         endif
    6879      endif
    6980
Note: See TracChangeset for help on using the changeset viewer.