Ignore:
Timestamp:
Feb 6, 2026, 10:20:21 PM (3 weeks ago)
Author:
mturbet
Message:

Cleaning of continuum routines following 04-02-26 hackathon. RIP our beloved bilinear and bilinearbig routines. You will be deeply missed...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phygeneric/sugas_corrk.F90

    r3893 r4055  
    3434      use ioipsl_getin_p_mod, only: getin_p
    3535      use callkeys_mod, only: varactive,varfixed,graybody,callgasvis,&
    36                 continuum,generic_continuum_database
     36                continuum
    3737      use tracer_h, only : nqtot, moderntracdef, is_recomb, noms
    3838      use recombin_corrk_mod, only: su_recombin,        &
     
    6262
    6363      double precision testcont ! for continuum absorption initialisation
    64 
    65       integer :: dummy
    6664
    6765      if (.not. moderntracdef) use_premix=.true. ! Added by JVO for compatibility with 'old' traceur.def
     
    717715!     Initialise the continuum absorption data
    718716      if(continuum)then
    719       if(generic_continuum_database)then
     717     
    720718       do igas=1,ngasmx ! we loop on all pairs of molecules that have data available
    721719       ! data can be downloaded from https://web.lmd.jussieu.fr/~lmdz/planets/generic/datagcm/continuum_data/
     
    806804       enddo ! igas=1,ngasmx
    807805       
    808       else ! generic_continuum_database tag
    809         do igas=1,ngasmx
    810          if (igas .eq. igas_N2) then
    811 
    812             dummy = -9999
    813             call interpolateN2N2(100.D+0,250.D+0,17500.D+0,testcont,.true.,dummy)
    814 
    815          elseif (igas .eq. igas_H2) then
    816 
    817             ! first do self-induced absorption
    818             dummy = -9999
    819             call interpolateH2H2(500.D+0,250.D+0,17500.D+0,testcont,.true.,dummy)
    820             ! then cross-interactions with other gases
    821             do jgas=1,ngasmx
    822                if (jgas .eq. igas_N2) then
    823                   dummy = -9999
    824                   call interpolateN2H2(592.D+0,278.15D+0,200000.D+0,10000.D+0,testcont,.true.,dummy)
    825                elseif (jgas .eq. igas_CO2) then
    826                   dummy = -9999
    827                   call interpolateCO2H2(592.D+0,278.15D+0,200000.D+0,10000.D+0,testcont,.true.,dummy)
    828                elseif (jgas .eq. igas_He) then
    829                   dummy = -9999
    830                   call interpolateH2He(500.D+0,250.D+0,200000.D+0,10000.D+0,testcont,.true.,dummy)
    831                endif
    832             enddo
    833                
    834          
    835          elseif (igas .eq. igas_CH4) then
    836          
    837             ! first do self-induced absorption
    838             dummy = -9999
    839             call interpolateCH4CH4(600.0,66.7,400.0,testcont,.true.,dummy)
    840             ! then cross-interactions with other gases
    841             do jgas=1,ngasmx
    842                if (jgas .eq. igas_H2) then
    843                   dummy = -9999
    844                   call interpolateH2CH4(500.D+0,250.D+0,200000.D+0,10000.D+0,testcont,.true.,dummy)
    845                elseif (jgas .eq. igas_CO2) then
    846                   dummy = -9999
    847                   call interpolateCO2CH4(592.D+0,278.15D+0,200000.D+0,10000.D+0,testcont,.true.,dummy)
    848                elseif (jgas .eq. igas_He) then
    849                   dummy = -9999
    850                   call interpolateHeCH4(500.D+0,250.D+0,200000.D+0,10000.D+0,testcont,.true.,dummy)
    851                endif
    852             enddo
    853            
    854 
    855          elseif (igas .eq. igas_H2O) then
    856 
    857             ! Compute self and foreign (with air) continuum of H2O
    858             dummy = -9999
    859             call interpolateH2O_self_foreign(990.D+0,296.D+0,683.2D+0*2,0.D+0,testcont,.true.,dummy) 
    860 
    861          endif
    862 
    863       enddo ! igas=1,ngasmx
    864       endif ! generic_continuum_database tag
    865806      endif ! continuum flag
    866807
Note: See TracChangeset for help on using the changeset viewer.