Ignore:
Timestamp:
Apr 15, 2025, 9:34:31 AM (9 months ago)
Author:
emillour
Message:

Generic 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 "diagfi_output_rate" to specify output rate (in physics steps) 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.GENERIC/libf/phystd/dyn1d/rcm1d.F

    r3716 r3725  
    2121      use comcstfi_mod, only: pi, cpp, rad, g, r,
    2222     &                        mugaz, rcp, omeg
    23       use time_phylmdz_mod, only: daysec, dtphys, day_step, ecritphy,
    24      &                            nday, iphysiq
     23      use time_phylmdz_mod, only: daysec, dtphys, nday,
     24     &                            diagfi_output_rate
    2525      use callkeys_mod, only: tracer,rings_shadow,
    2626     &                        specOLR,water,pceil,ok_slab_ocean,photochem
     
    7171!==================================================================
    7272
    73 #include "dimensions.h"
    74 #include "paramet.h"
    75 !include "dimphys.h"
    76 #include "netcdf.inc"
    77 #include "comgeom.h"
     73      include "dimensions.h"
     74      include "paramet.h"
     75      include "comgeom.h"
    7876
    7977c --------------------------------------------------------------
     
    9189c
    9290      INTEGER day0          ! date initial (sol ; =0 a Ls=0)
    93       REAL day              ! date durant le run
     91      REAL day              ! date during the run
     92      INTEGER day_step ! number of time steps per day
    9493      REAL time             ! time (0<time<1 ; time=0.5 a midi)
    9594      REAL play(llm)        ! Pressure at the middle of the layers (Pa)
     
    596595      write(*,*) " day_step = ",day_step
    597596
    598       iphysiq=1 ! in 1D model physics are called evry time step
    599       ecritphy=day_step ! default value for ecritphy
     597      diagfi_output_rate=day_step ! default value for diagfi_output_rate
    600598      PRINT *,'Nunber of steps between writediagfi ?'
    601       call getin("ecritphy",ecritphy)
    602       write(*,*) " ecritphy = ",ecritphy
     599      call getin("diagfi_output_rate",diagfi_output_rate)
     600      write(*,*) " diagfi_output_rate = ",diagfi_output_rate
    603601
    604602      ndt=10 ! default value for ndt
Note: See TracChangeset for help on using the changeset viewer.