Ignore:
Timestamp:
Jun 12, 2024, 11:00:16 AM (6 months ago)
Author:
emillour
Message:

Mars PCM:
Change the way the rate of outputs for diagfi.nc files is specified:
IMPORTANT: Specifying "ecritphy" no longer possible and will trigger an error.
Use "outputs_per_sol" to specify output rate instead.
This should makes things (hopefully) clearer for users and also better
enforces a cleaner and clearer separation between dynamics and physics.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/dyn1d/init_testphys1d_mod.F90

    r3316 r3369  
    1111use ioipsl_getincom,          only: getin ! To use 'getin'
    1212use comcstfi_h,               only: pi, rad, omeg, g, mugaz, rcp, r, cpp
    13 use time_phylmdz_mod,         only: daysec, day_step, ecritphy, iphysiq
     13use time_phylmdz_mod, only: daysec, steps_per_sol, outputs_per_sol, iphysiq
    1414use planete_h,                only: year_day, periheli, aphelie, peri_day, obliquit, emin_turb, lmixmin
    1515use surfdat_h,                only: albedodat, z0_default, z0, emissiv, emisice, albedice, iceradius, dtemisice,      &
     
    287287nsoil = nsoilmx
    288288
    289 day_step = 48 ! Default value for day_step
     289steps_per_sol = 48 ! Default value for day_step (old name for steps_per_sol)
    290290write(*,*)'Number of time steps per sol?'
    291 call getin("day_step",day_step)
    292 write(*,*) " day_step = ",day_step
    293 
    294 ecritphy = day_step ! Default value for ecritphy, output every time step
     291call getin("day_step",steps_per_sol)
     292write(*,*) " steps_per_sol (aka day_step) = ",steps_per_sol
     293
     294outputs_per_sol = steps_per_sol ! Default value for outputs_per_sol
    295295
    296296ndt = 10 ! Default value for ndt
     
    300300
    301301dayn = day0 + ndt
    302 ndt = ndt*day_step
    303 dttestphys = daysec/day_step
     302ndt = ndt*steps_per_sol
     303dttestphys = daysec/steps_per_sol
    304304
    305305! Imposed surface pressure
Note: See TracChangeset for help on using the changeset viewer.