5 |
|
|
6 |
CStartOfInterface |
CStartOfInterface |
7 |
SUBROUTINE ostres( COR_ICE, myThid ) |
SUBROUTINE ostres( COR_ICE, myThid ) |
8 |
C /==========================================================\ |
C *==========================================================* |
9 |
C | SUBROUTINE ostres | |
C | SUBROUTINE ostres | |
10 |
C | o Calculate ocean surface stress | |
C | o Calculate ocean surface stress | |
11 |
C |==========================================================| |
C *==========================================================* |
12 |
C \==========================================================/ |
C *==========================================================* |
13 |
IMPLICIT NONE |
IMPLICIT NONE |
14 |
|
|
15 |
C === Global variables === |
C === Global variables === |
43 |
COSWAT=COS(SEAICE_waterTurnAngle*deg2rad) |
COSWAT=COS(SEAICE_waterTurnAngle*deg2rad) |
44 |
|
|
45 |
#ifdef SEAICE_ORIGINAL_BAD_ICE_STRESS |
#ifdef SEAICE_ORIGINAL_BAD_ICE_STRESS |
46 |
These lines are put here on purpose to cause the compilation |
These lines are put here on purpose to cause the compilation |
47 |
to fail because the following code is retired and can no longer |
to fail because the following code is retired and can no longer |
48 |
be used. It was probably never used anyway. |
be used. It was probably never used anyway. |
49 |
CMLC-- Following formulation is problematic and is no longer used. |
CMLC-- Following formulation is problematic and is no longer used. |
116 |
DO j=1,sNy |
DO j=1,sNy |
117 |
DO i=1,sNx |
DO i=1,sNx |
118 |
fuIce=QUART*( DWATN(I,J,bi,bj)+DWATN(I,J+1,bi,bj) )*( |
fuIce=QUART*( DWATN(I,J,bi,bj)+DWATN(I,J+1,bi,bj) )*( |
119 |
& COSWAT * |
& COSWAT * |
120 |
& ( UICE(I,J, bi,bj)-GWATX(I,J, bi,bj) |
& ( UICE(I,J, bi,bj)-GWATX(I,J, bi,bj) |
121 |
& + UICE(I,J+1,bi,bj)-GWATX(I,J+1,bi,bj) ) |
& + UICE(I,J+1,bi,bj)-GWATX(I,J+1,bi,bj) ) |
122 |
& -SIGN(SINWAT,COR_ICE(I,J,bi,bj)) * |
& -SIGN(SINWAT,COR_ICE(I,J,bi,bj)) * |
124 |
& + VICE(I+1,J,bi,bj)-GWATY(I+1,J,bi,bj) ) |
& + VICE(I+1,J,bi,bj)-GWATY(I+1,J,bi,bj) ) |
125 |
& ) |
& ) |
126 |
fvIce=QUART*( DWATN(I,J,bi,bj)+DWATN(I+1,J,bi,bj) )*( |
fvIce=QUART*( DWATN(I,J,bi,bj)+DWATN(I+1,J,bi,bj) )*( |
127 |
& SIGN(SINWAT,COR_ICE(I,J,bi,bj)) * |
& SIGN(SINWAT,COR_ICE(I,J,bi,bj)) * |
128 |
& ( UICE(I,J, bi,bj)-GWATX(I,J, bi,bj) |
& ( UICE(I,J, bi,bj)-GWATX(I,J, bi,bj) |
129 |
& + UICE(I,J+1,bi,bj)-GWATX(I,J+1,bi,bj) ) |
& + UICE(I,J+1,bi,bj)-GWATX(I,J+1,bi,bj) ) |
130 |
& + COSWAT * |
& + COSWAT * |
131 |
& ( VICE(I, J,i,bj)-GWATY(I, J,bi,bj) |
& ( VICE(I, J,bi,bj)-GWATY(I, J,bi,bj) |
132 |
& + VICE(I+1,J,bi,bj)-GWATY(I+1,J,bi,bj) ) |
& + VICE(I+1,J,bi,bj)-GWATY(I+1,J,bi,bj) ) |
133 |
& ) |
& ) |
134 |
fu(I,J,bi,bj)=(ONE-AREA(I,J,bi,bj))*fu(I,J,bi,bj)+ |
fu(I,J,bi,bj)=(ONE-AREA(I,J,bi,bj))*fu(I,J,bi,bj)+ |