48 |
INTEGER I, J, K |
INTEGER I, J, K |
49 |
_RL hFacCtmp |
_RL hFacCtmp |
50 |
_RL hFacMnSz |
_RL hFacMnSz |
51 |
_RL tileArea, threadArea |
_RL tileArea(nSx,nSy), threadArea |
52 |
CEOP |
CEOP |
53 |
|
|
54 |
C- Calculate lopping factor hFacC : over-estimate the part inside of the domain |
C- Calculate lopping factor hFacC : over-estimate the part inside of the domain |
203 |
ENDDO |
ENDDO |
204 |
ENDDO |
ENDDO |
205 |
C- Compute the domain Area: |
C- Compute the domain Area: |
206 |
tileArea = 0. _d 0 |
tileArea(bi,bj) = 0. _d 0 |
207 |
DO j=1,sNy |
DO j=1,sNy |
208 |
DO i=1,sNx |
DO i=1,sNx |
209 |
tileArea = tileArea + rA(i,j,bi,bj)*maskH(i,j,bi,bj) |
tileArea(bi,bj) = tileArea(bi,bj) |
210 |
|
& + rA(i,j,bi,bj)*maskH(i,j,bi,bj) |
211 |
ENDDO |
ENDDO |
212 |
ENDDO |
ENDDO |
213 |
threadArea = threadArea + tileArea |
threadArea = threadArea + tileArea(bi,bj) |
214 |
ENDDO |
ENDDO |
215 |
ENDDO |
ENDDO |
216 |
C _EXCH_XY_R4( recip_Rcol, myThid ) |
C _EXCH_XY_R4( recip_Rcol, myThid ) |
217 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
218 |
C_jmc: apply GLOBAL_SUM to thread-local variable (not in common block) |
C_jmc: apply GLOBAL_SUM to thread-local variable (not in common block) |
219 |
_GLOBAL_SUM_R8( threadArea, myThid ) |
_GLOBAL_SUM_R8( threadArea, myThid ) |
220 |
|
#else |
221 |
|
CALL GLOBAL_SUM_TILE_RL( tileArea, threadArea, myThid ) |
222 |
|
#endif |
223 |
_BEGIN_MASTER( myThid ) |
_BEGIN_MASTER( myThid ) |
224 |
globalArea = threadArea |
globalArea = threadArea |
225 |
_END_MASTER( myThid ) |
_END_MASTER( myThid ) |