Ignore:
Timestamp:
Apr 9, 2020, 6:34:53 PM (5 years ago)
Author:
jvatant
Message:

Set the temperature boundaries and step for Planck function integration as input in callphys.def, for more flexibility.

+ User can now set them by tplanckmin, tplanckmax and dtplanck
+ Default values are a wide range 30-1500K
+ Add a sanity check in callcorrk instead of leaving out-of-bounds planckir indexes.

--JVO

File:
1 edited

Legend:

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

    r2254 r2283  
    233233     write(*,*) "strictboundcorrk = ",strictboundcorrk
    234234
     235     write(*,*) "Minimum atmospheric temperature for Planck function integration ?"
     236     tplanckmin=30.0 ! default value
     237     call getin_p("tplanckmin",tplanckmin)
     238     write(*,*) " tplanckmin = ",tplanckmin
     239 
     240     write(*,*) "Maximum atmospheric temperature for Planck function integration ?"
     241     tplanckmax=1500.0 ! default value
     242     call getin_p("tplanckmax",tplanckmax)
     243     write(*,*) " tplanckmax = ",tplanckmax
     244 
     245     write(*,*) "Temperature step for Planck function integration ?"
     246     dtplanck=0.1 ! default value
     247     call getin_p("dtplanck",dtplanck)
     248     write(*,*) " dtplanck = ",dtplanck
     249 
    235250     write(*,*) "call gaseous absorption in the visible bands?", &
    236251                    "(matters only if callrad=T)"
     
    809824#endif
    810825  ! initialize variables in radinc_h
    811   call ini_radinc_h(nlayer)
     826  call ini_radinc_h(nlayer,tplanckmin,tplanckmax,dtplanck)
    812827 
    813828  ! allocate "comsoil_h" arrays
Note: See TracChangeset for help on using the changeset viewer.