Changeset 2511


Ignore:
Timestamp:
Apr 30, 2021, 9:55:53 PM (4 years ago)
Author:
aslmd
Message:

update of r2507: streamlining day_end from dynamics to physics to avoid using a dynamical module in the physics. put changes in 3 interfaces: LMDZ, DYNAMICO, and WRF

Location:
trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/ICOSA_LMDZ/src/phymars/interface_icosa_lmdz.f90

    r2424 r2511  
    201201  INTEGER :: annee_ref 
    202202  INTEGER :: day_ref   
    203   INTEGER :: day_ini   
     203  INTEGER :: day_ini
     204  INTEGER :: day_end
     205   
    204206  REAL    :: start_time
    205207  REAL    :: physics_timestep   
     
    373375    ndays=nint(itaumax*(dt/day_length))! number of days to run
    374376    physics_timestep=dt*itau_physics
     377    day_end=day_ini+ndays
    375378
    376379!!!    CALL inifis(klon_omp,llm,nqtot,start_day,day_length,ndays,physics_timestep, &
     
    384387!!!
    385388   CALL phys_state_var_init(klon_omp,llm,nqtot,tname, &
    386                        day_ini,hour_ini,day_length,physics_timestep, &
     389                       day_ini,day_end,hour_ini,&
     390                       day_length,physics_timestep, &
    387391                       radius,g,kappa*cpp,cpp, &
    388392                       dyn_nqperes,dyn_nqfils)
  • trunk/LMDZ.MARS/README

    r2510 r2511  
    33553355the next run_monthX is now well written, with a formulation that is more coherent with deftank/occigen/run_month1 version
    33563356+ the PBS memory specifications for the CICLAD job are set to more relevant values
     3357
     3358== 30/04/2021 == AS
     3359update of changes by RV on 27/04/2021; streamlining day_end to avoid using a dynamical module in the physics.
  • trunk/LMDZ.MARS/libf/dynphy_lonlat/phymars/iniphysiq_mod.F90

    r2332 r2511  
    1414                     nqperes,nqfils! MVals: variables isotopes
    1515use comgeomfi_h, only: ini_fillgeom
    16 use temps_mod, only: day_ini, hour_ini
     16use temps_mod, only: day_ini, day_end, hour_ini
    1717use phys_state_var_init_mod, only: phys_state_var_init
    1818use inigeomphy_mod, only: inigeomphy
     
    7171
    7272call phys_state_var_init(klon_omp,nlayer,nqtot,tname, &
    73                          day_ini,hour_ini,punjours,ptimestep, &
     73                         day_ini,day_end,hour_ini,&
     74                         punjours,ptimestep, &
    7475                         prad,pg,pr,pcpp, &
    7576                         nqperes,nqfils) ! MVals: variables isotopes
  • trunk/LMDZ.MARS/libf/phymars/phys_state_var_init_mod.F90

    r2417 r2511  
    44
    55      SUBROUTINE phys_state_var_init(ngrid,nlayer,nq,tname, &
    6                                      day_ini,hour_ini,pdaysec,ptimestep, &
     6                                     day_ini,day_end,hour_ini,pdaysec,ptimestep, &
    77                                     prad,pg,pr,pcpp, &
    88                                     dyn_nqperes,dyn_nqfils)! MVals: variables isotopes
     
    6868      INTEGER,INTENT(IN) :: ngrid,nlayer,nq
    6969      CHARACTER(len=*),INTENT(IN) :: tname(nq)
    70       INTEGER,INTENT(IN) :: day_ini
     70      INTEGER,INTENT(IN) :: day_ini, day_end
    7171      REAL,INTENT(IN) :: hour_ini
    7272      REAL,INTENT(IN) :: pdaysec,ptimestep,prad,pg,pr,pcpp
     
    9292
    9393      ! Initialize some "temporal and calendar" related variables
    94       call init_time(day_ini,hour_ini,pdaysec,ptimestep)
     94      call init_time(day_ini,day_end,hour_ini,pdaysec,ptimestep)
    9595
    9696      ! allocate "slope_mod" arrays
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2508 r2511  
    8686      USE vertical_layers_mod, ONLY: ap,bp,aps,bps,presnivs,pseudoalt
    8787      USE mod_phys_lmdz_omp_data, ONLY: is_omp_master
     88      USE time_phylmdz_mod, ONLY: day_end
    8889#endif
    89       USE temps_mod, ONLY: day_end
    9090
    9191#ifdef CPP_XIOS     
  • trunk/LMDZ.MARS/libf/phymars/time_phylmdz_mod.F90

    r2266 r2511  
    1111    INTEGER,SAVE :: day_ini     ! initial day of the run
    1212!$OMP THREADPRIVATE(day_ini)
     13    INTEGER,SAVE :: day_end     ! final day of the run
     14!$OMP THREADPRIVATE(day_end)
    1315    REAL,SAVE :: hour_ini       ! start time (fraction of day) of the run
    1416                                ! 0=<hour_ini<1
     
    2628CONTAINS
    2729
    28   SUBROUTINE init_time(day_ini_, hour_ini_, daysec_, dtphys_)
    29     USE ioipsl_getin_p_mod, ONLY : getin_p
     30  SUBROUTINE init_time(day_ini_, day_end_, hour_ini_, daysec_, dtphys_)
     31
    3032    IMPLICIT NONE
    3133    INTEGER,INTENT(IN) :: day_ini_
     34    INTEGER,INTENT(IN) :: day_end_
    3235    REAL,INTENT(IN) :: hour_ini_
    3336    REAL,INTENT(IN) :: daysec_
     
    3538   
    3639    day_ini=day_ini_
     40    day_end=day_end_
    3741    hour_ini=hour_ini_
    3842    daysec=daysec_
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/dynphy_wrf_mars_lmd_new/iniphysiq_mod.F

    r2455 r2511  
    3636real,intent(in) :: piphysiq   ! call physics every piphysiq dynamical timesteps
    3737
     38! used in GCM but not in mesoscale. dummy initialization.
     39integer :: pdayend=0 ! end day of for the simulation [day_end]
     40
    3841! isotopes
    3942INTEGER :: nqperes
     
    5659!! initialize physical constants and arrays
    5760call phys_state_var_init(ngrid,nlayer,nq, traceurs, &
    58                          pdayref,phour_ini,punjours,zdt_split, &
     61                         pdayref,pdayend,phour_ini,punjours,zdt_split, &
    5962                         prad,pg,pr,pcpp, &
    6063                         nqperes,nqfils)
Note: See TracChangeset for help on using the changeset viewer.