1 |
heimbach |
1.1 |
#include "EXF_CPPOPTIONS.h" |
2 |
|
|
|
3 |
|
|
subroutine exf_getobcs ( mycurrenttime |
4 |
|
|
I , mycurrentiter |
5 |
|
|
I , mythid |
6 |
|
|
& ) |
7 |
|
|
|
8 |
|
|
c ================================================================== |
9 |
|
|
c SUBROUTINE exf_getobcs |
10 |
|
|
c ================================================================== |
11 |
|
|
c |
12 |
|
|
c o set open boundary conditions |
13 |
|
|
c |
14 |
|
|
c started: heimbach@mit.edu 01-May-2001 |
15 |
|
|
|
16 |
|
|
c ================================================================== |
17 |
|
|
c SUBROUTINE exf_getobcs |
18 |
|
|
c ================================================================== |
19 |
|
|
|
20 |
|
|
implicit none |
21 |
|
|
|
22 |
|
|
c == global variables == |
23 |
|
|
|
24 |
|
|
#include "EEPARAMS.h" |
25 |
|
|
#include "SIZE.h" |
26 |
|
|
#include "GRID.h" |
27 |
heimbach |
1.2 |
#ifdef ALLOW_OBCS |
28 |
heimbach |
1.1 |
#include "OBCS.h" |
29 |
heimbach |
1.2 |
#endif |
30 |
heimbach |
1.1 |
|
31 |
|
|
#include "exf_param.h" |
32 |
|
|
|
33 |
|
|
c == routine arguments == |
34 |
|
|
|
35 |
|
|
_RL mycurrenttime |
36 |
|
|
integer mycurrentiter |
37 |
|
|
integer mythid |
38 |
|
|
|
39 |
|
|
#ifdef ALLOW_OBCS |
40 |
|
|
|
41 |
|
|
c == local variables == |
42 |
|
|
|
43 |
|
|
logical first, changed |
44 |
|
|
integer count0, count1 |
45 |
|
|
_RL fac |
46 |
|
|
|
47 |
|
|
c == end of interface == |
48 |
|
|
|
49 |
|
|
c get record numbers and interpolation factor for hflux |
50 |
|
|
call exf_getffieldrec( |
51 |
|
|
I obcsstartdate, obcsperiod |
52 |
|
|
O , fac, first, changed, count0, count1 |
53 |
|
|
I , mycurrenttime, mycurrentiter, mythid |
54 |
|
|
& ) |
55 |
|
|
|
56 |
|
|
call exf_set_obcs_xz( OBNufile, OBNu, 'u' |
57 |
|
|
I , fac, first, changed, count0, count1 |
58 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
59 |
|
|
call exf_set_obcs_xz( OBNvfile, OBNv, 'v' |
60 |
|
|
I , fac, first, changed, count0, count1 |
61 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
62 |
|
|
call exf_set_obcs_xz( OBNtfile, OBNt, 's' |
63 |
|
|
I , fac, first, changed, count0, count1 |
64 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
65 |
|
|
call exf_set_obcs_xz( OBNsfile, OBNs, 's' |
66 |
|
|
I , fac, first, changed, count0, count1 |
67 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
68 |
|
|
call exf_set_obcs_xz( OBSufile, OBSu, 'u' |
69 |
|
|
I , fac, first, changed, count0, count1 |
70 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
71 |
|
|
call exf_set_obcs_xz( OBSvfile, OBSv, 'v' |
72 |
|
|
I , fac, first, changed, count0, count1 |
73 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
74 |
|
|
call exf_set_obcs_xz( OBStfile, OBSt, 's' |
75 |
|
|
I , fac, first, changed, count0, count1 |
76 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
77 |
|
|
call exf_set_obcs_xz( OBSsfile, OBSs, 's' |
78 |
|
|
I , fac, first, changed, count0, count1 |
79 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
80 |
|
|
|
81 |
|
|
call exf_set_obcs_yz( OBEufile, OBEu, 'u' |
82 |
|
|
I , fac, first, changed, count0, count1 |
83 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
84 |
|
|
call exf_set_obcs_yz( OBEvfile, OBEv, 'v' |
85 |
|
|
I , fac, first, changed, count0, count1 |
86 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
87 |
|
|
call exf_set_obcs_yz( OBEtfile, OBEt, 's' |
88 |
|
|
I , fac, first, changed, count0, count1 |
89 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
90 |
|
|
call exf_set_obcs_yz( OBEsfile, OBEs, 's' |
91 |
|
|
I , fac, first, changed, count0, count1 |
92 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
93 |
|
|
call exf_set_obcs_yz( OBWufile, OBWu, 'u' |
94 |
|
|
I , fac, first, changed, count0, count1 |
95 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
96 |
|
|
call exf_set_obcs_yz( OBWvfile, OBWv, 'v' |
97 |
|
|
I , fac, first, changed, count0, count1 |
98 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
99 |
|
|
call exf_set_obcs_yz( OBWtfile, OBWt, 's' |
100 |
|
|
I , fac, first, changed, count0, count1 |
101 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
102 |
|
|
call exf_set_obcs_yz( OBWsfile, OBWs, 's' |
103 |
|
|
I , fac, first, changed, count0, count1 |
104 |
|
|
I , mycurrenttime, mycurrentiter, mythid ) |
105 |
|
|
|
106 |
|
|
#endif |
107 |
|
|
|
108 |
|
|
end |
109 |
|
|
|