source: trunk/LMDZ.TITAN.old/libf/phytitan/time_phylmdz_mod.F90 @ 3094

Last change on this file since 3094 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    :: pdtphys     ! physics time step (s)
5!$OMP THREADPRIVATE(pdtphys)
6    INTEGER,SAVE :: nday        ! number of days to run
7!$OMP THREADPRIVATE(nday)
8    INTEGER,SAVE :: annee_ref   ! reference year from the origin
9!$OMP THREADPRIVATE(annee_ref)
10    INTEGER,SAVE :: day_ref     ! reference day of the origin
11!$OMP THREADPRIVATE(day_ref)
12    INTEGER,SAVE :: day_ini     ! initial day of the run since first day of annee_ref
13!$OMP THREADPRIVATE(day_ini)
14    INTEGER,SAVE :: day_end     ! final day of the run since first day of annee_ref
15!$OMP THREADPRIVATE(day_end)
16    INTEGER,SAVE :: raz_date    ! flag to reset date (0:no, 1:yes)
17!$OMP THREADPRIVATE(raz_date)
18    INTEGER,SAVE :: itau_phy     ! number of physics iterations
19!$OMP THREADPRIVATE(itau_phy)
20
21CONTAINS
22
23  SUBROUTINE init_time(annee_ref_, day_ref_, day_ini_, day_end_, &
24                       nday_, pdtphys_)
25    USE ioipsl_getin_p_mod, ONLY : getin_p
26    IMPLICIT NONE
27    INTEGER,INTENT(IN) :: annee_ref_
28    INTEGER,INTENT(IN) :: day_ref_
29    INTEGER,INTENT(IN) :: day_ini_
30    INTEGER,INTENT(IN) :: day_end_
31    INTEGER,INTENT(IN) :: nday_
32    REAL,INTENT(IN) :: pdtphys_
33   
34    annee_ref=annee_ref_
35    day_ref=day_ref_
36    day_ini=day_ini_
37    day_end=day_end_
38    nday=nday_
39    pdtphys=pdtphys_
40
41    ! Initialize module variable not inherited from dynamics
42    raz_date = 0 ! default value
43    CALL getin_p('raz_date', raz_date)
44   
45  END SUBROUTINE init_time
46
47END MODULE time_phylmdz_mod     
Note: See TracBrowser for help on using the repository browser.