[1524] | 1 | MODULE time_phylmdz_mod |
---|
| 2 | |
---|
| 3 | IMPLICIT NONE |
---|
| 4 | REAL,SAVE :: dtphys ! physics time step (s) |
---|
| 5 | !$OMP THREADPRIVATE(pdtphys) |
---|
[1525] | 6 | INTEGER,SAVE :: day_step ! number of dynamical steps per day |
---|
| 7 | ! (set via conf_phys) |
---|
| 8 | !$OMP THREADPRIVATE(day_step) |
---|
[1524] | 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 | |
---|
[1525] | 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) |
---|
[1524] | 26 | CONTAINS |
---|
| 27 | |
---|
| 28 | SUBROUTINE init_time(day_ini_, hour_ini_, daysec_, dtphys_) |
---|
[1525] | 29 | USE ioipsl_getin_p_mod, ONLY : getin_p |
---|
[1524] | 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_ |
---|
[1525] | 40 | |
---|
[1524] | 41 | END SUBROUTINE init_time |
---|
| 42 | |
---|
| 43 | END MODULE time_phylmdz_mod |
---|