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/LMDZ.MARS/libf/phymars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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_
Note: See TracChangeset for help on using the changeset viewer.