54 |
_RS uf(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RS uf(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
55 |
_RS vf(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RS vf(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
56 |
_RL firstResidual,lastResidual |
_RL firstResidual,lastResidual |
57 |
_RL tmpFac |
_RL tmpFac, convertVol2Mass |
58 |
INTEGER numIters |
INTEGER numIters |
59 |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
CHARACTER*(MAX_LEN_MBUF) msgBuf |
60 |
CEOP |
CEOP |
61 |
|
|
62 |
|
IF ( buoyancyRelation .eq. 'OCEANICP' ) THEN |
63 |
|
convertVol2Mass = gravity*rhoConstFresh |
64 |
|
ELSE |
65 |
|
convertVol2Mass = 1. _d 0 |
66 |
|
ENDIF |
67 |
|
|
68 |
C-- Save previous solution & Initialise Vector solution and source term : |
C-- Save previous solution & Initialise Vector solution and source term : |
69 |
DO bj=myByLo(myThid),myByHi(myThid) |
DO bj=myByLo(myThid),myByHi(myThid) |
70 |
DO bi=myBxLo(myThid),myBxHi(myThid) |
DO bi=myBxLo(myThid),myBxHi(myThid) |
78 |
ENDDO |
ENDDO |
79 |
ENDDO |
ENDDO |
80 |
IF (useRealFreshWaterFlux) THEN |
IF (useRealFreshWaterFlux) THEN |
81 |
tmpFac = freeSurfFac |
tmpFac = freeSurfFac*convertVol2Mass |
82 |
IF (exactConserv) tmpFac = freeSurfFac*implicDiv2DFlow |
IF (exactConserv) |
83 |
IF ( buoyancyRelation .eq. 'OCEANICP' ) THEN |
& tmpFac = freeSurfFac*convertVol2Mass*implicDiv2DFlow |
|
tmpFac = tmpFac*horiVertRatio |
|
|
ENDIF |
|
84 |
DO j=1,sNy |
DO j=1,sNy |
85 |
DO i=1,sNx |
DO i=1,sNx |
86 |
cg2d_b(i,j,bi,bj) = |
cg2d_b(i,j,bi,bj) = |