Changeset 3804
- Timestamp:
- Jun 12, 2025, 10:13:20 AM (44 hours ago)
- Location:
- trunk/LMDZ.MARS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/changelog.txt
r3800 r3804 4862 4862 Add a bash script to handle correctly cpu-binding on Adastra when using full node 4863 4863 4864 == 12/06/2025 == JBC 4865 Move paleoclimate variables from time-independent to time-dependent writing of "stratfi.nc". -
trunk/LMDZ.MARS/libf/phymars/phyredem.F90
r3726 r3804 7 7 !======================================================================= 8 8 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 9 subroutine physdem0(filename,lonfi,latfi,nsoil,ngrid,nlay,nq,phystep,day_ini, & 10 time,airefi,alb,ith,def_slope,subslope_dist) 14 11 ! 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 31 27 32 28 implicit none … … 189 185 call put_field("subslope_dist","under mesh slope distribution",subslope_dist) 190 186 191 ! Paleoclimate outputs192 if (paleoclimate) then193 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 endif198 199 187 ! Close file 200 188 call close_restartphy … … 204 192 !======================================================================= 205 193 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) 194 subroutine physdem1(filename,nsoil,ngrid,nlay,nq,nqsoil,phystep,time,tsurf,tsoil,inertiesoil, & 195 albedo,emis,q2,qsurf,qsoil,tauscaling,totcloudfrac,wstar,watercap,perennial_co2ice) 211 196 ! write time-dependent variable to restart file 212 use iostart, only : open_restartphy, close_restartphy, & 213 214 use tracer_mod, only: noms ! tracer names215 use nonoro_gwd_ran_mod, only: du_nonoro_gwd, dv_nonoro_gwd216 use compute_dtau_mod, only: dtau197 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 217 202 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 224 211 implicit none 225 212 … … 394 381 endif 395 382 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 396 392 ! Close file 397 393 call close_restartphy
Note: See TracChangeset
for help on using the changeset viewer.