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

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

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


Revision 1.1.20.2 - (show annotations) (download)
Tue Oct 7 20:46:37 2003 UTC (20 years, 8 months ago) by adcroft
Branch: branch-genmake2
Changes since 1.1.20.1: +2 -1 lines
Missing $Name

1 C $Header: /u/gcmpack/MITgcm/pkg/cal/cal_intyears.F,v 1.1.20.1 2003/10/02 18:30:07 adcroft Exp $
2 C $Name: $
3
4 #include "CAL_OPTIONS.h"
5
6 integer function cal_IntYears(
7 I mythid
8 & )
9
10 c ==================================================================
11 c FUNCTION cal_IntYears
12 c ==================================================================
13 c
14 c o Return the number of calendar years that are affected by the
15 c current model integration.
16 c
17 c
18 c started: Christian Eckert eckert@mit.edu 30-Jun-1999
19 c
20 c changed: Christian Eckert eckert@mit.edu 29-Dec-1999
21 c
22 c - restructured the original version in order to have a
23 c better interface to the MITgcmUV.
24 c
25 c Christian Eckert eckert@mit.edu 03-Feb-2000
26 c
27 c - Introduced new routine and function names, cal_<NAME>,
28 c for verion 0.1.3.
29 c
30 c ==================================================================
31 c FUNCTION cal_IntYears
32 c ==================================================================
33
34 implicit none
35
36 c == global variables ==
37
38 #include "cal.h"
39
40 c == routine arguments ==
41
42 integer mythid
43
44 c == end of interface ==
45
46 cal_IntYears = ( modelenddate(1) /10000 -
47 & modelstartdate(1)/10000 ) + 1
48
49 if ( ( modelenddate(2) .eq. 0) .and.
50 & ( mod(modelenddate(1),100) .eq. 1 ) .and.
51 & mod(modelenddate(1)/100,100) .eq. 1 ) then
52 cal_IntYears = cal_IntYears -1
53 endif
54
55 return
56 end

  ViewVC Help
Powered by ViewVC 1.1.22