1 |
C $Header: $ |
2 |
C $Name: $ |
3 |
|
4 |
c ================================================================== |
5 |
c HEADER calendar |
6 |
c ================================================================== |
7 |
c |
8 |
c o This header file contains variables that are used by the |
9 |
c calendar tool. The calendar tool can be used in the ECCO |
10 |
c SEALION release of the MITgcmUV. |
11 |
c |
12 |
c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
13 |
c |
14 |
c changed: Christian Eckert eckert@mit.edu 17-Dec-1999 |
15 |
c - restructured the original version in order to have a |
16 |
c better interface to the MITgcmUV. |
17 |
c |
18 |
c ================================================================== |
19 |
c HEADER calendar |
20 |
c ================================================================== |
21 |
c |
22 |
c - The calendar version: |
23 |
c |
24 |
character*(5) calendarversion |
25 |
parameter( calendarversion = '0.2.0' ) |
26 |
|
27 |
c - Parameters of the numerical model: |
28 |
c |
29 |
c modelstart - start time of the numerical model. |
30 |
c modelstartdate - start date of the numerical model. |
31 |
c modelend - end time of the numerical model. |
32 |
c modelenddate - end date of the numerical model. |
33 |
c modelstep - timestep of the numerical model. |
34 |
c modelintsteps - number of timestep that are to be performed. |
35 |
c modeliter0 - the numerical models initial timestep number. |
36 |
c modeliterend - the models last timestep number. |
37 |
c modelstepsperday - number of model time steps per calendar day. |
38 |
c |
39 |
c |
40 |
c - Parameters used by the calendar: |
41 |
c |
42 |
c refdate - first day of the Gregorian Calendar. |
43 |
c nmonthyear - number months in a year. |
44 |
c ndaymonth - days per month depending on the year being a |
45 |
c leap year or not. If the Gregorian calendar is |
46 |
c not used a 360 days year with 30 days months is |
47 |
c used instead. |
48 |
c ndaysnoleap - number of days in a usual year. |
49 |
c ndaysleap - number of days in a leap year. |
50 |
c nmaxdaymonth - maximum number of days in a years month. |
51 |
c hoursperday - number of hours in a calendars day. |
52 |
c minutesperday - number of minutes in a calendars day. |
53 |
c minutesperhour - number of minutes in a calendars hour. |
54 |
c secondsperday - number of seconds in a calendars day. |
55 |
c secondsperhour - number of seconds in a calendars hour. |
56 |
c secondsperminute - number of seconds in a calendars minute. |
57 |
|
58 |
|
59 |
common /cal_rl/ |
60 |
& modelstart, |
61 |
& modelend, |
62 |
& modelstep |
63 |
|
64 |
_RL modelstart |
65 |
_RL modelend |
66 |
_RL modelstep |
67 |
|
68 |
common /cal_i/ |
69 |
& refdate, |
70 |
& nmonthyear, |
71 |
& ndaymonth, |
72 |
& ndaysnoleap, |
73 |
& ndaysleap, |
74 |
& nmaxdaymonth, |
75 |
& hoursperday, |
76 |
& minutesperday, |
77 |
& minutesperhour, |
78 |
& secondsperday, |
79 |
& secondsperhour, |
80 |
& secondsperminute, |
81 |
& modelstartdate, |
82 |
& modelenddate, |
83 |
& modeliter0, |
84 |
& modeliterend, |
85 |
& modelintsteps, |
86 |
& modelstepsperday, |
87 |
& startdate_1, |
88 |
& startdate_2 |
89 |
|
90 |
integer refdate(4) |
91 |
integer nmonthyear |
92 |
integer ndaymonth(12,2) |
93 |
integer ndaysnoleap |
94 |
integer ndaysleap |
95 |
integer nmaxdaymonth |
96 |
integer hoursperday |
97 |
integer minutesperday |
98 |
integer minutesperhour |
99 |
integer secondsperday |
100 |
integer secondsperhour |
101 |
integer secondsperminute |
102 |
|
103 |
integer modelstartdate(4) |
104 |
integer modelenddate(4) |
105 |
integer modeliter0 |
106 |
integer modeliterend |
107 |
integer modelintsteps |
108 |
integer modelstepsperday |
109 |
|
110 |
integer startdate_1 |
111 |
integer startdate_2 |
112 |
|
113 |
|
114 |
C calendarDumps :: When set, approximate months (30-31 days) and years (360-372 days) |
115 |
C for parameters chkPtFreq, pChkPtFreq, taveFreq, SEAICE_taveFreq, |
116 |
C KPP_taveFreq, and freq in pkg/diagnostics are converted to exact |
117 |
C calendar months and years. Requires pkg/cal. |
118 |
|
119 |
common /cal_l/ |
120 |
& calendarDumps, |
121 |
& usingNoCalendar, |
122 |
& usingModelCalendar, |
123 |
& usingJulianCalendar, |
124 |
& usingGregorianCalendar |
125 |
|
126 |
logical calendarDumps |
127 |
logical usingNoCalendar |
128 |
logical usingModelCalendar |
129 |
logical usingJulianCalendar |
130 |
logical usingGregorianCalendar |
131 |
|
132 |
|
133 |
c dayofweek - Week day number one is the week day of refdate. |
134 |
c For the Gregorian calendar this is Friday, 15-Oct-1582. |
135 |
c |
136 |
c monthofyear - Both available calendars are assumed to have twelve |
137 |
c months. |
138 |
|
139 |
common /calendar_ch/ |
140 |
& dayofweek, |
141 |
& monthofyear |
142 |
|
143 |
character*(3) dayofweek(7) |
144 |
character*(3) monthofyear(12) |
145 |
|
146 |
|
147 |
|