79 |
INTEGER tKlo, tKhi, tKStride |
INTEGER tKlo, tKhi, tKStride |
80 |
INTEGER i1Lo, i1Hi, j1Lo, j1Hi, k1Lo, k1Hi |
INTEGER i1Lo, i1Hi, j1Lo, j1Hi, k1Lo, k1Hi |
81 |
INTEGER i2Lo, i2Hi, j2Lo, j2Hi, k2Lo, k2Hi |
INTEGER i2Lo, i2Hi, j2Lo, j2Hi, k2Lo, k2Hi |
82 |
|
LOGICAL updateCorners |
83 |
|
|
84 |
#ifdef ALLOW_USE_MPI |
#ifdef ALLOW_USE_MPI |
85 |
INTEGER iBufr1, iBufr2, nri, nrj |
INTEGER iBufr1, iBufr2, nri, nrj |
90 |
#endif |
#endif |
91 |
CEOP |
CEOP |
92 |
|
|
93 |
|
updateCorners = cornerMode .EQ. EXCH_UPDATE_CORNERS |
94 |
C- Tile size of arrays to exchange: |
C- Tile size of arrays to exchange: |
95 |
i1Lo = 1-myOLw |
i1Lo = 1-myOLw |
96 |
i1Hi = sNx+myOLe |
i1Hi = sNx+myOLe |
120 |
nN=exch2_nNeighbours(thisTile) |
nN=exch2_nNeighbours(thisTile) |
121 |
DO N=1,nN |
DO N=1,nN |
122 |
CALL EXCH2_GET_UV_BOUNDS( |
CALL EXCH2_GET_UV_BOUNDS( |
123 |
I fieldCode, exchWidthX, |
I fieldCode, exchWidthX, updateCorners, |
124 |
I thisTile, N, |
I thisTile, N, |
125 |
O tIlo1, tIhi1, tJlo1, tJhi1, |
O tIlo1, tIhi1, tJlo1, tJhi1, |
126 |
O tIlo2, tIhi2, tJlo2, tJhi2, |
O tIlo2, tIhi2, tJlo2, tJhi2, |
197 |
farTile=exch2_neighbourId(N,thisTile) |
farTile=exch2_neighbourId(N,thisTile) |
198 |
oN = exch2_opposingSend(N,thisTile) |
oN = exch2_opposingSend(N,thisTile) |
199 |
CALL EXCH2_GET_UV_BOUNDS( |
CALL EXCH2_GET_UV_BOUNDS( |
200 |
I fieldCode, exchWidthX, |
I fieldCode, exchWidthX, updateCorners, |
201 |
I farTile, oN, |
I farTile, oN, |
202 |
O tIlo1, tIhi1, tJlo1, tJhi1, |
O tIlo1, tIhi1, tJlo1, tJhi1, |
203 |
O tIlo2, tIhi2, tJlo2, tJhi2, |
O tIlo2, tIhi2, tJlo2, tJhi2, |
264 |
farTile=exch2_neighbourId(N,thisTile) |
farTile=exch2_neighbourId(N,thisTile) |
265 |
oN = exch2_opposingSend(N,thisTile) |
oN = exch2_opposingSend(N,thisTile) |
266 |
CALL EXCH2_GET_UV_BOUNDS( |
CALL EXCH2_GET_UV_BOUNDS( |
267 |
I fieldCode, exchWidthX, |
I fieldCode, exchWidthX, updateCorners, |
268 |
I farTile, oN, |
I farTile, oN, |
269 |
O tIlo1, tIhi1, tJlo1, tJhi1, |
O tIlo1, tIhi1, tJlo1, tJhi1, |
270 |
O tIlo2, tIhi2, tJlo2, tJhi2, |
O tIlo2, tIhi2, tJlo2, tJhi2, |