Changeset 3804


Ignore:
Timestamp:
Jun 12, 2025, 10:13:20 AM (44 hours ago)
Author:
jbclement
Message:

Mars PCM:
Move paleoclimate variables from time-independent to time-dependent writing of "stratfi.nc".
JBC

Location:
trunk/LMDZ.MARS
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/changelog.txt

    r3800 r3804  
    48624862Add a bash script to handle correctly cpu-binding on Adastra when using full node
    48634863
     4864== 12/06/2025 == JBC
     4865Move paleoclimate variables from time-independent to time-dependent writing of "stratfi.nc".
  • trunk/LMDZ.MARS/libf/phymars/phyredem.F90

    r3726 r3804  
    77!=======================================================================
    88
    9 subroutine physdem0(filename,lonfi,latfi,nsoil,ngrid,nlay,nq, &
    10                          phystep,day_ini,time,airefi, &
    11                          alb,ith,def_slope, &
    12                          subslope_dist)
    13 
     9subroutine physdem0(filename,lonfi,latfi,nsoil,ngrid,nlay,nq,phystep,day_ini, &
     10                    time,airefi,alb,ith,def_slope,subslope_dist)
    1411! create physics restart file and write time-independent variables
    15   use comsoil_h, only: inertiedat, volcapa, mlayer
    16   use geometry_mod, only: cell_area
    17   use surfdat_h, only: zmea, zstd, zsig, zgam, zthe, &
    18                        z0_default, albedice, emisice, emissiv, &
    19                        iceradius, dtemisice, phisfi, z0,   &
    20                        hmons,summit,base,watercaptag
    21   use dimradmars_mod, only: tauvis
    22   use iostart, only : open_restartphy, close_restartphy, &
    23                       put_var, put_field, length, ldscrpt, ndscrpt
    24   use mod_grid_phy_lmdz, only : klon_glo
    25   use planete_h, only: aphelie, emin_turb, lmixmin, obliquit, &
    26                        peri_day, periheli, year_day
    27   use comcstfi_h, only: g, mugaz, omeg, rad, rcp
    28   use time_phylmdz_mod, only: daysec
    29   use comslope_mod, ONLY: nslope
    30   USE paleoclimate_mod, ONLY: paleoclimate, h2o_ice_depth, lag_co2_ice, d_coef, zdqsdif_ssi_tot
     12
     13  use comsoil_h,          only: inertiedat, volcapa, mlayer
     14  use geometry_mod,       only: cell_area
     15  use surfdat_h,          only: zmea, zstd, zsig, zgam, zthe, z0_default, &
     16                                albedice, emisice, emissiv, iceradius,    &
     17                                dtemisice, phisfi, z0, hmons, summit, base, watercaptag
     18  use dimradmars_mod,     only: tauvis
     19  use iostart,            only: open_restartphy, close_restartphy, &
     20                                put_var, put_field, length, ldscrpt, ndscrpt
     21  use mod_grid_phy_lmdz,  only: klon_glo
     22  use planete_h,          only: aphelie, emin_turb, lmixmin, obliquit, &
     23                                peri_day, periheli, year_day
     24  use comcstfi_h,         only: g, mugaz, omeg, rad, rcp
     25  use time_phylmdz_mod,   only: daysec
     26  use comslope_mod,       only: nslope
    3127
    3228  implicit none
     
    189185  call put_field("subslope_dist","under mesh slope distribution",subslope_dist)
    190186
    191   ! Paleoclimate outputs
    192   if (paleoclimate) then
    193     call put_field("h2o_ice_depth","Depth to the fisrt H2O ice",h2o_ice_depth)
    194     call put_field("lag_co2_ice","Depth of the CO2 lags",lag_co2_ice)
    195     call put_field("zdqsdif_ssi_tot","Total flux with SSI",zdqsdif_ssi_tot)
    196     call put_field("d_coef","Diffusion coefficent",d_coef)
    197   endif
    198 
    199187  ! Close file
    200188  call close_restartphy
     
    204192!=======================================================================
    205193
    206 subroutine physdem1(filename,nsoil,ngrid,nlay,nq,nqsoil, &
    207                     phystep,time,tsurf,tsoil,inertiesoil, &
    208                     albedo,emis,q2,qsurf,qsoil,&
    209                     tauscaling,totcloudfrac,wstar, &
    210                     watercap,perennial_co2ice)
     194subroutine physdem1(filename,nsoil,ngrid,nlay,nq,nqsoil,phystep,time,tsurf,tsoil,inertiesoil, &
     195                    albedo,emis,q2,qsurf,qsoil,tauscaling,totcloudfrac,wstar,watercap,perennial_co2ice)
    211196  ! write time-dependent variable to restart file
    212   use iostart, only : open_restartphy, close_restartphy, &
    213                       put_var, put_field
    214   use tracer_mod, only: noms ! tracer names
    215   use nonoro_gwd_ran_mod, only: du_nonoro_gwd, dv_nonoro_gwd
    216   use compute_dtau_mod, only: dtau
     197
     198  use iostart,             only: open_restartphy, close_restartphy, put_var, put_field
     199  use tracer_mod,          only: noms ! tracer names
     200  use nonoro_gwd_ran_mod,  only: du_nonoro_gwd, dv_nonoro_gwd
     201  use compute_dtau_mod,    only: dtau
    217202  use dust_rad_adjust_mod, only: dust_rad_adjust_prev,dust_rad_adjust_next
    218   use dust_param_mod, only: dustscaling_mode
    219   use comsoil_h,only: flux_geo,adsorption_soil,igcm_h2o_vap_soil, &
    220                       igcm_h2o_ice_soil,igcm_h2o_vap_ads
    221   use comslope_mod, only: nslope
    222   use paleoclimate_mod, only: paleoclimate
    223   use callkeys_mod, only: calltherm, dustinjection, calllott_nonoro
     203  use dust_param_mod,      only: dustscaling_mode
     204  use comsoil_h,           only: flux_geo,adsorption_soil,igcm_h2o_vap_soil, &
     205                                 igcm_h2o_ice_soil,igcm_h2o_vap_ads
     206  use comslope_mod,        only: nslope
     207  use paleoclimate_mod,    only: paleoclimate
     208  use callkeys_mod,        only: calltherm, dustinjection, calllott_nonoro
     209  use paleoclimate_mod,    only: paleoclimate, h2o_ice_depth, lag_co2_ice, d_coef, zdqsdif_ssi_tot
     210
    224211  implicit none
    225212 
     
    394381  endif
    395382
     383  ! Paleoclimate
     384  if (paleoclimate) then
     385    print*, 'yooooooooo', h2o_ice_depth
     386    call put_field("h2o_ice_depth","Depth to the fisrt H2O ice",h2o_ice_depth)
     387    call put_field("lag_co2_ice","Depth of the CO2 lags",lag_co2_ice)
     388    call put_field("zdqsdif_ssi_tot","Total flux with SSI",zdqsdif_ssi_tot)
     389    call put_field("d_coef","Diffusion coefficent",d_coef)
     390  endif
     391
    396392  ! Close file
    397393  call close_restartphy
Note: See TracChangeset for help on using the changeset viewer.