1 |
|
C $Header$ |
2 |
|
C $Name$ |
3 |
|
|
4 |
#include "MOM_COMMON_OPTIONS.h" |
#include "MOM_COMMON_OPTIONS.h" |
5 |
|
|
72 |
#include "GRID.h" |
#include "GRID.h" |
73 |
#include "EEPARAMS.h" |
#include "EEPARAMS.h" |
74 |
#include "PARAMS.h" |
#include "PARAMS.h" |
|
#ifdef ALLOW_EXCH2 |
|
|
#include "W2_EXCH2_TOPOLOGY.h" |
|
|
#include "W2_EXCH2_PARAMS.h" |
|
|
#endif /* ALLOW_EXCH2 */ |
|
75 |
|
|
76 |
C == Routine arguments == |
C == Routine arguments == |
77 |
INTEGER bi,bj,k |
INTEGER bi,bj,k |
116 |
_RL viscA4_ZSmg(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL viscA4_ZSmg(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
117 |
_RL viscA4_DSmg(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL viscA4_DSmg(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
118 |
LOGICAL calcLeith,calcSmag |
LOGICAL calcLeith,calcSmag |
|
LOGICAL northWestCorner, northEastCorner, |
|
|
& southWestCorner, southEastCorner |
|
|
#ifdef ALLOW_EXCH2 |
|
|
INTEGER myTile |
|
|
#endif /* ALLOW_EXCH2 */ |
|
|
|
|
|
C Special stuff for Cubed Sphere |
|
|
southWestCorner = .FALSE. |
|
|
southEastCorner = .FALSE. |
|
|
northWestCorner = .FALSE. |
|
|
northEastCorner = .FALSE. |
|
|
IF (useCubedSphereExchange) THEN |
|
|
#ifdef ALLOW_EXCH2 |
|
|
myTile = W2_myTileList(bi) |
|
|
IF ( exch2_isWedge(myTile) .EQ. 1 .AND. |
|
|
& exch2_isSedge(myTile) .EQ. 1 ) THEN |
|
|
southWestCorner = .TRUE. |
|
|
ENDIF |
|
|
IF ( exch2_isEedge(myTile) .EQ. 1 .AND. |
|
|
& exch2_isSedge(myTile) .EQ. 1 ) THEN |
|
|
southEastCorner = .TRUE. |
|
|
ENDIF |
|
|
IF ( exch2_isEedge(myTile) .EQ. 1 .AND. |
|
|
& exch2_isNedge(myTile) .EQ. 1 ) THEN |
|
|
northEastCorner = .TRUE. |
|
|
ENDIF |
|
|
IF ( exch2_isWedge(myTile) .EQ. 1 .AND. |
|
|
& exch2_isNedge(myTile) .EQ. 1 ) THEN |
|
|
northWestCorner = .TRUE. |
|
|
ENDIF |
|
|
#else |
|
|
southWestCorner = .TRUE. |
|
|
southEastCorner = .TRUE. |
|
|
northWestCorner = .TRUE. |
|
|
northEastCorner = .TRUE. |
|
|
#endif /* ALLOW_EXCH2 */ |
|
|
ENDIF |
|
119 |
|
|
120 |
useVariableViscosity= |
useVariableViscosity= |
121 |
& (viscAhGrid.NE.0.) |
& (viscAhGrid.NE.0.) |
315 |
|
|
316 |
L2rdt=0.25 _d 0*recip_dt*L2 |
L2rdt=0.25 _d 0*recip_dt*L2 |
317 |
IF (useAreaViscLength) THEN |
IF (useAreaViscLength) THEN |
318 |
L4rdt=0.125 _d 0*recip_dt*RaZ(i,j,bi,bj)**2 |
L4rdt=0.125 _d 0*recip_dt*rAz(i,j,bi,bj)**2 |
319 |
ELSE |
ELSE |
320 |
L4rdt=recip_dt/ |
L4rdt=recip_dt/ |
321 |
& ( 6. _d 0*(recip_DXV(I,J,bi,bj)**4+recip_DYU(I,J,bi,bj)**4) |
& ( 6. _d 0*(recip_DXV(I,J,bi,bj)**4+recip_DYU(I,J,bi,bj)**4) |