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

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

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


Revision 1.6 - (hide annotations) (download)
Thu Jun 5 19:38:45 2014 UTC (10 years 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 jmc 1.6 C $Header: /u/gcmpack/MITgcm/pkg/cal/cal_summary.F,v 1.5 2012/04/05 21:59:03 jmc Exp $
2 edhill 1.2 C $Name: $
3 heimbach 1.1
4 edhill 1.2 #include "CAL_OPTIONS.h"
5 heimbach 1.1
6 jmc 1.5 SUBROUTINE CAL_SUMMARY(
7     I myThid )
8 heimbach 1.1
9 jmc 1.5 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 heimbach 1.1
26 jmc 1.5 IMPLICIT NONE
27 heimbach 1.1
28 jmc 1.5 C == global variables ==
29 heimbach 1.1 #include "EEPARAMS.h"
30     #include "cal.h"
31    
32 jmc 1.5 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 jmc 1.6 C == Functions ==
43 jmc 1.5 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 heimbach 1.1 &'// ======================================================='
63 jmc 1.5 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
64     & SQUEEZE_RIGHT, myThid )
65     WRITE(msgBuf,'(A)')
66 heimbach 1.1 &'// Calendar configuration >>> START <<<'
67 jmc 1.5 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
68     & SQUEEZE_RIGHT, myThid )
69     WRITE(msgBuf,'(A)')
70 heimbach 1.1 &'// ======================================================='
71 jmc 1.5 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 jmc 1.6 CALL WRITE_0D_RL( modelStep, INDEX_NONE,'modelStep =',
89 jmc 1.5 & ' /* 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 heimbach 1.1 & 'usingJulianCalendar =',
95 jmc 1.5 & ' /* Calendar Type: Julian Calendar */')
96 jmc 1.6 CALL WRITE_0D_L( usingNoLeapYearCal, INDEX_NONE,
97     & 'usingNoLeapYearCal =',
98     & ' /* Calendar Type: without Leap Year */')
99 jmc 1.5 CALL WRITE_0D_L( usingModelCalendar, INDEX_NONE,
100     & 'usingModelCalendar =',
101     & ' /* Calendar Type: Model Calendar */')
102 jmc 1.6 CALL WRITE_0D_I( modelStartDate(1), INDEX_NONE,
103     & 'modelStartDate YYYYMMDD =',
104 jmc 1.5 & ' /* Model start date YYYY-MM-DD */')
105 jmc 1.6 CALL WRITE_0D_I( modelStartDate(2), INDEX_NONE,
106     & ' modelStartDate HHMMSS =',
107 jmc 1.5 & ' /* Model start date HH-MM-SS */')
108 jmc 1.6 CALL WRITE_0D_I( modelEndDate(1), INDEX_NONE,
109     & 'modelEndDate YYYYMMDD =',
110 jmc 1.5 & ' /* Model end date YYYY-MM-DD */')
111 jmc 1.6 CALL WRITE_0D_I( modelEndDate(2), INDEX_NONE,
112     & ' modelEndDate HHMMSS =',
113 jmc 1.5 & ' /* Model end date HH-MM-SS */')
114     CALL WRITE_0D_I( numcalyears, INDEX_NONE,
115 heimbach 1.1 & 'intyears =',
116 jmc 1.4 & ' /* Number of calendar years affected by the integration */')
117 jmc 1.5 CALL WRITE_0D_I( numcalmonths, INDEX_NONE,
118 jmc 1.4 & 'intmonths=',
119     & ' /* Number of calendar months affected by the integration */')
120 jmc 1.5 CALL WRITE_0D_I( numcaldays, INDEX_NONE,
121 heimbach 1.1 & 'intdays =',
122 jmc 1.4 & ' /* Number of calendar days affected by the integration */')
123 jmc 1.6 CALL WRITE_0D_I( modelIter0, INDEX_NONE,
124     & 'modelIter0 =',
125 jmc 1.5 & ' /* Base timestep number */')
126 jmc 1.6 CALL WRITE_0D_I( modelIterEnd, INDEX_NONE,
127     & 'modelIterEnd =',
128 jmc 1.5 & ' /* Final timestep number */')
129 jmc 1.6 CALL WRITE_0D_I( modelIntSteps, INDEX_NONE,
130     & 'modelIntSteps=',
131 jmc 1.5 & ' /* Number of model timesteps */')
132     WRITE(msgBuf,'(A)') ' '
133     CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
134     & SQUEEZE_RIGHT, myThid )
135     WRITE(msgBuf,'(A)')
136 heimbach 1.1 &'// ======================================================='
137 jmc 1.5 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
138     & SQUEEZE_RIGHT, myThid )
139     WRITE(msgBuf,'(A)')
140 heimbach 1.1 &'// Calendar configuration >>> END <<<'
141 jmc 1.5 CALL PRINT_MESSAGE( msgBuf, standardMessageUnit,
142     & SQUEEZE_RIGHT, myThid )
143     WRITE(msgBuf,'(A)')
144 heimbach 1.1 &'// ======================================================='
145 jmc 1.5 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 heimbach 1.1
153 jmc 1.5 RETURN
154     END

  ViewVC Help
Powered by ViewVC 1.1.22