1 |
dimitri |
1.3 |
c $Header: /u/gcmpack/MITgcm/pkg/exf/exf_check.F,v 1.2 2006/01/02 21:17:02 heimbach Exp $ |
2 |
heimbach |
1.1 |
|
3 |
|
|
#include "EXF_OPTIONS.h" |
4 |
|
|
|
5 |
|
|
subroutine exf_check( mythid ) |
6 |
|
|
|
7 |
|
|
c ================================================================== |
8 |
|
|
c SUBROUTINE exf_check |
9 |
|
|
c ================================================================== |
10 |
|
|
c |
11 |
|
|
implicit none |
12 |
|
|
|
13 |
|
|
c == global variables == |
14 |
|
|
|
15 |
|
|
#include "EEPARAMS.h" |
16 |
|
|
#include "SIZE.h" |
17 |
|
|
#include "PARAMS.h" |
18 |
|
|
#include "FFIELDS.h" |
19 |
|
|
#include "GRID.h" |
20 |
|
|
|
21 |
|
|
#include "exf_param.h" |
22 |
|
|
#include "exf_constants.h" |
23 |
|
|
#include "exf_fields.h" |
24 |
|
|
#include "exf_clim_fields.h" |
25 |
|
|
c == routine arguments == |
26 |
|
|
|
27 |
|
|
c mythid - thread number for this instance of the routine. |
28 |
|
|
|
29 |
|
|
integer mythid |
30 |
|
|
|
31 |
|
|
c == local variables == |
32 |
|
|
|
33 |
|
|
integer bi,bj |
34 |
|
|
integer i,j |
35 |
|
|
integer jtlo |
36 |
|
|
integer jthi |
37 |
|
|
integer itlo |
38 |
|
|
integer ithi |
39 |
|
|
integer jmin |
40 |
|
|
integer jmax |
41 |
|
|
integer imin |
42 |
|
|
integer imax |
43 |
|
|
|
44 |
|
|
c == end of interface == |
45 |
|
|
|
46 |
|
|
jtlo = mybylo(mythid) |
47 |
|
|
jthi = mybyhi(mythid) |
48 |
|
|
itlo = mybxlo(mythid) |
49 |
|
|
ithi = mybxhi(mythid) |
50 |
|
|
jmin = 1-oly |
51 |
|
|
jmax = sny+oly |
52 |
|
|
imin = 1-olx |
53 |
|
|
imax = snx+olx |
54 |
|
|
|
55 |
|
|
c check for consistency |
56 |
|
|
if (.NOT. |
57 |
|
|
& (exf_iprec .EQ. 32 .OR. exf_iprec .EQ. 64) |
58 |
|
|
& ) then |
59 |
|
|
stop 'stop in exf_readparms: value of exf_iprec not allowed' |
60 |
|
|
else if (.NOT. |
61 |
|
|
& (exf_yftype .EQ. 'RS' .OR. |
62 |
|
|
& exf_yftype .EQ. 'RL') |
63 |
|
|
& ) then |
64 |
|
|
stop 'stop in exf_readparms: value of exf_yftype not allowed' |
65 |
|
|
end if |
66 |
|
|
|
67 |
|
|
if ( useCubedSphereExchange ) then |
68 |
|
|
cph if ( uvecfile .NE. ' ' .and. vvecfile .NE. ' ' ) then |
69 |
|
|
c some restrictions that can be relaxed later on |
70 |
|
|
cph if ( uvecstartdate .ne. vvecstartdate .or. |
71 |
|
|
cph & uvecperiod .ne. vvecperiod ) then |
72 |
|
|
cph print*,'For useCubedSphereExchange, S/R exf_set_uv.F' |
73 |
|
|
cph print*,'assumes that the u and v wind or wind stress' |
74 |
|
|
cph print*,'files have the same startdate and period.' |
75 |
|
|
cph stop |
76 |
|
|
cph endif |
77 |
|
|
cph endif |
78 |
|
|
endif |
79 |
|
|
|
80 |
dimitri |
1.3 |
#ifdef USE_EXF_INTERPOLATION |
81 |
|
|
if ( usingCartesianGrid ) then |
82 |
|
|
print*,'USE_EXF_INTERPOLATION assumes latitude/longitude' |
83 |
|
|
print*,'input and output coordinates. Trivial to extend to' |
84 |
|
|
print*,'cartesian coordinates, but has not yet been done.' |
85 |
|
|
stop |
86 |
|
|
endif |
87 |
|
|
#endif |
88 |
|
|
|
89 |
heimbach |
1.2 |
#ifdef ALLOW_CLIMTEMP_RELAXATION |
90 |
|
|
STOP 'ALLOW_CLIMTEMP_RELAXATION no longer supported. Use pkg/rbcs' |
91 |
|
|
#endif |
92 |
heimbach |
1.1 |
|
93 |
|
|
|
94 |
heimbach |
1.2 |
#ifdef ALLOW_CLIMSALT_RELAXATION |
95 |
|
|
STOP 'ALLOW_CLIMSALT_RELAXATION no longer supported. Use pkg/rbcs' |
96 |
|
|
#endif |
97 |
|
|
|
98 |
heimbach |
1.1 |
end |