48 |
INTEGER I, J, K |
INTEGER I, J, K |
49 |
_RL hFacCtmp |
_RL hFacCtmp |
50 |
_RL hFacMnSz |
_RL hFacMnSz |
51 |
_RL tileArea |
_RL tileArea, 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 |
186 |
& 'Model Ro_surf (ini_masks_etc)', 1, myThid) |
& 'Model Ro_surf (ini_masks_etc)', 1, myThid) |
187 |
|
|
188 |
C Calculate quantities derived from XY depth map |
C Calculate quantities derived from XY depth map |
189 |
globalArea = 0. _d 0 |
threadArea = 0. _d 0 |
190 |
DO bj = myByLo(myThid), myByHi(myThid) |
DO bj = myByLo(myThid), myByHi(myThid) |
191 |
DO bi = myBxLo(myThid), myBxHi(myThid) |
DO bi = myBxLo(myThid), myBxHi(myThid) |
192 |
DO j=1-Oly,sNy+Oly |
DO j=1-Oly,sNy+Oly |
209 |
tileArea = tileArea + rA(i,j,bi,bj)*maskH(i,j,bi,bj) |
tileArea = tileArea + rA(i,j,bi,bj)*maskH(i,j,bi,bj) |
210 |
ENDDO |
ENDDO |
211 |
ENDDO |
ENDDO |
212 |
globalArea = globalArea + tileArea |
threadArea = threadArea + tileArea |
213 |
ENDDO |
ENDDO |
214 |
ENDDO |
ENDDO |
215 |
C _EXCH_XY_R4( recip_Rcol, myThid ) |
C _EXCH_XY_R4( recip_Rcol, myThid ) |
216 |
_GLOBAL_SUM_R8( globalArea, myThid ) |
C_jmc: apply GLOBAL_SUM to thread-local variable (not in common block) |
217 |
|
_GLOBAL_SUM_R8( threadArea, myThid ) |
218 |
|
_BEGIN_MASTER( myThid ) |
219 |
|
globalArea = threadArea |
220 |
|
_END_MASTER( myThid ) |
221 |
|
|
222 |
C hFacW and hFacS (at U and V points) |
C hFacW and hFacS (at U and V points) |
223 |
DO bj=myByLo(myThid), myByHi(myThid) |
DO bj=myByLo(myThid), myByHi(myThid) |
251 |
DO K=1, Nr |
DO K=1, Nr |
252 |
DO J=1-Oly,sNy+Oly |
DO J=1-Oly,sNy+Oly |
253 |
DO I=1-Olx,sNx+Olx |
DO I=1-Olx,sNx+Olx |
254 |
IF (DYG(I,J,bi,bj).EQ.0.) hFacW(I,J,K,bi,bj)=0. |
IF (dyG(I,J,bi,bj).EQ.0.) hFacW(I,J,K,bi,bj)=0. |
255 |
IF (DXG(I,J,bi,bj).EQ.0.) hFacS(I,J,K,bi,bj)=0. |
IF (dxG(I,J,bi,bj).EQ.0.) hFacS(I,J,K,bi,bj)=0. |
256 |
ENDDO |
ENDDO |
257 |
ENDDO |
ENDDO |
258 |
ENDDO |
ENDDO |