89 |
_RL etaPre (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
_RL etaPre (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
90 |
_RL etaZPre (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
_RL etaZPre (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
91 |
_RL dwatPre (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
_RL dwatPre (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
|
_RL pressPre(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
|
92 |
CEOP |
CEOP |
93 |
|
|
94 |
C Initialise |
C Initialise |
103 |
recip_deltaT = 1. _d 0 / SEAICE_deltaTdyn |
recip_deltaT = 1. _d 0 / SEAICE_deltaTdyn |
104 |
|
|
105 |
iOutFGMRES=0 |
iOutFGMRES=0 |
106 |
C iOutFgmres=1 gives a little bit of output |
C with iOutFgmres=1, seaice_fgmres prints the residual at each iteration |
107 |
IF ( debugLevel.GE.debLevA .AND. |
IF ( debugLevel.GE.debLevC .AND. |
108 |
& DIFFERENT_MULTIPLE( SEAICE_monFreq, myTime, deltaTClock ) ) |
& DIFFERENT_MULTIPLE( SEAICE_monFreq, myTime, deltaTClock ) ) |
109 |
& iOutFGMRES=1 |
& iOutFGMRES=1 |
110 |
|
|
144 |
I uIce, vIce, |
I uIce, vIce, |
145 |
O uIceRes, vIceRes, |
O uIceRes, vIceRes, |
146 |
I newtonIter, 0, myTime, myIter, myThid ) |
I newtonIter, 0, myTime, myIter, myThid ) |
147 |
|
C probably not necessary, will be removed later: |
148 |
CALL EXCH_UV_XY_RL( uIceRes, vIceRes,.TRUE.,myThid) |
CALL EXCH_UV_XY_RL( uIceRes, vIceRes,.TRUE.,myThid) |
149 |
C local copies of precomputed coefficients that are to stay |
C local copies of precomputed coefficients that are to stay |
150 |
C constant for the preconditioner |
C constant for the preconditioner |
152 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
DO bi=myBxLo(myThid),myBxHi(myThid) |
153 |
DO j=1-Oly,sNy+Oly |
DO j=1-Oly,sNy+Oly |
154 |
DO i=1-Olx,sNx+Olx |
DO i=1-Olx,sNx+Olx |
155 |
zetaPre(I,J,bi,bj) = zeta(I,J,bi,bj) |
zetaPre(I,J,bi,bj) = zeta(I,J,bi,bj) |
156 |
etaPre(I,J,bi,bj) = eta(I,J,bi,bj) |
etaPre(I,J,bi,bj) = eta(I,J,bi,bj) |
157 |
etaZPre(I,J,bi,bj) = etaZ(I,J,bi,bj) |
etaZPre(I,J,bi,bj) = etaZ(I,J,bi,bj) |
158 |
dwatPre(I,J,bi,bj) = DWATN(I,J,bi,bj) |
dwatPre(I,J,bi,bj) = DWATN(I,J,bi,bj) |
|
pressPre(I,J,bi,bj) = press(I,J,bi,bj) |
|
159 |
ENDDO |
ENDDO |
160 |
ENDDO |
ENDDO |
161 |
ENDDO |
ENDDO |
246 |
IF ( SOLV_MAX_ITERS .GT. 0 ) |
IF ( SOLV_MAX_ITERS .GT. 0 ) |
247 |
& CALL SEAICE_PRECONDITIONER( |
& CALL SEAICE_PRECONDITIONER( |
248 |
U duIce, dvIce, |
U duIce, dvIce, |
249 |
I zetaPre, etaPre, etaZpre, dwatPre, pressPre, |
I zetaPre, etaPre, etaZpre, dwatPre, |
250 |
I newtonIter, krylovIter, myTime, myIter, myThid ) |
I newtonIter, krylovIter, myTime, myIter, myThid ) |
251 |
ELSEIF (iCode.GE.2) THEN |
ELSEIF (iCode.GE.2) THEN |
252 |
C Compute Jacobian times vector |
C Compute Jacobian times vector |
358 |
&' // =======================================================' |
&' // =======================================================' |
359 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
360 |
& SQUEEZE_RIGHT, myThid ) |
& SQUEEZE_RIGHT, myThid ) |
361 |
WRITE(msgBuf,'(A)') ' // Begin JFNK statistics' |
WRITE(msgBuf,'(A)') ' // End JFNK statistics' |
362 |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
CALL PRINT_MESSAGE( msgBuf, standardMessageUnit, |
363 |
& SQUEEZE_RIGHT, myThid ) |
& SQUEEZE_RIGHT, myThid ) |
364 |
WRITE(msgBuf,'(A)') |
WRITE(msgBuf,'(A)') |