47 |
_RL dSigmaDrS(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RL dSigmaDrS(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
48 |
_RL LrhoW(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RL LrhoW(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
49 |
_RL LrhoS(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RL LrhoS(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
|
_RL slopeTmpSpec,slopeMaxSpec |
|
50 |
_RS depthZ |
_RS depthZ |
51 |
INTEGER K,bi,bj,myThid |
INTEGER K,bi,bj,myThid |
52 |
CEndOfInterface |
CEndOfInterface |
62 |
_RL fpi |
_RL fpi |
63 |
PARAMETER(fpi=3.141592653589793047592d0) |
PARAMETER(fpi=3.141592653589793047592d0) |
64 |
INTEGER i,j |
INTEGER i,j |
65 |
|
#ifdef GMREDI_WITH_STABLE_ADJOINT |
66 |
|
_RL slopeTmpSpec,slopeMaxSpec |
67 |
|
#endif |
68 |
|
|
69 |
|
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
70 |
|
|
71 |
slopeCutoff = SQRT( GM_slopeSqCutoff ) |
slopeCutoff = SQRT( GM_slopeSqCutoff ) |
72 |
|
|
190 |
CADJ STORE dSigmaDrW(:,:) = comlev1_bibj_k, key=kkey, byte=isbyte |
CADJ STORE dSigmaDrW(:,:) = comlev1_bibj_k, key=kkey, byte=isbyte |
191 |
#endif |
#endif |
192 |
|
|
193 |
C- Compute the slope, no clipping, but avoid reverse slope in negatively |
C- Compute the slope, no clipping, but avoid reverse slope in negatively |
194 |
C stratified (Sigma_Z > 0) region : |
C stratified (Sigma_Z > 0) region : |
195 |
DO j=1-Oly,sNy+Oly |
DO j=1-Oly,sNy+Oly |
196 |
DO i=1-Olx+1,sNx+Olx |
DO i=1-Olx+1,sNx+Olx |
273 |
DO i=1-Olx,sNx+Olx |
DO i=1-Olx,sNx+Olx |
274 |
Smod = ABS(SlopeY(i,j)) |
Smod = ABS(SlopeY(i,j)) |
275 |
IF ( Smod .GT. GM_maxSlope .AND. |
IF ( Smod .GT. GM_maxSlope .AND. |
276 |
& Smod .LT. slopeCutoff ) |
& Smod .LT. slopeCutoff ) |
277 |
& taperY(i,j)=GM_maxSlope/(Smod+GM_Small_Number) |
& taperY(i,j)=GM_maxSlope/(Smod+GM_Small_Number) |
278 |
ENDDO |
ENDDO |
279 |
ENDDO |
ENDDO |
285 |
DO j=1-Oly,sNy+Oly |
DO j=1-Oly,sNy+Oly |
286 |
DO i=1-Olx+1,sNx+Olx |
DO i=1-Olx+1,sNx+Olx |
287 |
IF ( ABS(SlopeX(i,j)) .GT. GM_maxSlope .AND. |
IF ( ABS(SlopeX(i,j)) .GT. GM_maxSlope .AND. |
288 |
& ABS(SlopeX(i,j)) .LT. slopeCutoff ) |
& ABS(SlopeX(i,j)) .LT. slopeCutoff ) |
289 |
& taperX(i,j)=maxSlopeSqr/ |
& taperX(i,j)=maxSlopeSqr/ |
290 |
& ( SlopeX(i,j)*SlopeX(i,j) + GM_Small_Number ) |
& ( SlopeX(i,j)*SlopeX(i,j) + GM_Small_Number ) |
291 |
ENDDO |
ENDDO |