1 | MODULE 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 | |
---|
23 | CONTAINS |
---|
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 | |
---|
39 | END MODULE time_phylmdz_mod |
---|