31 |
C !ROUTINE: MOM_FLUXFORM |
C !ROUTINE: MOM_FLUXFORM |
32 |
|
|
33 |
C !INTERFACE: ========================================================== |
C !INTERFACE: ========================================================== |
34 |
SUBROUTINE MOM_FLUXFORM( |
SUBROUTINE MOM_FLUXFORM( |
35 |
I bi,bj,iMin,iMax,jMin,jMax,k,kUp,kDown, |
I bi,bj,iMin,iMax,jMin,jMax,k,kUp,kDown, |
36 |
I KappaRU, KappaRV, |
I KappaRU, KappaRV, |
37 |
U fVerU, fVerV, |
U fVerU, fVerV, |
40 |
|
|
41 |
C !DESCRIPTION: |
C !DESCRIPTION: |
42 |
C Calculates all the horizontal accelerations except for the implicit surface |
C Calculates all the horizontal accelerations except for the implicit surface |
43 |
C pressure gradient and implciit vertical viscosity. |
C pressure gradient and implicit vertical viscosity. |
44 |
|
|
45 |
C !USES: =============================================================== |
C !USES: =============================================================== |
46 |
C == Global variables == |
C == Global variables == |
52 |
#include "PARAMS.h" |
#include "PARAMS.h" |
53 |
#include "GRID.h" |
#include "GRID.h" |
54 |
#include "SURFACE.h" |
#include "SURFACE.h" |
55 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
56 |
|
# include "tamc.h" |
57 |
|
# include "tamc_keys.h" |
58 |
|
# include "MOM_FLUXFORM.h" |
59 |
|
#endif |
60 |
|
|
61 |
C !INPUT PARAMETERS: =================================================== |
C !INPUT PARAMETERS: =================================================== |
62 |
C bi,bj :: tile indices |
C bi,bj :: tile indices |
98 |
C fMer :: meridional fluxes |
C fMer :: meridional fluxes |
99 |
C fVrUp,fVrDw :: vertical viscous fluxes at interface k-1 & k |
C fVrUp,fVrDw :: vertical viscous fluxes at interface k-1 & k |
100 |
INTEGER i,j |
INTEGER i,j |
101 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
102 |
|
INTEGER imomkey |
103 |
|
#endif |
104 |
_RL vF(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL vF(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
105 |
_RL v4F(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL v4F(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
106 |
_RL cF(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL cF(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
110 |
_RL fVrUp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL fVrUp(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
111 |
_RL fVrDw(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL fVrDw(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
112 |
C afFacMom :: Tracer parameters for turning terms on and off. |
C afFacMom :: Tracer parameters for turning terms on and off. |
113 |
C vfFacMom |
C vfFacMom |
114 |
C pfFacMom afFacMom - Advective terms |
C pfFacMom afFacMom - Advective terms |
115 |
C cfFacMom vfFacMom - Eddy viscosity terms |
C cfFacMom vfFacMom - Eddy viscosity terms |
116 |
C mtFacMom pfFacMom - Pressure terms |
C mtFacMom pfFacMom - Pressure terms |
117 |
C cfFacMom - Coriolis terms |
C cfFacMom - Coriolis terms |
158 |
_RL sideMaskFac |
_RL sideMaskFac |
159 |
LOGICAL bottomDragTerms,harmonic,biharmonic,useVariableViscosity |
LOGICAL bottomDragTerms,harmonic,biharmonic,useVariableViscosity |
160 |
CEOP |
CEOP |
161 |
|
#ifdef MOM_BOUNDARY_CONSERVE |
162 |
|
COMMON / MOM_FLUXFORM_LOCAL / uBnd, vBnd |
163 |
|
_RL uBnd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
164 |
|
_RL vBnd(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
165 |
|
#endif /* MOM_BOUNDARY_CONSERVE */ |
166 |
|
|
167 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
168 |
|
act0 = k - 1 |
169 |
|
max0 = Nr |
170 |
|
act1 = bi - myBxLo(myThid) |
171 |
|
max1 = myBxHi(myThid) - myBxLo(myThid) + 1 |
172 |
|
act2 = bj - myByLo(myThid) |
173 |
|
max2 = myByHi(myThid) - myByLo(myThid) + 1 |
174 |
|
act3 = myThid - 1 |
175 |
|
max3 = nTx*nTy |
176 |
|
act4 = ikey_dynamics - 1 |
177 |
|
imomkey = (act0 + 1) |
178 |
|
& + act1*max0 |
179 |
|
& + act2*max0*max1 |
180 |
|
& + act3*max0*max1*max2 |
181 |
|
& + act4*max0*max1*max2*max3 |
182 |
|
#endif /* ALLOW_AUTODIFF_TAMC */ |
183 |
|
|
184 |
C Initialise intermediate terms |
C Initialise intermediate terms |
185 |
DO j=1-OLy,sNy+OLy |
DO j=1-OLy,sNy+OLy |
194 |
fVrDw(i,j)= 0. |
fVrDw(i,j)= 0. |
195 |
rTransU(i,j)= 0. |
rTransU(i,j)= 0. |
196 |
rTransV(i,j)= 0. |
rTransV(i,j)= 0. |
197 |
|
c KE(i,j) = 0. |
198 |
|
hDiv(i,j) = 0. |
199 |
|
vort3(i,j) = 0. |
200 |
strain(i,j) = 0. |
strain(i,j) = 0. |
201 |
tension(i,j)= 0. |
tension(i,j)= 0. |
202 |
guDiss(i,j) = 0. |
guDiss(i,j) = 0. |
203 |
gvDiss(i,j) = 0. |
gvDiss(i,j) = 0. |
|
#ifdef ALLOW_AUTODIFF_TAMC |
|
|
vort3(i,j) = 0. _d 0 |
|
|
strain(i,j) = 0. _d 0 |
|
|
tension(i,j) = 0. _d 0 |
|
|
#endif |
|
204 |
ENDDO |
ENDDO |
205 |
ENDDO |
ENDDO |
206 |
|
|
254 |
C Calculate tracer cell face open areas |
C Calculate tracer cell face open areas |
255 |
DO j=1-OLy,sNy+OLy |
DO j=1-OLy,sNy+OLy |
256 |
DO i=1-OLx,sNx+OLx |
DO i=1-OLx,sNx+OLx |
257 |
xA(i,j) = _dyG(i,j,bi,bj) |
xA(i,j) = _dyG(i,j,bi,bj)*deepFacC(k) |
258 |
& *drF(k)*_hFacW(i,j,k,bi,bj) |
& *drF(k)*_hFacW(i,j,k,bi,bj) |
259 |
yA(i,j) = _dxG(i,j,bi,bj) |
yA(i,j) = _dxG(i,j,bi,bj)*deepFacC(k) |
260 |
& *drF(k)*_hFacS(i,j,k,bi,bj) |
& *drF(k)*_hFacS(i,j,k,bi,bj) |
261 |
ENDDO |
ENDDO |
262 |
ENDDO |
ENDDO |
263 |
|
|
270 |
ENDDO |
ENDDO |
271 |
|
|
272 |
C Calculate velocity field "volume transports" through tracer cell faces. |
C Calculate velocity field "volume transports" through tracer cell faces. |
273 |
|
C anelastic: transports are scaled by rhoFacC (~ mass transport) |
274 |
DO j=1-OLy,sNy+OLy |
DO j=1-OLy,sNy+OLy |
275 |
DO i=1-OLx,sNx+OLx |
DO i=1-OLx,sNx+OLx |
276 |
uTrans(i,j) = uFld(i,j)*xA(i,j) |
uTrans(i,j) = uFld(i,j)*xA(i,j)*rhoFacC(k) |
277 |
vTrans(i,j) = vFld(i,j)*yA(i,j) |
vTrans(i,j) = vFld(i,j)*yA(i,j)*rhoFacC(k) |
278 |
ENDDO |
ENDDO |
279 |
ENDDO |
ENDDO |
280 |
|
|
305 |
C--- First call (k=1): compute vertical adv. flux fVerU(kUp) & fVerV(kUp) |
C--- First call (k=1): compute vertical adv. flux fVerU(kUp) & fVerV(kUp) |
306 |
IF (momAdvection.AND.k.EQ.1) THEN |
IF (momAdvection.AND.k.EQ.1) THEN |
307 |
|
|
308 |
|
#ifdef MOM_BOUNDARY_CONSERVE |
309 |
|
CALL MOM_UV_BOUNDARY( bi, bj, k, |
310 |
|
I uVel, vVel, |
311 |
|
O uBnd(1-OLx,1-OLy,k,bi,bj), |
312 |
|
O vBnd(1-OLx,1-OLy,k,bi,bj), |
313 |
|
I myTime, myIter, myThid ) |
314 |
|
#endif /* MOM_BOUNDARY_CONSERVE */ |
315 |
|
|
316 |
C- Calculate vertical transports above U & V points (West & South face): |
C- Calculate vertical transports above U & V points (West & South face): |
317 |
|
|
318 |
|
#ifdef ALLOW_AUTODIFF_TAMC |
319 |
|
# ifdef NONLIN_FRSURF |
320 |
|
# ifndef DISABLE_RSTAR_CODE |
321 |
|
CADJ STORE dwtransc(:,:,bi,bj) = |
322 |
|
CADJ & comlev1_bibj_k, key = imomkey, byte = isbyte |
323 |
|
CADJ STORE dwtransu(:,:,bi,bj) = |
324 |
|
CADJ & comlev1_bibj_k, key = imomkey, byte = isbyte |
325 |
|
CADJ STORE dwtransv(:,:,bi,bj) = |
326 |
|
CADJ & comlev1_bibj_k, key = imomkey, byte = isbyte |
327 |
|
# endif |
328 |
|
# endif /* NONLIN_FRSURF */ |
329 |
|
#endif /* ALLOW_AUTODIFF_TAMC */ |
330 |
CALL MOM_CALC_RTRANS( k, bi, bj, |
CALL MOM_CALC_RTRANS( k, bi, bj, |
331 |
O rTransU, rTransV, |
O rTransU, rTransV, |
332 |
I myTime, myIter, myThid) |
I myTime, myIter, myThid) |
349 |
I myTime, myIter, myThid) |
I myTime, myIter, myThid) |
350 |
ENDIF |
ENDIF |
351 |
|
|
352 |
|
#ifdef MOM_BOUNDARY_CONSERVE |
353 |
|
IF ( momAdvection .AND. k.LT.Nr ) THEN |
354 |
|
CALL MOM_UV_BOUNDARY( bi, bj, k+1, |
355 |
|
I uVel, vVel, |
356 |
|
O uBnd(1-OLx,1-OLy,k+1,bi,bj), |
357 |
|
O vBnd(1-OLx,1-OLy,k+1,bi,bj), |
358 |
|
I myTime, myIter, myThid ) |
359 |
|
ENDIF |
360 |
|
#endif /* MOM_BOUNDARY_CONSERVE */ |
361 |
|
|
362 |
IF (momViscosity) THEN |
IF (momViscosity) THEN |
363 |
CALL MOM_CALC_VISC( |
CALL MOM_CALC_VISC( |
364 |
I bi,bj,k, |
I bi,bj,k, |
375 |
IF (momAdvection) THEN |
IF (momAdvection) THEN |
376 |
C--- Calculate mean fluxes (advection) between cells for zonal flow. |
C--- Calculate mean fluxes (advection) between cells for zonal flow. |
377 |
|
|
378 |
|
#ifdef MOM_BOUNDARY_CONSERVE |
379 |
|
CALL MOM_U_ADV_UU( bi,bj,k,uTrans,uBnd(1-OLx,1-OLy,k,bi,bj), |
380 |
|
O fZon,myThid ) |
381 |
|
CALL MOM_U_ADV_VU( bi,bj,k,vTrans,uBnd(1-OLx,1-OLy,k,bi,bj), |
382 |
|
O fMer,myThid ) |
383 |
|
CALL MOM_U_ADV_WU( |
384 |
|
I bi,bj,k+1,uBnd,wVel,rTransU, |
385 |
|
O fVerU(1-OLx,1-OLy,kDown), myThid ) |
386 |
|
#else /* MOM_BOUNDARY_CONSERVE */ |
387 |
C-- Zonal flux (fZon is at east face of "u" cell) |
C-- Zonal flux (fZon is at east face of "u" cell) |
388 |
C Mean flow component of zonal flux -> fZon |
C Mean flow component of zonal flux -> fZon |
389 |
CALL MOM_U_ADV_UU(bi,bj,k,uTrans,uFld,fZon,myThid) |
CALL MOM_U_ADV_UU(bi,bj,k,uTrans,uFld,fZon,myThid) |
397 |
CALL MOM_U_ADV_WU( |
CALL MOM_U_ADV_WU( |
398 |
I bi,bj,k+1,uVel,wVel,rTransU, |
I bi,bj,k+1,uVel,wVel,rTransU, |
399 |
O fVerU(1-OLx,1-OLy,kDown), myThid ) |
O fVerU(1-OLx,1-OLy,kDown), myThid ) |
400 |
|
#endif /* MOM_BOUNDARY_CONSERVE */ |
401 |
|
|
402 |
C-- Tendency is minus divergence of the fluxes + coriolis + pressure term |
C-- Tendency is minus divergence of the fluxes + coriolis + pressure term |
403 |
DO j=jMin,jMax |
DO j=jMin,jMax |
408 |
& ( 0.5 _d 0*(rA(i,j,bi,bj)+rA(i-1,j,bi,bj)) ) |
& ( 0.5 _d 0*(rA(i,j,bi,bj)+rA(i-1,j,bi,bj)) ) |
409 |
#else |
#else |
410 |
& -_recip_hFacW(i,j,k,bi,bj)*recip_drF(k) |
& -_recip_hFacW(i,j,k,bi,bj)*recip_drF(k) |
411 |
& *recip_rAw(i,j,bi,bj) |
& *recip_rAw(i,j,bi,bj)*recip_deepFac2C(k)*recip_rhoFacC(k) |
412 |
#endif |
#endif |
413 |
& *( ( fZon(i,j ) - fZon(i-1,j) )*uDudxFac |
& *( ( fZon(i,j ) - fZon(i-1,j) )*uDudxFac |
414 |
& +( fMer(i,j+1) - fMer(i, j) )*vDudyFac |
& +( fMer(i,j+1) - fMer(i, j) )*vDudyFac |
415 |
& +(fVerU(i,j,kDown) - fVerU(i,j,kUp))*rkSign*rVelDudrFac |
& +(fVerU(i,j,kDown) - fVerU(i,j,kUp))*rkSign*rVelDudrFac |
416 |
& ) |
& ) |
417 |
ENDDO |
ENDDO |
418 |
ENDDO |
ENDDO |
464 |
C--- Calculate eddy fluxes (dissipation) between cells for zonal flow. |
C--- Calculate eddy fluxes (dissipation) between cells for zonal flow. |
465 |
|
|
466 |
C Bi-harmonic term del^2 U -> v4F |
C Bi-harmonic term del^2 U -> v4F |
467 |
IF (biharmonic) |
IF (biharmonic) |
468 |
& CALL MOM_U_DEL2U(bi,bj,k,uFld,hFacZ,v4f,myThid) |
& CALL MOM_U_DEL2U(bi,bj,k,uFld,hFacZ,v4f,myThid) |
469 |
|
|
470 |
C Laplacian and bi-harmonic terms, Zonal Fluxes -> fZon |
C Laplacian and bi-harmonic terms, Zonal Fluxes -> fZon |
482 |
ENDIF |
ENDIF |
483 |
|
|
484 |
C-- Tendency is minus divergence of the fluxes |
C-- Tendency is minus divergence of the fluxes |
485 |
|
C anelastic: hor.visc.fluxes are not scaled by rhoFac (by vert.visc.flx is) |
486 |
DO j=jMin,jMax |
DO j=jMin,jMax |
487 |
DO i=iMin,iMax |
DO i=iMin,iMax |
488 |
guDiss(i,j) = |
guDiss(i,j) = |
491 |
& ( 0.5 _d 0*(rA(i,j,bi,bj)+rA(i-1,j,bi,bj)) ) |
& ( 0.5 _d 0*(rA(i,j,bi,bj)+rA(i-1,j,bi,bj)) ) |
492 |
#else |
#else |
493 |
& -_recip_hFacW(i,j,k,bi,bj)*recip_drF(k) |
& -_recip_hFacW(i,j,k,bi,bj)*recip_drF(k) |
494 |
& *recip_rAw(i,j,bi,bj) |
& *recip_rAw(i,j,bi,bj)*recip_deepFac2C(k) |
495 |
#endif |
#endif |
496 |
& *( ( fZon(i,j ) - fZon(i-1,j) )*AhDudxFac |
& *( ( fZon(i,j ) - fZon(i-1,j) )*AhDudxFac |
497 |
& +( fMer(i,j+1) - fMer(i, j) )*AhDudyFac |
& +( fMer(i,j+1) - fMer(i, j) )*AhDudyFac |
498 |
& +( fVrDw(i,j) - fVrUp(i,j) )*rkSign*ArDudrFac |
& +( fVrDw(i,j) - fVrUp(i,j) )*rkSign*ArDudrFac |
499 |
|
& *recip_rhoFacC(k) |
500 |
& ) |
& ) |
501 |
ENDDO |
ENDDO |
502 |
ENDDO |
ENDDO |
510 |
ENDIF |
ENDIF |
511 |
#endif |
#endif |
512 |
|
|
513 |
C-- No-slip and drag BCs appear as body forces in cell abutting topography |
C-- No-slip and drag BCs appear as body forces in cell abutting topography |
514 |
IF (no_slip_sides) THEN |
IF (no_slip_sides) THEN |
515 |
C- No-slip BCs impose a drag at walls... |
C- No-slip BCs impose a drag at walls... |
516 |
CALL MOM_U_SIDEDRAG( |
CALL MOM_U_SIDEDRAG( |
590 |
C---- Meridional momentum equation starts here |
C---- Meridional momentum equation starts here |
591 |
|
|
592 |
IF (momAdvection) THEN |
IF (momAdvection) THEN |
593 |
|
|
594 |
|
#ifdef MOM_BOUNDARY_CONSERVE |
595 |
|
CALL MOM_V_ADV_UV( bi,bj,k,uTrans,vBnd(1-OLx,1-OLy,k,bi,bj), |
596 |
|
O fZon,myThid ) |
597 |
|
CALL MOM_V_ADV_VV( bi,bj,k,vTrans,vBnd(1-OLx,1-OLy,k,bi,bj), |
598 |
|
O fMer,myThid ) |
599 |
|
CALL MOM_V_ADV_WV( |
600 |
|
I bi,bj,k+1,vBnd,wVel,rTransV, |
601 |
|
O fVerV(1-OLx,1-OLy,kDown), myThid ) |
602 |
|
#else /* MOM_BOUNDARY_CONSERVE */ |
603 |
C--- Calculate mean fluxes (advection) between cells for meridional flow. |
C--- Calculate mean fluxes (advection) between cells for meridional flow. |
604 |
C Mean flow component of zonal flux -> fZon |
C Mean flow component of zonal flux -> fZon |
605 |
CALL MOM_V_ADV_UV(bi,bj,k,uTrans,vFld,fZon,myThid) |
CALL MOM_V_ADV_UV(bi,bj,k,uTrans,vFld,fZon,myThid) |
613 |
CALL MOM_V_ADV_WV( |
CALL MOM_V_ADV_WV( |
614 |
I bi,bj,k+1,vVel,wVel,rTransV, |
I bi,bj,k+1,vVel,wVel,rTransV, |
615 |
O fVerV(1-OLx,1-OLy,kDown), myThid ) |
O fVerV(1-OLx,1-OLy,kDown), myThid ) |
616 |
|
#endif /* MOM_BOUNDARY_CONSERVE */ |
617 |
|
|
618 |
C-- Tendency is minus divergence of the fluxes + coriolis + pressure term |
C-- Tendency is minus divergence of the fluxes + coriolis + pressure term |
619 |
DO j=jMin,jMax |
DO j=jMin,jMax |
624 |
& ( 0.5 _d 0*(_rA(i,j,bi,bj)+_rA(i,j-1,bi,bj)) ) |
& ( 0.5 _d 0*(_rA(i,j,bi,bj)+_rA(i,j-1,bi,bj)) ) |
625 |
#else |
#else |
626 |
& -_recip_hFacS(i,j,k,bi,bj)*recip_drF(k) |
& -_recip_hFacS(i,j,k,bi,bj)*recip_drF(k) |
627 |
& *recip_rAs(i,j,bi,bj) |
& *recip_rAs(i,j,bi,bj)*recip_deepFac2C(k)*recip_rhoFacC(k) |
628 |
#endif |
#endif |
629 |
& *( ( fZon(i+1,j) - fZon(i,j ) )*uDvdxFac |
& *( ( fZon(i+1,j) - fZon(i,j ) )*uDvdxFac |
630 |
& +( fMer(i, j) - fMer(i,j-1) )*vDvdyFac |
& +( fMer(i, j) - fMer(i,j-1) )*vDvdyFac |
631 |
& +(fVerV(i,j,kDown) - fVerV(i,j,kUp))*rkSign*rVelDvdrFac |
& +(fVerV(i,j,kDown) - fVerV(i,j,kUp))*rkSign*rVelDvdrFac |
632 |
& ) |
& ) |
633 |
ENDDO |
ENDDO |
634 |
ENDDO |
ENDDO |
679 |
IF (momViscosity) THEN |
IF (momViscosity) THEN |
680 |
C--- Calculate eddy fluxes (dissipation) between cells for meridional flow. |
C--- Calculate eddy fluxes (dissipation) between cells for meridional flow. |
681 |
C Bi-harmonic term del^2 V -> v4F |
C Bi-harmonic term del^2 V -> v4F |
682 |
IF (biharmonic) |
IF (biharmonic) |
683 |
& CALL MOM_V_DEL2V(bi,bj,k,vFld,hFacZ,v4f,myThid) |
& CALL MOM_V_DEL2V(bi,bj,k,vFld,hFacZ,v4f,myThid) |
684 |
|
|
685 |
C Laplacian and bi-harmonic terms, Zonal Fluxes -> fZon |
C Laplacian and bi-harmonic terms, Zonal Fluxes -> fZon |
697 |
ENDIF |
ENDIF |
698 |
|
|
699 |
C-- Tendency is minus divergence of the fluxes + coriolis + pressure term |
C-- Tendency is minus divergence of the fluxes + coriolis + pressure term |
700 |
|
C anelastic: hor.visc.fluxes are not scaled by rhoFac (by vert.visc.flx is) |
701 |
DO j=jMin,jMax |
DO j=jMin,jMax |
702 |
DO i=iMin,iMax |
DO i=iMin,iMax |
703 |
gvDiss(i,j) = |
gvDiss(i,j) = |
706 |
& ( 0.5 _d 0*(_rA(i,j,bi,bj)+_rA(i,j-1,bi,bj)) ) |
& ( 0.5 _d 0*(_rA(i,j,bi,bj)+_rA(i,j-1,bi,bj)) ) |
707 |
#else |
#else |
708 |
& -_recip_hFacS(i,j,k,bi,bj)*recip_drF(k) |
& -_recip_hFacS(i,j,k,bi,bj)*recip_drF(k) |
709 |
& *recip_rAs(i,j,bi,bj) |
& *recip_rAs(i,j,bi,bj)*recip_deepFac2C(k) |
710 |
#endif |
#endif |
711 |
& *( ( fZon(i+1,j) - fZon(i,j ) )*AhDvdxFac |
& *( ( fZon(i+1,j) - fZon(i,j ) )*AhDvdxFac |
712 |
& +( fMer(i, j) - fMer(i,j-1) )*AhDvdyFac |
& +( fMer(i, j) - fMer(i,j-1) )*AhDvdyFac |
713 |
& +( fVrDw(i,j) - fVrUp(i,j) )*rkSign*ArDvdrFac |
& +( fVrDw(i,j) - fVrUp(i,j) )*rkSign*ArDvdrFac |
714 |
|
& *recip_rhoFacC(k) |
715 |
& ) |
& ) |
716 |
ENDDO |
ENDDO |
717 |
ENDDO |
ENDDO |
725 |
ENDIF |
ENDIF |
726 |
#endif |
#endif |
727 |
|
|
728 |
C-- No-slip and drag BCs appear as body forces in cell abutting topography |
C-- No-slip and drag BCs appear as body forces in cell abutting topography |
729 |
IF (no_slip_sides) THEN |
IF (no_slip_sides) THEN |
730 |
C- No-slip BCs impose a drag at walls... |
C- No-slip BCs impose a drag at walls... |
731 |
CALL MOM_V_SIDEDRAG( |
CALL MOM_V_SIDEDRAG( |
831 |
ENDIF |
ENDIF |
832 |
|
|
833 |
C-- 3.D Coriolis term (horizontal momentum, Eastward component: -f'*w) |
C-- 3.D Coriolis term (horizontal momentum, Eastward component: -f'*w) |
834 |
IF ( nonHydrostatic.OR.quasiHydrostatic ) THEN |
IF ( use3dCoriolis ) THEN |
835 |
CALL MOM_U_CORIOLIS_NH(bi,bj,k,wVel,cf,myThid) |
CALL MOM_U_CORIOLIS_NH(bi,bj,k,wVel,cf,myThid) |
836 |
DO j=jMin,jMax |
DO j=jMin,jMax |
837 |
DO i=iMin,iMax |
DO i=iMin,iMax |