1 |
C $Header: /u/gcmpack/MITgcm/pkg/cal/cal.h,v 1.7 2012/04/05 21:59:03 jmc Exp $ |
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 changed: Christian Eckert eckert@mit.edu 17-Dec-1999 |
14 |
C - restructured the original version in order to have a |
15 |
C better interface to the MITgcmUV. |
16 |
C |
17 |
C ================================================================== |
18 |
C HEADER calendar |
19 |
C ================================================================== |
20 |
|
21 |
C - Parameters of the numerical model: |
22 |
C |
23 |
C modelStart :: start time of the numerical model. |
24 |
C modelStartDate :: start date of the numerical model. |
25 |
C modelEnd :: end time of the numerical model. |
26 |
C modelEndDate :: end date of the numerical model. |
27 |
C modelStep :: timestep of the numerical model. |
28 |
C modelIntSteps :: number of timestep that are to be performed. |
29 |
C modelIter0 :: the numerical models initial timestep number. |
30 |
C modelIterEnd :: the models last timestep number. |
31 |
C modelstepsperday :: number of model time steps per day (<- removed). |
32 |
|
33 |
C - Parameters used by the calendar: |
34 |
C |
35 |
C refDate :: first day of the Gregorian Calendar. |
36 |
C nMonthYear :: number months in a year. |
37 |
C nDayMonth :: days per month depending on the year being a leap |
38 |
C year or not. If the Model calendar is used a 360 |
39 |
C days year with 30 days months is used instead. |
40 |
C nDaysNoLeap :: number of days in a usual year. |
41 |
C nDaysLeap :: number of days in a leap year. |
42 |
C nMaxDayMonth :: maximum number of days in a years month. |
43 |
C hoursPerDay :: number of hours in a calendars day. |
44 |
C minutesPerDay :: number of minutes in a calendars day. |
45 |
C minutesPerHour :: number of minutes in a calendars hour. |
46 |
C secondsPerDay :: number of seconds in a calendars day. |
47 |
C secondsPerHour :: number of seconds in a calendars hour. |
48 |
C secondsPerMinute :: number of seconds in a calendars minute. |
49 |
C cal_setStatus :: status of calendar parms setting (0=none, 3=fully set) |
50 |
|
51 |
INTEGER nMonthYear |
52 |
PARAMETER ( nMonthYear = 12 ) |
53 |
|
54 |
COMMON /CALENDAR_RL/ |
55 |
& modelStart, |
56 |
& modelEnd, |
57 |
& modelStep |
58 |
_RL modelStart |
59 |
_RL modelEnd |
60 |
_RL modelStep |
61 |
|
62 |
COMMON /CALENDAR_I/ |
63 |
& refDate, |
64 |
& nDayMonth, |
65 |
& nDaysNoLeap, |
66 |
& nDaysLeap, |
67 |
& nMaxDayMonth, |
68 |
& hoursPerDay, |
69 |
& minutesPerDay, |
70 |
& minutesPerHour, |
71 |
& secondsPerDay, |
72 |
& secondsPerHour, |
73 |
& secondsPerMinute, |
74 |
& modelStartDate, |
75 |
& modelEndDate, |
76 |
& modelIter0, |
77 |
& modelIterEnd, |
78 |
& modelIntSteps, |
79 |
& cal_setStatus, |
80 |
& startdate_1, |
81 |
& startdate_2 |
82 |
|
83 |
INTEGER refDate(4) |
84 |
INTEGER nDayMonth(nMonthYear,2) |
85 |
INTEGER nDaysNoLeap |
86 |
INTEGER nDaysLeap |
87 |
INTEGER nMaxDayMonth |
88 |
INTEGER hoursPerDay |
89 |
INTEGER minutesPerDay |
90 |
INTEGER minutesPerHour |
91 |
INTEGER secondsPerDay |
92 |
INTEGER secondsPerHour |
93 |
INTEGER secondsPerMinute |
94 |
|
95 |
INTEGER modelStartDate(4) |
96 |
INTEGER modelEndDate(4) |
97 |
INTEGER modelIter0 |
98 |
INTEGER modelIterEnd |
99 |
INTEGER modelIntSteps |
100 |
|
101 |
INTEGER cal_setStatus |
102 |
INTEGER startdate_1 |
103 |
INTEGER startdate_2 |
104 |
|
105 |
C calendarDumps :: When set, approximate months (30-31 days) and years (360-372 days) |
106 |
C for parameters chkPtFreq, pChkPtFreq, taveFreq, SEAICE_taveFreq, |
107 |
C KPP_taveFreq, and freq in pkg/diagnostics are converted to exact |
108 |
C calendar months and years. Requires pkg/cal. |
109 |
COMMON /CALENDAR_L/ |
110 |
& calendarDumps, |
111 |
& usingModelCalendar, |
112 |
& usingJulianCalendar, |
113 |
& usingGregorianCalendar |
114 |
LOGICAL calendarDumps |
115 |
LOGICAL usingModelCalendar |
116 |
LOGICAL usingJulianCalendar |
117 |
LOGICAL usingGregorianCalendar |
118 |
|
119 |
C TheCalendar :: type of calendar to use; available: 'model' or 'gregorian'. |
120 |
C dayOfWeek :: Week day number one is the week day of refDate. |
121 |
C For the Gregorian calendar this is Friday, 15-Oct-1582. |
122 |
C monthOfYear :: Both available calendars are assumed to have twelve |
123 |
C months. |
124 |
COMMON /CALENDAR_C/ |
125 |
& TheCalendar, |
126 |
& dayOfWeek, |
127 |
& monthOfYear |
128 |
CHARACTER*(9) TheCalendar |
129 |
CHARACTER*(3) dayOfWeek(7) |
130 |
CHARACTER*(3) monthOfYear(nMonthYear) |
131 |
|