Last change
on this file since 3809 was
3725,
checked in by emillour, 3 months ago
|
Generic PCM:
Change the way the rate of outputs for diagfi.nc files is specified:
IMPORTANT: Specifying "ecritphy" no longer possible and will trigger an error.
Use "diagfi_output_rate" to specify output rate (in physics steps) instead.
This should makes things (hopefully) clearer for users and also better
enforces a cleaner and clearer separation between dynamics and physics.
EM
|
File size:
975 bytes
|
Line | |
---|
1 | MODULE time_phylmdz_mod |
---|
2 | |
---|
3 | IMPLICIT NONE |
---|
4 | REAL,SAVE :: dtphys ! physics time step (s) |
---|
5 | !$OMP THREADPRIVATE(dtphys) |
---|
6 | INTEGER,SAVE :: nday ! number of days to run |
---|
7 | !$OMP THREADPRIVATE(nday) |
---|
8 | REAL,SAVE :: daysec ! length of day (s) |
---|
9 | !$OMP THREADPRIVATE(daysec) |
---|
10 | INTEGER,SAVE :: day_ini ! initial day of the run |
---|
11 | !$OMP THREADPRIVATE(day_ini) |
---|
12 | |
---|
13 | INTEGER,SAVE :: diagfi_output_rate ! for diagfi.nc outputs, write every |
---|
14 | ! diagfi_output_rate physical step |
---|
15 | ! (set via inifis) |
---|
16 | !$OMP THREADPRIVATE(diagfi_output_rate) |
---|
17 | |
---|
18 | CONTAINS |
---|
19 | |
---|
20 | SUBROUTINE init_time(day_ini_, daysec_, nday_, dtphys_) |
---|
21 | IMPLICIT NONE |
---|
22 | INTEGER,INTENT(IN) :: day_ini_ |
---|
23 | REAL,INTENT(IN) :: daysec_ |
---|
24 | INTEGER,INTENT(IN) :: nday_ |
---|
25 | REAL,INTENT(IN) :: dtphys_ |
---|
26 | |
---|
27 | day_ini=day_ini_ |
---|
28 | daysec=daysec_ |
---|
29 | nday=nday_ |
---|
30 | dtphys=dtphys_ |
---|
31 | |
---|
32 | END SUBROUTINE init_time |
---|
33 | |
---|
34 | END MODULE time_phylmdz_mod |
---|
Note: See
TracBrowser
for help on using the repository browser.