/[MITgcm]/MITgcm/pkg/cal/cal_summary.F
ViewVC logotype

Contents of /MITgcm/pkg/cal/cal_summary.F

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


Revision 1.6 - (show annotations) (download)
Thu Jun 5 19:38:45 2014 UTC (9 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65o, checkpoint64y, checkpoint64z, HEAD
Changes since 1.5: +20 -17 lines
new calendar type "noLeapYear" for 365 days calendar without any leap year.

1 C $Header: /u/gcmpack/MITgcm/pkg/cal/cal_summary.F,v 1.5 2012/04/05 21:59:03 jmc Exp $
2 C $Name: $
3
4 #include "CAL_OPTIONS.h"
5
6 SUBROUTINE CAL_SUMMARY(
7 I myThid )
8
9 C ==================================================================
10 C SUBROUTINE cal_Summary
11 C ==================================================================
12 C
13 C o List all the settings of the calendar tool.
14 C
15 C started: Christian Eckert eckert@mit.edu 30-Jun-1999
16 C changed: Christian Eckert eckert@mit.edu 10-Jan-2000
17 C - corrected typo: nIterEnd --> nEndIter.
18 C Christian Eckert eckert@mit.edu 03-Feb-2000
19 C - Introduced new routine and function names, cal_<NAME>,
20 C for verion 0.1.3.
21 C
22 C ==================================================================
23 C SUBROUTINE cal_Summary
24 C ==================================================================
25
26 IMPLICIT NONE
27
28 C == global variables ==
29 #include "EEPARAMS.h"
30 #include "cal.h"
31
32 C == routine arguments ==
33 C myThid - thread number for this instance of the routine.
34 INTEGER myThid
35
36 C == local variables ==
37 CHARACTER*(MAX_LEN_MBUF) msgBuf
38 INTEGER numcaldays
39 INTEGER numcalmonths
40 INTEGER numcalyears
41
42 C == Functions ==
43 INTEGER cal_IntYears
44 EXTERNAL cal_IntYears
45 INTEGER cal_IntMonths
46 EXTERNAL cal_IntMonths
47 INTEGER cal_IntDays
48 EXTERNAL cal_IntDays
49
50 C == end of interface ==
51
52 _BEGIN_MASTER(myThid)
53
54 numcalyears = cal_IntYears ( myThid )
55 numcalmonths = cal_IntMonths( myThid )
56 numcaldays = cal_IntDays ( myThid )
57
58 WRITE(msgBuf,'(A)') ' '
59 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
60 & SQUEEZE_RIGHT, myThid )
61 WRITE(msgBuf,'(A)')
62 &'// ======================================================='
63 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
64 & SQUEEZE_RIGHT, myThid )
65 WRITE(msgBuf,'(A)')
66 &'// Calendar configuration >>> START <<<'
67 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
68 & SQUEEZE_RIGHT, myThid )
69 WRITE(msgBuf,'(A)')
70 &'// ======================================================='
71 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
72 & SQUEEZE_RIGHT, myThid )
73 WRITE(msgBuf,'(A)') ' '
74 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
75 & SQUEEZE_RIGHT, myThid )
76 c WRITE(msgBuf,'(A,A)')
77 c &'Calendar version: ',calendarversion
78 c CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
79 c & SQUEEZE_RIGHT, myThid )
80 c WRITE(msgBuf,'(A)') ' '
81 c CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
82 c & SQUEEZE_RIGHT, myThid )
83
84 CALL WRITE_0D_RL( modelstart, INDEX_NONE,'modelstart =',
85 & ' /* Start time of the model integration [s] */')
86 CALL WRITE_0D_RL( modelend, INDEX_NONE, 'modelend =',
87 & ' /* End time of the model integration [s] */')
88 CALL WRITE_0D_RL( modelStep, INDEX_NONE,'modelStep =',
89 & ' /* Time interval for a model forward step [s] */')
90 CALL WRITE_0D_L( usingGregorianCalendar, INDEX_NONE,
91 & 'usingGregorianCalendar=',
92 & ' /* Calendar Type: Gregorian Calendar */')
93 CALL WRITE_0D_L( usingJulianCalendar, INDEX_NONE,
94 & 'usingJulianCalendar =',
95 & ' /* Calendar Type: Julian Calendar */')
96 CALL WRITE_0D_L( usingNoLeapYearCal, INDEX_NONE,
97 & 'usingNoLeapYearCal =',
98 & ' /* Calendar Type: without Leap Year */')
99 CALL WRITE_0D_L( usingModelCalendar, INDEX_NONE,
100 & 'usingModelCalendar =',
101 & ' /* Calendar Type: Model Calendar */')
102 CALL WRITE_0D_I( modelStartDate(1), INDEX_NONE,
103 & 'modelStartDate YYYYMMDD =',
104 & ' /* Model start date YYYY-MM-DD */')
105 CALL WRITE_0D_I( modelStartDate(2), INDEX_NONE,
106 & ' modelStartDate HHMMSS =',
107 & ' /* Model start date HH-MM-SS */')
108 CALL WRITE_0D_I( modelEndDate(1), INDEX_NONE,
109 & 'modelEndDate YYYYMMDD =',
110 & ' /* Model end date YYYY-MM-DD */')
111 CALL WRITE_0D_I( modelEndDate(2), INDEX_NONE,
112 & ' modelEndDate HHMMSS =',
113 & ' /* Model end date HH-MM-SS */')
114 CALL WRITE_0D_I( numcalyears, INDEX_NONE,
115 & 'intyears =',
116 & ' /* Number of calendar years affected by the integration */')
117 CALL WRITE_0D_I( numcalmonths, INDEX_NONE,
118 & 'intmonths=',
119 & ' /* Number of calendar months affected by the integration */')
120 CALL WRITE_0D_I( numcaldays, INDEX_NONE,
121 & 'intdays =',
122 & ' /* Number of calendar days affected by the integration */')
123 CALL WRITE_0D_I( modelIter0, INDEX_NONE,
124 & 'modelIter0 =',
125 & ' /* Base timestep number */')
126 CALL WRITE_0D_I( modelIterEnd, INDEX_NONE,
127 & 'modelIterEnd =',
128 & ' /* Final timestep number */')
129 CALL WRITE_0D_I( modelIntSteps, INDEX_NONE,
130 & 'modelIntSteps=',
131 & ' /* Number of model timesteps */')
132 WRITE(msgBuf,'(A)') ' '
133 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
134 & SQUEEZE_RIGHT, myThid )
135 WRITE(msgBuf,'(A)')
136 &'// ======================================================='
137 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
138 & SQUEEZE_RIGHT, myThid )
139 WRITE(msgBuf,'(A)')
140 &'// Calendar configuration >>> END <<<'
141 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
142 & SQUEEZE_RIGHT, myThid )
143 WRITE(msgBuf,'(A)')
144 &'// ======================================================='
145 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
146 & SQUEEZE_RIGHT, myThid )
147 WRITE(msgBuf,'(A)') ' '
148 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
149 & SQUEEZE_RIGHT, myThid )
150
151 _END_MASTER(myThid)
152
153 RETURN
154 END

  ViewVC Help
Powered by ViewVC 1.1.22