Parent Directory | Revision Log | Revision Graph
o first check-in for the "branch-genmake2" merge o verification suite as run on shelley (gcc 3.2.2): Wed Oct 8 23:42:29 EDT 2003 T S U V G D M c m s m s m s m s E p a R g m m e . m m e . m m e . m m e . N n k u 2 i a a d i a a d i a a d i a a d 2 d e n d n x n . n x n . n x n . n x n . OPTFILE=NONE Y Y Y Y 13 16 16 16 0 16 16 16 16 16 16 16 16 13 12 0 0 pass adjustment.128x64x1 Y Y Y Y 16 16 16 16 0 16 16 16 16 16 16 0 0 16 16 0 0 pass adjustment.cs-32x32x1 Y Y Y Y 16 16 16 16 0 16 16 16 16 16 16 22 0 16 16 22 0 pass adjust_nlfs.cs-32x32x1 Y Y Y Y -- 13 13 16 16 13 13 13 13 16 16 16 16 16 16 16 16 N/O advect_cs Y Y Y Y -- 22 16 16 16 16 16 16 13 16 16 16 16 16 16 16 16 N/O advect_xy Y Y Y Y -- 13 16 13 16 16 16 16 16 16 16 22 16 16 16 16 16 N/O advect_xz Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass aim.5l_cs Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 16 16 16 16 13 16 pass aim.5l_Equatorial_Channel Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 13 16 16 13 13 16 pass aim.5l_LatLon Y Y Y Y 13 16 16 16 16 16 16 16 16 16 13 12 13 13 16 13 16 pass exp0 Y Y Y Y 14 16 16 16 16 16 16 16 22 16 16 16 13 16 16 22 16 pass exp1 Y Y Y Y 13 13 16 13 16 16 16 16 16 13 13 16 16 13 13 13 13 pass exp2 Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass exp4 Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 22 16 16 16 22 16 pass exp5 Y Y Y Y 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 16 pass front_relax Y Y Y Y 14 16 16 13 13 16 16 13 13 16 13 13 16 12 13 13 16 pass global_ocean.90x40x15 Y Y Y Y 10 16 16 13 13 16 13 16 16 13 13 13 13 16 16 13 16 FAIL global_ocean.cs32x15 Y Y Y Y 6 11 12 13 13 12 13 16 13 9 9 9 9 10 9 9 11 FAIL global_ocean_pressure Y Y Y Y 14 16 16 13 16 16 16 13 13 13 13 13 16 12 16 13 16 pass global_with_exf Y Y Y Y 14 16 16 16 16 16 16 16 16 11 13 22 13 16 16 9 16 pass hs94.128x64x5 Y Y Y Y 13 16 16 16 16 16 16 16 16 11 16 16 16 13 16 22 13 pass hs94.1x64x5 Y Y Y Y 14 16 16 16 16 16 16 16 16 13 16 13 13 16 16 22 13 pass hs94.cs-32x32x5 Y Y Y Y 10 10 16 13 13 16 16 16 22 16 13 13 13 13 13 22 13 FAIL ideal_2D_oce Y Y Y Y 8 16 16 16 16 16 16 16 16 13 13 8 16 16 16 16 16 FAIL internal_wave Y Y Y Y 14 16 16 16 16 16 16 16 16 13 13 22 13 13 13 22 16 pass inverted_barometer Y Y Y Y 12 16 16 16 16 16 16 16 16 16 13 12 13 13 13 13 13 FAIL lab_sea Y Y Y Y 11 16 16 16 16 16 16 16 13 13 13 12 13 16 13 12 13 FAIL natl_box Y Y Y Y 16 16 16 16 16 16 16 16 22 16 16 16 16 16 16 16 16 pass plume_on_slope Y Y Y Y 13 16 16 16 16 13 16 16 16 16 16 16 16 13 16 16 16 pass solid-body.cs-32x32x1
1 | C $Header: /u/u3/gcmpack/MITgcm/pkg/cal/cal_toseconds.F,v 1.4.2.2 2003/10/07 20:46:37 adcroft Exp $ |
2 | C $Name: $ |
3 | |
4 | #include "CAL_OPTIONS.h" |
5 | |
6 | subroutine cal_ToSeconds( |
7 | I date, |
8 | O timeint, |
9 | I mythid |
10 | & ) |
11 | |
12 | c ================================================================== |
13 | c SUBROUTINE cal_ToSeconds |
14 | c ================================================================== |
15 | c |
16 | c o Given a time interval as a date array return the number of |
17 | c seconds in that time interval. |
18 | c |
19 | c If one wanted to use calendar dates in this routine, then |
20 | c the date should be after the calendar's refdate and timeint |
21 | c would be the number of seconds that have elapsed since the |
22 | c refdate. Of course this can also be done by first calling |
23 | c sub cal_TimePassed and then calling this routine with the |
24 | c resulting time interval array. |
25 | c |
26 | c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
27 | c |
28 | c changed: Christian Eckert eckert@mit.edu 29-Dec-1999 |
29 | c |
30 | c - restructured the original version in order to have a |
31 | c better interface to the MITgcmUV. |
32 | c |
33 | c Christian Eckert eckert@mit.edu 03-Feb-2000 |
34 | c |
35 | c - Introduced new routine and function names, cal_<NAME>, |
36 | c for verion 0.1.3. |
37 | c |
38 | c 21-Sep-2003: fixed check_sign logic to work with |
39 | c negative intervals (menemenlis@jpl.nasa.gov) |
40 | c |
41 | c ================================================================== |
42 | c SUBROUTINE cal_ToSeconds |
43 | c ================================================================== |
44 | |
45 | implicit none |
46 | |
47 | c == global variables == |
48 | |
49 | #include "cal.h" |
50 | |
51 | c == routine arguments == |
52 | |
53 | integer date(4) |
54 | _RL timeint |
55 | integer mythid |
56 | |
57 | c == local variables == |
58 | |
59 | integer fac |
60 | integer ndays |
61 | integer nsecs |
62 | integer hhmmss |
63 | integer ierr |
64 | integer check_sign |
65 | |
66 | c == end of interface == |
67 | c print *,'cal_toseconds: date',date |
68 | c print *,'cal_toseconds: timeint',timeint |
69 | |
70 | check_sign = 1 |
71 | if ( ( (date(1).lt.0) .and. date(2).gt.0 ) .or. |
72 | & ( (date(1).gt.0) .and. date(2).lt.0 ) ) |
73 | & check_sign = -1 |
74 | |
75 | if (((date(4) .eq. -1) .and. |
76 | & (date(3) .eq. 0) .and. |
77 | & (check_sign .ge. 0)) .or. |
78 | & usingModelCalendar) then |
79 | if ((date(1) .lt. 0) .or. |
80 | & (date(2) .lt. 0)) then |
81 | ndays = -date(1) |
82 | hhmmss = -date(2) |
83 | fac = -1 |
84 | else |
85 | ndays = date(1) |
86 | hhmmss = date(2) |
87 | fac = 1 |
88 | endif |
89 | nsecs = ndays*secondsperday + |
90 | & (hhmmss/10000)*secondsperhour + |
91 | & mod(hhmmss/100,100)*secondsperminute + |
92 | & mod(hhmmss,100) |
93 | timeint = fac*nsecs |
94 | else |
95 | |
96 | ierr = 1001 |
97 | call cal_PrintError( ierr, mythid ) |
98 | stop ' stopped in cal_ToSeconds.' |
99 | |
100 | endif |
101 | |
102 | return |
103 | end |
ViewVC Help | |
Powered by ViewVC 1.1.22 |