/[MITgcm]/MITgcm/pkg/exf/exf_getobcs.F
ViewVC logotype

Contents of /MITgcm/pkg/exf/exf_getobcs.F

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


Revision 1.8 - (show annotations) (download)
Wed Sep 22 20:43:04 2004 UTC (19 years, 8 months ago) by heimbach
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +0 -0 lines
FILE REMOVED
move pkg/exf/exf_getobcs.F to pkg/obcs/obcs_prescribe_read.F

1 #include "EXF_OPTIONS.h"
2 #ifdef ALLOW_OBCS
3 # include "OBCS_OPTIONS.h"
4 #endif
5
6 subroutine exf_getobcs (
7 I mycurrenttime
8 I , mycurrentiter
9 I , mythid
10 & )
11
12 c ==================================================================
13 c SUBROUTINE exf_getobcs
14 c ==================================================================
15 c
16 c o set open boundary conditions
17 c
18 c started: heimbach@mit.edu 01-May-2001
19 c gebbie@mit.edu 18-Mar-2003 open boundary control added
20
21 c ==================================================================
22 c SUBROUTINE exf_getobcs
23 c ==================================================================
24
25 implicit none
26
27 c == global variables ==
28
29 #include "EEPARAMS.h"
30 #include "SIZE.h"
31 #include "GRID.h"
32 #ifdef ALLOW_OBCS
33 #include "OBCS.h"
34 #endif
35 #include "exf_param.h"
36
37 c == routine arguments ==
38
39 _RL mycurrenttime
40 integer mycurrentiter
41 integer mythid
42
43 #if (defined (ALLOW_OBCS) && defined (ALLOW_OBCS_PRESCRIBE))
44
45 c == local variables ==
46
47 logical first, changed
48 integer count0, count1
49 _RL fac
50
51 c == end of interface ==
52
53 #ifdef ALLOW_OBCS_NORTH
54 call exf_getffieldrec(
55 I obcsNstartdate, obcsNperiod
56 O , fac, first, changed, count0, count1
57 I , mycurrenttime, mycurrentiter, mythid
58 & )
59
60 call exf_set_obcs_xz( OBNu, OBNu0, OBNu1, OBNufile, 'u'
61 I , fac, first, changed, count0, count1
62 I , mycurrenttime, mycurrentiter, mythid )
63 call exf_set_obcs_xz( OBNv, OBNv0, OBNv1, OBNvfile, 'v'
64 I , fac, first, changed, count0, count1
65 I , mycurrenttime, mycurrentiter, mythid )
66 call exf_set_obcs_xz( OBNt, OBNt0, OBNt1, OBNtfile, 's'
67 I , fac, first, changed, count0, count1
68 I , mycurrenttime, mycurrentiter, mythid )
69 call exf_set_obcs_xz( OBNs, OBNs0, OBNs1, OBNsfile, 's'
70 I , fac, first, changed, count0, count1
71 I , mycurrenttime, mycurrentiter, mythid )
72 #endif
73
74 #ifdef ALLOW_OBCS_SOUTH
75 call exf_getffieldrec(
76 I obcsSstartdate, obcsSperiod
77 O , fac, first, changed, count0, count1
78 I , mycurrenttime, mycurrentiter, mythid
79 & )
80
81 call exf_set_obcs_xz( OBSu, OBSu0, OBSu1, OBSufile, 'u'
82 I , fac, first, changed, count0, count1
83 I , mycurrenttime, mycurrentiter, mythid )
84 call exf_set_obcs_xz( OBSv, OBSv0, OBSv1, OBSvfile, 'v'
85 I , fac, first, changed, count0, count1
86 I , mycurrenttime, mycurrentiter, mythid )
87 call exf_set_obcs_xz( OBSt, OBSt0, OBSt1, OBStfile, 's'
88 I , fac, first, changed, count0, count1
89 I , mycurrenttime, mycurrentiter, mythid )
90 call exf_set_obcs_xz( OBSs, OBSs0, OBSs1, OBSsfile, 's'
91 I , fac, first, changed, count0, count1
92 I , mycurrenttime, mycurrentiter, mythid )
93
94 #endif
95
96 #ifdef ALLOW_OBCS_EAST
97 call exf_getffieldrec(
98 I obcsEstartdate, obcsEperiod
99 O , fac, first, changed, count0, count1
100 I , mycurrenttime, mycurrentiter, mythid
101 & )
102
103 call exf_set_obcs_yz( OBEu, OBEu0, OBEu1, OBEufile, 'u'
104 I , fac, first, changed, count0, count1
105 I , mycurrenttime, mycurrentiter, mythid )
106 call exf_set_obcs_yz( OBEv, OBEv0, OBEv1, OBEvfile, 'v'
107 I , fac, first, changed, count0, count1
108 I , mycurrenttime, mycurrentiter, mythid )
109 call exf_set_obcs_yz( OBEt, OBEt0, OBEt1, OBEtfile, 's'
110 I , fac, first, changed, count0, count1
111 I , mycurrenttime, mycurrentiter, mythid )
112 call exf_set_obcs_yz( OBEs, OBEs0, OBEs1, OBEsfile, 's'
113 I , fac, first, changed, count0, count1
114 I , mycurrenttime, mycurrentiter, mythid )
115
116 #endif
117
118 #ifdef ALLOW_OBCS_WEST
119 call exf_getffieldrec(
120 I obcsWstartdate, obcsWperiod
121 O , fac, first, changed, count0, count1
122 I , mycurrenttime, mycurrentiter, mythid
123 & )
124
125 call exf_set_obcs_yz( OBWu, OBWu0, OBWu1, OBWufile, 'u'
126 I , fac, first, changed, count0, count1
127 I , mycurrenttime, mycurrentiter, mythid )
128 call exf_set_obcs_yz( OBWv, OBWv0, OBWv1, OBWvfile, 'v'
129 I , fac, first, changed, count0, count1
130 I , mycurrenttime, mycurrentiter, mythid )
131 call exf_set_obcs_yz( OBWt, OBWt0, OBWt1, OBWtfile, 's'
132 I , fac, first, changed, count0, count1
133 I , mycurrenttime, mycurrentiter, mythid )
134 call exf_set_obcs_yz( OBWs, OBWs0, OBWs1, OBWsfile, 's'
135 I , fac, first, changed, count0, count1
136 I , mycurrenttime, mycurrentiter, mythid )
137
138 #endif
139
140 #ifdef ALLOW_OBCS_CONTROL
141 cgg WARNING: Assuming North Open Boundary exists and has same
142 cgg calendar information as other boundaries.
143 call ctrl_obcsbal ( mycurrenttime,mycurrentiter,mythid )
144 #endif
145
146 #ifdef ALLOW_OBCSN_CONTROL
147 call ctrl_getobcsn ( mycurrenttime, mycurrentiter, mythid )
148 #endif
149
150 #ifdef ALLOW_OBCSS_CONTROL
151 call ctrl_getobcss ( mycurrenttime, mycurrentiter, mythid )
152 #endif
153
154 #ifdef ALLOW_OBCSW_CONTROL
155 call ctrl_getobcsw ( mycurrenttime, mycurrentiter, mythid )
156 #endif
157
158 #ifdef ALLOW_OBCSE_CONTROL
159 call ctrl_getobcse ( mycurrenttime, mycurrentiter, mythid )
160 #endif
161
162
163 #endif /* ALLOW_OBCS */
164
165 end
166

  ViewVC Help
Powered by ViewVC 1.1.22