source: trunk/LMDZ.VENUS/libf/phyvenus/time_phylmdz_mod.F90 @ 1524

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

All GCMS:
More updates to enforce dynamics/physics separation:

get rid of references to "temps_mod" from physics packages;
make a "time_phylmdz_mod.F90" module to store that
information and fill it via "iniphysiq".

EM

File size: 1.1 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 :: annee_ref   ! reference year from the origin
7!$OMP THREADPRIVATE(annee_ref)
8    INTEGER,SAVE :: day_ref     ! reference day of the origin
9!$OMP THREADPRIVATE(day_ref)
10    INTEGER,SAVE :: day_ini     ! initial day of the run since first day of annee_ref
11!$OMP THREADPRIVATE(day_ini)
12    INTEGER,SAVE :: day_end     ! final day of the run since first day of annee_ref
13!$OMP THREADPRIVATE(day_end)
14    INTEGER,SAVE :: itau_phy     ! number of physics iterations
15!$OMP THREADPRIVATE(itau_phy)
16
17CONTAINS
18
19  SUBROUTINE init_time(annee_ref_, day_ref_, day_ini_, day_end_, pdtphys_)
20    IMPLICIT NONE
21    INTEGER,INTENT(IN) :: annee_ref_
22    INTEGER,INTENT(IN) :: day_ref_
23    INTEGER,INTENT(IN) :: day_ini_
24    INTEGER,INTENT(IN) :: day_end_
25    REAL,INTENT(IN) :: pdtphys_
26   
27    annee_ref=annee_ref_
28    day_ref=day_ref_
29    day_ini=day_ini_
30    day_end=day_end_
31    pdtphys=pdtphys_
32
33  END SUBROUTINE init_time
34
35END MODULE time_phylmdz_mod     
Note: See TracBrowser for help on using the repository browser.