source: trunk/LMDZ.MARS/libf/phymars/time_phylmdz_mod.F90 @ 2090

Last change on this file since 2090 was 1525, checked in by emillour, 9 years ago

All GCMs:
More on enforcing dynamics/physics separation: get rid of references to "control_mod" from physics packages.
EM

File size: 1.5 KB
Line 
1MODULE time_phylmdz_mod
2
3    IMPLICIT NONE
4    REAL,SAVE    :: dtphys      ! physics time step (s)
5!$OMP THREADPRIVATE(pdtphys)
6    INTEGER,SAVE :: day_step    ! number of dynamical steps per day
7                                ! (set via conf_phys)
8!$OMP THREADPRIVATE(day_step)
9    REAL,SAVE    :: daysec     ! length of day (s)
10!$OMP THREADPRIVATE(daysec)
11    INTEGER,SAVE :: day_ini     ! initial day of the run
12!$OMP THREADPRIVATE(day_ini)
13    REAL,SAVE :: hour_ini       ! start time (fraction of day) of the run
14                                ! 0=<hour_ini<1
15!$OMP THREADPRIVATE(hour_ini)
16
17    INTEGER,SAVE :: ecritphy    ! for diagfi.nc outputs, write every ecritphy
18                                ! dynamical steps (set via conf_phys)
19!$OMP THREADPRIVATE(ecritphy)
20    INTEGER,SAVE :: iphysiq   ! call physics every iphysiq dynamical step
21                              ! (set via conf_phys)
22!$OMP THREADPRIVATE(iphysiq)
23    INTEGER,SAVE :: ecritstart ! write a restart state every ecritstart
24                               ! dynamical steps (set via conf_phys)
25!$OMP THREADPRIVATE(ecritstart)
26CONTAINS
27
28  SUBROUTINE init_time(day_ini_, hour_ini_, daysec_, dtphys_)
29    USE ioipsl_getin_p_mod, ONLY : getin_p
30    IMPLICIT NONE
31    INTEGER,INTENT(IN) :: day_ini_
32    REAL,INTENT(IN) :: hour_ini_
33    REAL,INTENT(IN) :: daysec_
34    REAL,INTENT(IN) :: dtphys_
35   
36    day_ini=day_ini_
37    hour_ini=hour_ini_
38    daysec=daysec_
39    dtphys=dtphys_
40   
41  END SUBROUTINE init_time
42
43END MODULE time_phylmdz_mod     
Note: See TracBrowser for help on using the repository browser.