1 |
|
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "COST_CPPOPTIONS.h" |
#include "COST_CPPOPTIONS.h" |
5 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |
118 |
sumvol = 0. _d 0 |
sumvol = 0. _d 0 |
119 |
wobcsvol = .01 |
wobcsvol = .01 |
120 |
cgg Acceptable volume flux is 10^-3. Corresponds to 5 mm change over a year. |
cgg Acceptable volume flux is 10^-3. Corresponds to 5 mm change over a year. |
121 |
cgg Added a factor of 1000 because its very important to me. |
cgg Added a factor of 1000 because its very important to me. |
122 |
wobcsvol = 1./(wobcsvol * wobcsvol) |
wobcsvol = 1./(wobcsvol * wobcsvol) |
123 |
|
|
124 |
#ifdef ECCO_VERBOSE |
#ifdef ECCO_VERBOSE |
142 |
if (optimcycle .ge. 0) then |
if (optimcycle .ge. 0) then |
143 |
#ifdef ALLOW_OBCSN_CONTROL |
#ifdef ALLOW_OBCSN_CONTROL |
144 |
ilfld=ilnblnk( xx_obcsn_file ) |
ilfld=ilnblnk( xx_obcsn_file ) |
145 |
write(fnamefldn(1:80),'(2a,i10.10)') |
write(fnamefldn(1:80),'(2a,i10.10)') |
146 |
& xx_obcsn_file(1:ilfld),'.', optimcycle |
& xx_obcsn_file(1:ilfld),'.', optimcycle |
147 |
#endif |
#endif |
148 |
#ifdef ALLOW_OBCSS_CONTROL |
#ifdef ALLOW_OBCSS_CONTROL |
149 |
ilfld=ilnblnk( xx_obcss_file ) |
ilfld=ilnblnk( xx_obcss_file ) |
150 |
write(fnameflds(1:80),'(2a,i10.10)') |
write(fnameflds(1:80),'(2a,i10.10)') |
151 |
& xx_obcss_file(1:ilfld),'.',optimcycle |
& xx_obcss_file(1:ilfld),'.',optimcycle |
152 |
#endif |
#endif |
153 |
#ifdef ALLOW_OBCSW_CONTROL |
#ifdef ALLOW_OBCSW_CONTROL |
154 |
ilfld=ilnblnk( xx_obcsw_file ) |
ilfld=ilnblnk( xx_obcsw_file ) |
155 |
write(fnamefldw(1:80),'(2a,i10.10)') |
write(fnamefldw(1:80),'(2a,i10.10)') |
156 |
& xx_obcsw_file(1:ilfld),'.',optimcycle |
& xx_obcsw_file(1:ilfld),'.',optimcycle |
157 |
#endif |
#endif |
158 |
#ifdef ALLOW_OBCSE_CONTROL |
#ifdef ALLOW_OBCSE_CONTROL |
159 |
ilfld=ilnblnk( xx_obcse_file ) |
ilfld=ilnblnk( xx_obcse_file ) |
160 |
write(fnameflde(1:80),'(2a,i10.10)') |
write(fnameflde(1:80),'(2a,i10.10)') |
161 |
& xx_obcse_file(1:ilfld),'.',optimcycle |
& xx_obcse_file(1:ilfld),'.',optimcycle |
162 |
#endif |
#endif |
163 |
else |
else |
187 |
& , xx_obcsn_dummy ) |
& , xx_obcsn_dummy ) |
188 |
|
|
189 |
cgg At this point, do not be concerned with the overlap halos. |
cgg At this point, do not be concerned with the overlap halos. |
190 |
cgg From experience, there is no control contribution in the |
cgg From experience, there is no control contribution in the |
191 |
cgg velocity points outside the boundaries. This has something |
cgg velocity points outside the boundaries. This has something |
192 |
cgg to do with the computational stencil, and the fact that we |
cgg to do with the computational stencil, and the fact that we |
193 |
cgg are diagonally offset. Could check later by employing both |
cgg are diagonally offset. Could check later by employing both |
230 |
& , xx_obcss_dummy ) |
& , xx_obcss_dummy ) |
231 |
|
|
232 |
cgg At this point, do not be concerned with the overlap halos. |
cgg At this point, do not be concerned with the overlap halos. |
233 |
cgg From experience, there is no control contribution in the |
cgg From experience, there is no control contribution in the |
234 |
cgg velocity points outside the boundaries. This has something |
cgg velocity points outside the boundaries. This has something |
235 |
cgg to do with the computational stencil, and the fact that we |
cgg to do with the computational stencil, and the fact that we |
236 |
cgg are diagonally offset. Could check later by employing both |
cgg are diagonally offset. Could check later by employing both |
273 |
& , xx_obcsw_dummy ) |
& , xx_obcsw_dummy ) |
274 |
|
|
275 |
cgg At this point, do not be concerned with the overlap halos. |
cgg At this point, do not be concerned with the overlap halos. |
276 |
cgg From experience, there is no control contribution in the |
cgg From experience, there is no control contribution in the |
277 |
cgg velocity points outside the boundaries. This has something |
cgg velocity points outside the boundaries. This has something |
278 |
cgg to do with the computational stencil, and the fact that we |
cgg to do with the computational stencil, and the fact that we |
279 |
cgg are diagonally offset. Could check later by employing both |
cgg are diagonally offset. Could check later by employing both |
316 |
& , xx_obcse_dummy ) |
& , xx_obcse_dummy ) |
317 |
|
|
318 |
cgg At this point, do not be concerned with the overlap halos. |
cgg At this point, do not be concerned with the overlap halos. |
319 |
cgg From experience, there is no control contribution in the |
cgg From experience, there is no control contribution in the |
320 |
cgg velocity points outside the boundaries. This has something |
cgg velocity points outside the boundaries. This has something |
321 |
cgg to do with the computational stencil, and the fact that we |
cgg to do with the computational stencil, and the fact that we |
322 |
cgg are diagonally offset. Could check later by employing both |
cgg are diagonally offset. Could check later by employing both |
353 |
|
|
354 |
c-- Do the global summation. |
c-- Do the global summation. |
355 |
_GLOBAL_SUM_R8( sumvol, mythid ) |
_GLOBAL_SUM_R8( sumvol, mythid ) |
356 |
objf_obcsvol = wobcsvol * sumvol* sumvol |
objf_obcsvol = wobcsvol * sumvol* sumvol |
357 |
|
|
358 |
#endif |
#endif |
359 |
#endif |
#endif |