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: $ |
2 | C $Name: $ |
3 | |
4 | #include "CAL_OPTIONS.h" |
5 | |
6 | subroutine cal_TimeInterval( |
7 | I timeint, |
8 | I timeunit, |
9 | O date, |
10 | I mythid |
11 | & ) |
12 | |
13 | c ================================================================== |
14 | c SUBROUTINE cal_TimeInterval |
15 | c ================================================================== |
16 | c |
17 | c o Create an array in date format given a time interval measured in |
18 | c units of timeunit. |
19 | c |
20 | c Available time units: 'secs' |
21 | c 'model' |
22 | c |
23 | c Fractions of seconds are not resolved in this version. |
24 | c |
25 | c started: Christian Eckert eckert@mit.edu 30-Jun-1999 |
26 | c |
27 | c changed: Christian Eckert eckert@mit.edu 29-Dec-1999 |
28 | c |
29 | c - restructured the original version in order to have a |
30 | c better interface to the MITgcmUV. |
31 | c |
32 | c Christian Eckert eckert@mit.edu 03-Feb-2000 |
33 | c |
34 | c - Introduced new routine and function names, cal_<NAME>, |
35 | c for verion 0.1.3. |
36 | c |
37 | c ================================================================== |
38 | c SUBROUTINE cal_TimeInterval |
39 | c ================================================================== |
40 | |
41 | implicit none |
42 | |
43 | c == global variables == |
44 | |
45 | #include "cal.h" |
46 | |
47 | c == routine arguments == |
48 | |
49 | integer date(4) |
50 | _RL timeint |
51 | character*(*) timeunit |
52 | integer mythid |
53 | |
54 | c == local variables == |
55 | |
56 | integer fac |
57 | integer nsecs |
58 | integer hhmmss |
59 | integer ierr |
60 | |
61 | c == end of interface == |
62 | |
63 | fac = 1 |
64 | if (timeint .lt. 0) fac = -1 |
65 | |
66 | date(4) = -1 |
67 | date(3) = 0 |
68 | if (timeunit .eq. 'secs') then |
69 | |
70 | date(1) = int(timeint/float(secondsperday)) |
71 | nsecs = int(timeint - float(date(1)) * float(secondsperday)) |
72 | |
73 | else if (timeunit .eq. 'model') then |
74 | |
75 | date(1) = int(timeint*modelstep/float(secondsperday)) |
76 | nsecs = int(timeint*modelstep - |
77 | & float(date(1)) * float(secondsperday)) |
78 | |
79 | else |
80 | |
81 | ierr = 701 |
82 | call cal_PrintError( ierr, mythid ) |
83 | stop ' stopped in cal_TimeInterval.' |
84 | |
85 | endif |
86 | |
87 | hhmmss = nsecs/secondsperminute |
88 | date(2) = hhmmss/minutesperhour*10000 + |
89 | & (mod(fac*hhmmss,minutesperhour)*100 + |
90 | & mod(fac*nsecs,secondsperminute))*fac |
91 | |
92 | return |
93 | end |
ViewVC Help | |
Powered by ViewVC 1.1.22 |