1 |
C $Header: /u/gcmpack/development/heimbach/ecco_env/pkg/cal/cal.h,v 1.3 2000/10/23 16:32:12 heimbach Exp $ |
2 |
|
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 model's initial timestep number. |
36 |
c modeliterend - the model's 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 year's month. |
51 |
c hoursperday - number of hours in a calendar's day. |
52 |
c minutesperday - number of minutes in a calendar's day. |
53 |
c minutesperhour - number of minutes in a calendar's hour. |
54 |
c secondsperday - number of seconds in a calendar's day. |
55 |
c secondsperhour - number of seconds in a calendar's hour. |
56 |
c secondsperminute - number of seconds in a calendar's 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 |
|
88 |
integer refdate(4) |
89 |
integer nmonthyear |
90 |
integer ndaymonth(12,2) |
91 |
integer ndaysnoleap |
92 |
integer ndaysleap |
93 |
integer nmaxdaymonth |
94 |
integer hoursperday |
95 |
integer minutesperday |
96 |
integer minutesperhour |
97 |
integer secondsperday |
98 |
integer secondsperhour |
99 |
integer secondsperminute |
100 |
|
101 |
integer modelstartdate(4) |
102 |
integer modelenddate(4) |
103 |
integer modeliter0 |
104 |
integer modeliterend |
105 |
integer modelintsteps |
106 |
integer modelstepsperday |
107 |
|
108 |
|
109 |
common /cal_l/ |
110 |
& usingNoCalendar, |
111 |
& usingModelCalendar, |
112 |
& usingJulianCalendar, |
113 |
& usingGregorianCalendar |
114 |
|
115 |
logical usingNoCalendar |
116 |
logical usingModelCalendar |
117 |
logical usingJulianCalendar |
118 |
logical usingGregorianCalendar |
119 |
|
120 |
|
121 |
c dayofweek - Week day number one is the week day of refdate. |
122 |
c For the Gregorian calendar this is Friday, 15-Oct-1582. |
123 |
c |
124 |
c monthofyear - Both available calendars are assumed to have twelve |
125 |
c months. |
126 |
|
127 |
common /calendar_ch/ |
128 |
& dayofweek, |
129 |
& monthofyear |
130 |
|
131 |
character*(3) dayofweek(7) |
132 |
character*(3) monthofyear(12) |
133 |
|
134 |
|
135 |
|