Ignore:
Timestamp:
Apr 22, 2024, 4:34:50 PM (6 months ago)
Author:
sglmd
Message:

include updated H2-H2 and H2-He CIA files by G. Milcareck for equilibrium case

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

Legend:

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

    r2870 r3310  
    133133         if (is_master) print*,'Initialising H2-H2 continuum from HITRAN database...'
    134134
    135 !     1.1 Open the ASCII files and set nS according to version
     135         !     1.1 Open the ASCII files and set nS according to version
    136136         ! Only two possible versions for now : 2011 or 2018 (sanity check in inifis_mod)
    137137         if (versH2H2cia.eq.2011) then
    138            nS = 2428
    139            if (H2orthopara_mixture.eq."normal") then
    140              dt_file=TRIM(datadir)//'/continuum_data/H2-H2_norm_2011.cia'
    141            else if (H2orthopara_mixture.eq."equilibrium") then
    142              dt_file=TRIM(datadir)//'/continuum_data/H2-H2_eq_2011.cia'
    143            else if (H2orthopara_mixture.eq."hot") then
    144             dt_file=TRIM(datadir)//'/continuum_data/H2-H2_2011_extended.cia'
    145             ns = 800
    146            endif
    147          else if (versH2H2cia.eq.2018) then
    148            nS = 9600
    149            if (H2orthopara_mixture.eq."normal") then
    150              dt_file=TRIM(datadir)//'/continuum_data/H2-H2_norm_2018.cia'
    151            else if (H2orthopara_mixture.eq."equilibrium") then
    152              dt_file=TRIM(datadir)//'/continuum_data/H2-H2_eq_2018.cia'
    153            endif
    154          endif
     138            nS = 2428
     139            if (H2orthopara_mixture.eq."normal") then
     140               dt_file=TRIM(datadir)//'/continuum_data/H2-H2_norm_2011.cia'
     141            else if (H2orthopara_mixture.eq."equilibrium") then
     142               dt_file=TRIM(datadir)//'/continuum_data/H2-H2_eq_2011.cia'
     143            else if (H2orthopara_mixture.eq."hot") then
     144               dt_file=TRIM(datadir)//'/continuum_data/H2-H2_2011_extended.cia'
     145               ns = 800
     146            endif
     147         else if (versH2H2cia.eq.2018 .and. H2orthopara_mixture.eq."normal") then
     148            nS = 9600
     149            dt_file=TRIM(datadir)//'/continuum_data/H2-H2_norm_2018.cia'
     150         else if (versH2H2cia.eq.2018 .and. H2orthopara_mixture.eq."equilibrium") then
     151            nS = 10860
     152            dt_file=TRIM(datadir)//'/continuum_data/H2-H2_eq_0-15000cm-1_40-400K.cia'
     153         endif
     154     
    155155
    156156         if(.not.allocated(wn_arr))  allocate(wn_arr(nS))
  • trunk/LMDZ.GENERIC/libf/phystd/interpolateH2He.F90

    r2870 r3310  
    4646      logical firstcall
    4747
    48       save wn_arr, temp_arr, abs_arr !read by master
     48      save ns, wn_arr, temp_arr, abs_arr !read by master
    4949
    5050      character*100 dt_file
     
    6464      if (H2orthopara_mixture .eq. "hot") then ! .and. (temp .gt. 3000.0)) then
    6565        ! print*,"We're in the Hot Jupiter case "
    66         nS = 19981
    6766        if (ztemp .gt. 9900) then
    6867          if (strictboundcia) then
     
    8685        endif ! temp .gt. 9900
    8786      else !not in Hot Jupiter case
    88         nS = 2428
    8987        if(ztemp.gt.400)then
    9088          if (strictboundcia) then
     
    128126      endif ! of (H2orthopara_mixture .eq. "hot")
    129127
    130       if (.not. allocated(wn_arr)) allocate(wn_arr(nS))
    131       if (.not. allocated(abs_arr)) allocate(abs_arr(nS,nT))
    132128
    133129      amagatH2 = (273.15/temp)*(presH2/101325.0)
     
    140136!     1.1 Open the ASCII files
    141137         if (H2orthopara_mixture.eq."normal") then
    142            dt_file=TRIM(datadir)//'/continuum_data/H2-He_norm_2011.cia'
     138            nS = 2428
     139            dt_file=TRIM(datadir)//'/continuum_data/H2-He_norm_2011.cia'
    143140         else if (H2orthopara_mixture.eq."equilibrium") then
    144            dt_file=TRIM(datadir)//'/continuum_data/H2-He_eq_2011.cia'
     141            nS = 1501
     142            dt_file=TRIM(datadir)//'/continuum_data/H2-He_eq_0-15000cm-1_40-400K.cia'
    145143         else if (H2orthopara_mixture .eq. "hot") then !we use a dataset than can go as high as 9900 K
    146           dt_file=TRIM(datadir)//'/continuum_data/H2-He_2011.cia'
     144            nS = 19981
     145            dt_file=TRIM(datadir)//'/continuum_data/H2-He_2011.cia'
    147146         endif
     147
     148         if (.not. allocated(wn_arr)) allocate(wn_arr(nS))
     149         if (.not. allocated(abs_arr)) allocate(abs_arr(nS,nT))
     150
    148151         
    149152!$OMP MASTER
     
    190193           print*,'   and He partial pressure     ',presHe,' Pa'
    191194         endif
    192       endif
     195      endif !! if (firstcall)
    193196
    194197         call bilinearbig(nS,nT,wn_arr,temp_arr,abs_arr,wn,ztemp,abcoef,ind)
Note: See TracChangeset for help on using the changeset viewer.