1 |
|
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "CTRL_CPPOPTIONS.h" |
#include "CTRL_CPPOPTIONS.h" |
5 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |
16 |
c SUBROUTINE ctrl_obcsbal |
c SUBROUTINE ctrl_obcsbal |
17 |
c ================================================================== |
c ================================================================== |
18 |
c |
c |
19 |
c o volumetrically balance the control vector contribution. |
c o volumetrically balance the control vector contribution. |
20 |
c o Assume the calendar is identical |
c o Assume the calendar is identical |
21 |
c for all open boundaries. Need to save the barotropic adjustment |
c for all open boundaries. Need to save the barotropic adjustment |
22 |
c velocity so it can be used in all ctrl_getobcs files. |
c velocity so it can be used in all ctrl_getobcs files. |
23 |
c o WARNING: eastern boundary (not defined) filenames have been a |
c o WARNING: eastern boundary (not defined) filenames have been a |
24 |
c problem in the past. |
c problem in the past. |
25 |
c |
c |
26 |
c - started G. Gebbie, MIT-WHOI, 15-June-2002 |
c - started G. Gebbie, MIT-WHOI, 15-June-2002 |
161 |
|
|
162 |
shiftvel(2) = volflux / area |
shiftvel(2) = volflux / area |
163 |
print*,'volflux,area',volflux,area |
print*,'volflux,area',volflux,area |
164 |
endif |
endif |
165 |
cgg End of the obcsnfirst loop. |
cgg End of the obcsnfirst loop. |
166 |
|
|
167 |
if ( ( obcsnfirst) .or. (obcsnchanged)) then |
if ( ( obcsnfirst) .or. (obcsnchanged)) then |
168 |
|
|
169 |
cgg Swap the value. |
cgg Swap the value. |
170 |
shiftvel(1) = shiftvel(2) |
shiftvel(1) = shiftvel(2) |
171 |
|
|
172 |
volflux = 0. d0 |
volflux = 0. d0 |
173 |
area= 0. d0 |
area= 0. d0 |
174 |
|
|
181 |
shiftvel(2) = volflux /area |
shiftvel(2) = volflux /area |
182 |
print*,'volflux,area',volflux,area |
print*,'volflux,area',volflux,area |
183 |
|
|
184 |
endif |
endif |
185 |
cgg End of the obcsnfirst, obcsnchanged loop. |
cgg End of the obcsnfirst, obcsnchanged loop. |
186 |
|
|
187 |
#endif |
#endif |
188 |
|
|