[1524] | 1 | MODULE 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) |
---|
[1525] | 14 | INTEGER,SAVE :: raz_date ! flag to reset date (0:no, 1:yes) |
---|
| 15 | !$OMP THREADPRIVATE(raz_date) |
---|
[1524] | 16 | INTEGER,SAVE :: itau_phy ! number of physics iterations |
---|
| 17 | !$OMP THREADPRIVATE(itau_phy) |
---|
| 18 | |
---|
| 19 | CONTAINS |
---|
| 20 | |
---|
| 21 | SUBROUTINE init_time(annee_ref_, day_ref_, day_ini_, day_end_, pdtphys_) |
---|
[1525] | 22 | USE ioipsl_getin_p_mod, ONLY : getin_p |
---|
[1524] | 23 | IMPLICIT NONE |
---|
| 24 | INTEGER,INTENT(IN) :: annee_ref_ |
---|
| 25 | INTEGER,INTENT(IN) :: day_ref_ |
---|
| 26 | INTEGER,INTENT(IN) :: day_ini_ |
---|
| 27 | INTEGER,INTENT(IN) :: day_end_ |
---|
| 28 | REAL,INTENT(IN) :: pdtphys_ |
---|
| 29 | |
---|
| 30 | annee_ref=annee_ref_ |
---|
| 31 | day_ref=day_ref_ |
---|
| 32 | day_ini=day_ini_ |
---|
| 33 | day_end=day_end_ |
---|
| 34 | pdtphys=pdtphys_ |
---|
| 35 | |
---|
[1525] | 36 | ! Initialize module variable not inherited from dynamics |
---|
| 37 | raz_date = 0 ! default value |
---|
| 38 | CALL getin_p('raz_date', raz_date) |
---|
| 39 | |
---|
[1524] | 40 | END SUBROUTINE init_time |
---|
| 41 | |
---|
| 42 | END MODULE time_phylmdz_mod |
---|