134 |
C dPhiHydX,Y :: Gradient (X & Y directions) of hydrostatic potential anom. |
C dPhiHydX,Y :: Gradient (X & Y directions) of hydrostatic potential anom. |
135 |
C phiSurfX, :: gradient of Surface potential (Pressure/rho, ocean) |
C phiSurfX, :: gradient of Surface potential (Pressure/rho, ocean) |
136 |
C phiSurfY or geopotential (atmos) in X and Y direction |
C phiSurfY or geopotential (atmos) in X and Y direction |
137 |
|
C guDissip :: dissipation tendency (all explicit terms), u component |
138 |
|
C gvDissip :: dissipation tendency (all explicit terms), v component |
139 |
C iMin, iMax - Ranges and sub-block indices on which calculations |
C iMin, iMax - Ranges and sub-block indices on which calculations |
140 |
C jMin, jMax are applied. |
C jMin, jMax are applied. |
141 |
C bi, bj |
C bi, bj |
150 |
_RL dPhiHydY(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
_RL dPhiHydY(1-Olx:sNx+Olx,1-Oly:sNy+Oly) |
151 |
_RL phiSurfX(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL phiSurfX(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
152 |
_RL phiSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL phiSurfY(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
153 |
|
_RL guDissip(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
154 |
|
_RL gvDissip(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
155 |
_RL KappaRU (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
_RL KappaRU (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
156 |
_RL KappaRV (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
_RL KappaRV (1-Olx:sNx+Olx,1-Oly:sNy+Oly,Nr) |
157 |
|
|
260 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
261 |
cph( |
cph( |
262 |
c-- need some re-initialisation here to break dependencies |
c-- need some re-initialisation here to break dependencies |
|
c-- totphihyd is assumed zero from ini_pressure, i.e. |
|
|
c-- avoiding iterate pressure p = integral of (g*rho(p)*dz) |
|
263 |
cph) |
cph) |
|
totPhiHyd(i,j,k,bi,bj) = 0. _d 0 |
|
264 |
gu(i,j,k,bi,bj) = 0. _d 0 |
gu(i,j,k,bi,bj) = 0. _d 0 |
265 |
gv(i,j,k,bi,bj) = 0. _d 0 |
gv(i,j,k,bi,bj) = 0. _d 0 |
266 |
#endif |
#endif |
279 |
dPhiHydY(i,j) = 0. _d 0 |
dPhiHydY(i,j) = 0. _d 0 |
280 |
phiSurfX(i,j) = 0. _d 0 |
phiSurfX(i,j) = 0. _d 0 |
281 |
phiSurfY(i,j) = 0. _d 0 |
phiSurfY(i,j) = 0. _d 0 |
282 |
|
guDissip(i,j) = 0. _d 0 |
283 |
|
gvDissip(i,j) = 0. _d 0 |
284 |
ENDDO |
ENDDO |
285 |
ENDDO |
ENDDO |
286 |
|
|
378 |
I bi,bj,iMin,iMax,jMin,jMax,k,kup,kDown, |
I bi,bj,iMin,iMax,jMin,jMax,k,kup,kDown, |
379 |
I dPhiHydX,dPhiHydY,KappaRU,KappaRV, |
I dPhiHydX,dPhiHydY,KappaRU,KappaRV, |
380 |
U fVerU, fVerV, |
U fVerU, fVerV, |
381 |
|
O guDissip, gvDissip, |
382 |
I myTime, myIter, myThid) |
I myTime, myIter, myThid) |
383 |
#endif |
#endif |
384 |
CALL TIMESTEP( |
CALL TIMESTEP( |
385 |
I bi,bj,iMin,iMax,jMin,jMax,k, |
I bi,bj,iMin,iMax,jMin,jMax,k, |
386 |
I dPhiHydX,dPhiHydY, phiSurfX, phiSurfY, |
I dPhiHydX,dPhiHydY, phiSurfX, phiSurfY, |
387 |
|
I guDissip, gvDissip, |
388 |
I myTime, myIter, myThid) |
I myTime, myIter, myThid) |
389 |
|
|
390 |
#ifdef ALLOW_OBCS |
#ifdef ALLOW_OBCS |
417 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
#endif /* ALLOW_AUTODIFF_TAMC */ |
418 |
CALL IMPLDIFF( |
CALL IMPLDIFF( |
419 |
I bi, bj, iMin, iMax, jMin, jMax, |
I bi, bj, iMin, iMax, jMin, jMax, |
420 |
I deltaTmom, KappaRU,recip_HFacW, |
I 0, KappaRU,recip_HFacW, |
421 |
U gU, |
U gU, |
422 |
I myThid ) |
I myThid ) |
423 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
426 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
#endif /* ALLOW_AUTODIFF_TAMC */ |
427 |
CALL IMPLDIFF( |
CALL IMPLDIFF( |
428 |
I bi, bj, iMin, iMax, jMin, jMax, |
I bi, bj, iMin, iMax, jMin, jMax, |
429 |
I deltaTmom, KappaRV,recip_HFacS, |
I 0, KappaRV,recip_HFacS, |
430 |
U gV, |
U gV, |
431 |
I myThid ) |
I myThid ) |
432 |
ENDIF |
ENDIF |
447 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
#endif /* ALLOW_AUTODIFF_TAMC */ |
448 |
CALL IMPLDIFF( |
CALL IMPLDIFF( |
449 |
I bi, bj, iMin, iMax, jMin, jMax, |
I bi, bj, iMin, iMax, jMin, jMax, |
450 |
I deltaTmom, KappaRU,recip_HFacW, |
I 0, KappaRU,recip_HFacW, |
451 |
U vVelD, |
U vVelD, |
452 |
I myThid ) |
I myThid ) |
453 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
455 |
#endif /* ALLOW_AUTODIFF_TAMC */ |
#endif /* ALLOW_AUTODIFF_TAMC */ |
456 |
CALL IMPLDIFF( |
CALL IMPLDIFF( |
457 |
I bi, bj, iMin, iMax, jMin, jMax, |
I bi, bj, iMin, iMax, jMin, jMax, |
458 |
I deltaTmom, KappaRV,recip_HFacS, |
I 0, KappaRV,recip_HFacS, |
459 |
U uVelD, |
U uVelD, |
460 |
I myThid ) |
I myThid ) |
461 |
ENDIF |
ENDIF |
465 |
ENDDO |
ENDDO |
466 |
ENDDO |
ENDDO |
467 |
|
|
468 |
|
#ifdef ALLOW_OBCS |
469 |
|
IF (useOBCS) THEN |
470 |
|
CALL OBCS_PRESCRIBE_EXCHANGES(myThid) |
471 |
|
ENDIF |
472 |
|
#endif |
473 |
|
|
474 |
Cml( |
Cml( |
475 |
C In order to compare the variance of phiHydLow of a p/z-coordinate |
C In order to compare the variance of phiHydLow of a p/z-coordinate |
476 |
C run with etaH of a z/p-coordinate run the drift of phiHydLow |
C run with etaH of a z/p-coordinate run the drift of phiHydLow |