2 |
C $Name$ |
C $Name$ |
3 |
|
|
4 |
#include "COST_CPPOPTIONS.h" |
#include "COST_CPPOPTIONS.h" |
|
#ifdef ALLOW_OBCS |
|
|
# include "OBCS_OPTIONS.h" |
|
|
#endif |
|
5 |
|
|
6 |
subroutine cost_obcs_ageos( myiter, mytime, mythid ) |
subroutine cost_obcs_ageos( myiter, mytime, mythid ) |
7 |
|
|
30 |
#include "DYNVARS.h" |
#include "DYNVARS.h" |
31 |
#include "PARAMS.h" |
#include "PARAMS.h" |
32 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |
33 |
# include "OBCS.h" |
# include "OBCS_GRID.h" |
34 |
#endif |
#endif |
35 |
|
|
36 |
#include "cal.h" |
#include "cal.h" |
233 |
do k = 1,nr |
do k = 1,nr |
234 |
|
|
235 |
C-- jmc: both calls below are wrong if more than 1 tile => stop here |
C-- jmc: both calls below are wrong if more than 1 tile => stop here |
236 |
IF ( bi.NE.1 .OR. bj.NE.1 ) |
IF ( bi.NE.1 .OR. bj.NE.1 ) |
237 |
& STOP 'COST_OBCS_AGEOS wrong with more than 1 tile/proc' |
& STOP 'COST_OBCS_AGEOS wrong with more than 1 tile/proc' |
238 |
call find_rho_2d( |
call find_rho_2d( |
239 |
I iMin, iMax, jMin, jMax, k, |
I iMin, iMax, jMin, jMax, k, |
240 |
I tbar(1-OLx,1-OLy,k,bi,bj), |
I tbar(1-OLx,1-OLy,k,bi,bj), |
241 |
I sbar(1-OLx,1-OLy,k,bi,bj), |
I sbar(1-OLx,1-OLy,k,bi,bj), |
242 |
O rholoc, |
O rholoc, |
243 |
I k, bi, bj, myThid ) |
I k, bi, bj, myThid ) |
299 |
|
|
300 |
do k = 1,nr |
do k = 1,nr |
301 |
|
|
302 |
|
C-- jmc: both calls below are wrong if more than 1 tile => stop here |
303 |
|
IF ( bi.NE.1 .OR. bj.NE.1 ) |
304 |
|
& STOP 'COST_OBCS_AGEOS wrong with more than 1 tile/proc' |
305 |
call find_rho_2d( |
call find_rho_2d( |
306 |
I iMin, iMax, jMin, jMax, k, |
I iMin, iMax, jMin, jMax, k, |
307 |
I tbar(1-OLx,1-OLy,k,bi,bj), |
I tbar(1-OLx,1-OLy,k,bi,bj), |
308 |
I sbar(1-OLx,1-OLy,k,bi,bj), |
I sbar(1-OLx,1-OLy,k,bi,bj), |
309 |
O rholoc, |
O rholoc, |
310 |
I k, bi, bj, myThid ) |
I k, bi, bj, myThid ) |
366 |
|
|
367 |
do k = 1,nr |
do k = 1,nr |
368 |
|
|
369 |
|
IF ( bi.NE.1 .OR. bj.NE.1 ) |
370 |
|
& STOP 'COST_OBCS_AGEOS wrong with more than 1 tile/proc' |
371 |
call find_rho_2d( |
call find_rho_2d( |
372 |
I iMin, iMax, jMin, jMax, k, |
I iMin, iMax, jMin, jMax, k, |
373 |
I tbar(1-OLx,1-OLy,k,bi,bj), |
I tbar(1-OLx,1-OLy,k,bi,bj), |
374 |
I sbar(1-OLx,1-OLy,k,bi,bj), |
I sbar(1-OLx,1-OLy,k,bi,bj), |
375 |
O rholoc, |
O rholoc, |
376 |
I k, bi, bj, myThid ) |
I k, bi, bj, myThid ) |
431 |
|
|
432 |
do k = 1,nr |
do k = 1,nr |
433 |
|
|
434 |
|
IF ( bi.NE.1 .OR. bj.NE.1 ) |
435 |
|
& STOP 'COST_OBCS_AGEOS wrong with more than 1 tile/proc' |
436 |
call find_rho_2d( |
call find_rho_2d( |
437 |
I iMin, iMax, jMin, jMax, k, |
I iMin, iMax, jMin, jMax, k, |
438 |
I tbar(1-OLx,1-OLy,k,bi,bj), |
I tbar(1-OLx,1-OLy,k,bi,bj), |
439 |
I sbar(1-OLx,1-OLy,k,bi,bj), |
I sbar(1-OLx,1-OLy,k,bi,bj), |
440 |
O rholoc, |
O rholoc, |
441 |
I k, bi, bj, myThid ) |
I k, bi, bj, myThid ) |
527 |
|
|
528 |
return |
return |
529 |
end |
end |
|
|
|
|
|
|
|
|
|