Ignore:
Timestamp:
Sep 3, 2025, 11:19:36 PM (4 months ago)
Author:
tbertrand
Message:

Pluto PCM:

  • adding option to use N2 ice fractional maps (n2frac) read in the startfi.nc
  • adding option in newstart to correct (tsurf and tsoil) for too warm or too cold N2-free (correct_t_non2) or N2-rich (correct_t_n2) patches

TB

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/phypluto/phyetat0_mod.F90

    r3772 r3910  
    2323  use tabfi_mod, only: tabfi,ini_tab_controle_dyn_xios,tab_cntrl_mod
    2424  USE tracer_h, ONLY: noms
    25   USE surfdat_h, only: phisfi, albedodat, zmea, zstd, zsig, zgam, zthe
     25  USE surfdat_h, only: phisfi, albedodat, zmea, zstd, zsig, zgam, zthe, n2frac
    2626  use iostart, only: nid_start, open_startphy, close_startphy, &
    2727                     get_field, get_var, inquire_field, &
     
    9191!
    9292IF (.not. ALLOCATED(albedodat)) ALLOCATE(albedodat(ngrid))
     93IF (.not. ALLOCATED(n2frac)) ALLOCATE(n2frac(ngrid))
    9394IF (.not. ALLOCATED(phisfi)) ALLOCATE(phisfi(ngrid))
    9495IF (.not. ALLOCATED(zmea)) ALLOCATE(zmea(ngrid))
     
    140141if (is_master) write(*,*) "phyetat0: Bare ground albedo <albedodat> range:", &
    141142             minval(albedodat), maxval(albedodat)
     143
     144!n2frac
     145
     146if (startphy_file) then
     147  ! Load bare ground albedo:
     148  call get_field(nid_start,"n2frac",n2frac,found)
     149  if (.not.found) then
     150    call abort_physic(modname,"Failed loading <n2frac>",1)
     151  endif
     152else
     153  ! If no startfi file, use fixed value to test
     154  n2frac(:)=1
     155endif ! of if (startphy_file)
     156if (is_master) write(*,*) "phyetat0: n2 fraction of ice  <n2frac> range:", &
     157             minval(n2frac), maxval(n2frac)
    142158
    143159! ZMEA
Note: See TracChangeset for help on using the changeset viewer.