4 |
#include "SEAICE_OPTIONS.h" |
#include "SEAICE_OPTIONS.h" |
5 |
|
|
6 |
CStartOfInterface |
CStartOfInterface |
7 |
SUBROUTINE SEAICE_CALC_STRAINRATES( |
SUBROUTINE SEAICE_CALC_STRAINRATES( |
8 |
I uFld, vFld, |
I uFld, vFld, |
9 |
O e11, e22, e12, |
O e11, e22, e12, |
10 |
I myThid ) |
I iStep, myTime, myIter, myThid ) |
11 |
C /==========================================================\ |
C /==========================================================\ |
12 |
C | SUBROUTINE SEAICE_CALC_STRAINRATES | |
C | SUBROUTINE SEAICE_CALC_STRAINRATES | |
13 |
C | o compute strain rates from ice velocities | |
C | o compute strain rates from ice velocities | |
28 |
#endif |
#endif |
29 |
|
|
30 |
C === Routine arguments === |
C === Routine arguments === |
31 |
C myThid - Thread no. that called this routine. |
C iStep :: Sub-time-step number |
32 |
|
C myTime :: Simulation time |
33 |
|
C myIter :: Simulation timestep number |
34 |
|
C myThid :: My Thread Id. number |
35 |
|
INTEGER iStep |
36 |
|
_RL myTime |
37 |
|
INTEGER myIter |
38 |
INTEGER myThid |
INTEGER myThid |
39 |
C ice velocities |
C ice velocities |
40 |
_RL uFld(1-Olx:sNx+Olx,1-Oly:sNy+Oly,nSx,nSy) |
_RL uFld(1-Olx:sNx+Olx,1-Oly:sNy+Oly,nSx,nSy) |
97 |
hFacV = _maskS(i,j,k,bi,bj) - _maskS(i-1,j,k,bi,bj) |
hFacV = _maskS(i,j,k,bi,bj) - _maskS(i-1,j,k,bi,bj) |
98 |
|
|
99 |
e12(I,J,bi,bj) = e12(I,J,bi,bj) |
e12(I,J,bi,bj) = e12(I,J,bi,bj) |
100 |
& + recip_rAz(i,j,bi,bj) * |
& + recip_rAz(i,j,bi,bj) * |
101 |
& ( hFacU * ( _dxC(i,j-1,bi,bj)*uFld(i,j ,bi,bj) |
& ( hFacU * ( _dxC(i,j-1,bi,bj)*uFld(i,j ,bi,bj) |
102 |
& + _dxC(i,j, bi,bj)*uFld(i,j-1,bi,bj) ) |
& + _dxC(i,j, bi,bj)*uFld(i,j-1,bi,bj) ) |
103 |
& + hFacV * ( _dyC(i-1,j,bi,bj)*vFld(i ,j,bi,bj) |
& + hFacV * ( _dyC(i-1,j,bi,bj)*vFld(i ,j,bi,bj) |
104 |
& + _dyC(i, j,bi,bj)*vFld(i-1,j,bi,bj) ) ) |
& + _dyC(i, j,bi,bj)*vFld(i-1,j,bi,bj) ) ) |
105 |
& - hFacU |
& - hFacU |
106 |
& * 0.25 _d 0 * (uFld(I,J,bi,bj)+uFld(I ,J-1,bi,bj)) |
& * 0.25 _d 0 * (uFld(I,J,bi,bj)+uFld(I ,J-1,bi,bj)) |
107 |
& * ( _tanPhiAtU(I,J,bi,bj) + _tanPhiAtU(I,J-1,bi,bj) ) |
& * ( _tanPhiAtU(I,J,bi,bj) + _tanPhiAtU(I,J-1,bi,bj) ) |
108 |
& *recip_rSphere |
& *recip_rSphere |