72 |
C In p coords phiHydiHyd is the geopotential |
C In p coords phiHydiHyd is the geopotential |
73 |
C surface height |
C surface height |
74 |
C anomaly. |
C anomaly. |
75 |
C etaSurfX, - Holds surface elevation gradient in X and Y. |
C phiSurfX, - gradient of Surface potentiel (Pressure/rho, ocean) |
76 |
C etaSurfY |
C phiSurfY or geopotentiel (atmos) in X and Y direction |
77 |
C KappaRT, - Total diffusion in vertical for T and S. |
C KappaRT, - Total diffusion in vertical for T and S. |
78 |
C KappaRS (background + spatially varying, isopycnal term). |
C KappaRS (background + spatially varying, isopycnal term). |
79 |
C iMin, iMax - Ranges and sub-block indices on which calculations |
C iMin, iMax - Ranges and sub-block indices on which calculations |
96 |
_RL phiHyd (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
_RL phiHyd (1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr) |
97 |
_RL rhokm1 (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL rhokm1 (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
98 |
_RL rhok (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL rhok (1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
99 |
|
_RL phiSurfX(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
100 |
|
_RL phiSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
101 |
_RL KappaRT (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
_RL KappaRT (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
102 |
_RL KappaRS (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
_RL KappaRS (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
103 |
_RL KappaRU (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
_RL KappaRU (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
202 |
rhoKM1 (i,j) = 0. _d 0 |
rhoKM1 (i,j) = 0. _d 0 |
203 |
rhok (i,j) = 0. _d 0 |
rhok (i,j) = 0. _d 0 |
204 |
maskC (i,j) = 0. _d 0 |
maskC (i,j) = 0. _d 0 |
205 |
|
phiSurfX(i,j) = 0. _d 0 |
206 |
|
phiSurfY(i,j) = 0. _d 0 |
207 |
ENDDO |
ENDDO |
208 |
ENDDO |
ENDDO |
209 |
|
|
527 |
C-- End If implicitDiffusion |
C-- End If implicitDiffusion |
528 |
ENDIF |
ENDIF |
529 |
|
|
530 |
|
C-- Start computation of dynamics |
531 |
|
iMin = 1-OLx+2 |
532 |
|
iMax = sNx+OLx-1 |
533 |
|
jMin = 1-OLy+2 |
534 |
|
jMax = sNy+OLy-1 |
535 |
|
|
536 |
|
C-- Explicit part of the Surface Pressure Gradient (add in TIMESTEP) |
537 |
|
C (note: this loop will be replaced by CALL CALC_GRAD_ETA) |
538 |
|
IF (implicSurfPress.NE.1.) THEN |
539 |
|
DO j=jMin,jMax |
540 |
|
DO i=iMin,iMax |
541 |
|
phiSurfX(i,j) = _recip_dxC(i,j,bi,bj)*gBaro |
542 |
|
& *(cg2d_x(i,j,bi,bj)-cg2d_x(i-1,j,bi,bj)) |
543 |
|
phiSurfY(i,j) = _recip_dyC(i,j,bi,bj)*gBaro |
544 |
|
& *(cg2d_x(i,j,bi,bj)-cg2d_x(i,j-1,bi,bj)) |
545 |
|
ENDDO |
546 |
|
ENDDO |
547 |
|
ENDIF |
548 |
|
|
549 |
C-- Start of dynamics loop |
C-- Start of dynamics loop |
550 |
DO k=1,Nr |
DO k=1,Nr |
557 |
kup = 1+MOD(k+1,2) |
kup = 1+MOD(k+1,2) |
558 |
kDown= 1+MOD(k,2) |
kDown= 1+MOD(k,2) |
559 |
|
|
|
iMin = 1-OLx+2 |
|
|
iMax = sNx+OLx-1 |
|
|
jMin = 1-OLy+2 |
|
|
jMax = sNy+OLy-1 |
|
|
|
|
560 |
C-- Integrate hydrostatic balance for phiHyd with BC of |
C-- Integrate hydrostatic balance for phiHyd with BC of |
561 |
C phiHyd(z=0)=0 |
C phiHyd(z=0)=0 |
562 |
C distinguishe between Stagger and Non Stagger time stepping |
C distinguishe between Stagger and Non Stagger time stepping |
583 |
U fVerU, fVerV, |
U fVerU, fVerV, |
584 |
I myTime, myThid) |
I myTime, myThid) |
585 |
CALL TIMESTEP( |
CALL TIMESTEP( |
586 |
I bi,bj,iMin,iMax,jMin,jMax,k,phiHyd, |
I bi,bj,iMin,iMax,jMin,jMax,k, |
587 |
|
I phiHyd, phiSurfX, phiSurfY, |
588 |
I myIter, myThid) |
I myIter, myThid) |
589 |
|
|
590 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |