/[MITgcm]/MITgcm/pkg/cal/cal.h
ViewVC logotype

Contents of /MITgcm/pkg/cal/cal.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.8 - (show annotations) (download)
Sun Apr 8 19:17:09 2012 UTC (12 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint64x, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f
Changes since 1.7: +80 -80 lines
File MIME type: text/plain
declare nMonthYear as parameter and use as dimension in array declaration.

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

  ViewVC Help
Powered by ViewVC 1.1.22