source: trunk/LMDZ.GENERIC/libf/phystd/time_phylmdz_mod.F90 @ 3523

Last change on this file since 3523 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.2 KB
Line 
1MODULE time_phylmdz_mod
2
3    IMPLICIT NONE
4    REAL,SAVE    :: dtphys     ! physics time step (s)
5!$OMP THREADPRIVATE(dtphys)
6    INTEGER,SAVE :: day_step    ! number of dynamical steps per day
7                                ! (set via inifis)
8!$OMP THREADPRIVATE(day_step)
9    INTEGER,SAVE :: nday       ! number of days to run
10!$OMP THREADPRIVATE(nday)
11    REAL,SAVE    :: daysec     ! length of day (s)
12!$OMP THREADPRIVATE(daysec)
13    INTEGER,SAVE :: day_ini     ! initial day of the run
14!$OMP THREADPRIVATE(day_ini)
15
16    INTEGER,SAVE :: ecritphy  ! for diagfi.nc outputs, write every ecritphy
17                              ! dynamical steps (set via inifis)
18!$OMP THREADPRIVATE(ecritphy)
19    INTEGER,SAVE :: iphysiq   ! call physics every iphysiq dynamical step
20                              ! (set via inifis)
21!$OMP THREADPRIVATE(iphysiq)
22
23CONTAINS
24
25  SUBROUTINE init_time(day_ini_, daysec_, nday_, dtphys_)
26    IMPLICIT NONE
27    INTEGER,INTENT(IN) :: day_ini_
28    REAL,INTENT(IN) :: daysec_
29    INTEGER,INTENT(IN) :: nday_
30    REAL,INTENT(IN) :: dtphys_
31   
32    day_ini=day_ini_
33    daysec=daysec_
34    nday=nday_
35    dtphys=dtphys_
36
37  END SUBROUTINE init_time
38
39END MODULE time_phylmdz_mod     
Note: See TracBrowser for help on using the repository browser.