1 |
C $Header$ |
C $Header$ |
2 |
C $Name$ |
C $Name$ |
3 |
|
|
4 |
|
#include "PACKAGES_CONFIG.h" |
5 |
#include "CPP_OPTIONS.h" |
#include "CPP_OPTIONS.h" |
6 |
|
|
7 |
SUBROUTINE MOM_VECINV( |
SUBROUTINE MOM_VECINV( |
116 |
_RL phyFac |
_RL phyFac |
117 |
_RL vForcFac |
_RL vForcFac |
118 |
_RL mtFacV |
_RL mtFacV |
|
INTEGER km1,kp1 |
|
119 |
_RL wVelBottomOverride |
_RL wVelBottomOverride |
120 |
LOGICAL bottomDragTerms |
LOGICAL bottomDragTerms |
121 |
_RL KE(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL KE(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
123 |
_RL vort3(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL vort3(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
124 |
_RL hDiv(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
_RL hDiv(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
125 |
|
|
126 |
km1=MAX(1,k-1) |
#ifdef ALLOW_AUTODIFF_TAMC |
127 |
kp1=MIN(Nr,k+1) |
C-- only the kDown part of fverU/V is set in this subroutine |
128 |
|
C-- the kUp is still required |
129 |
|
C-- In the case of mom_fluxform Kup is set as well |
130 |
|
C-- (at least in part) |
131 |
|
fVerU(1,1,kUp) = fVerU(1,1,kUp) |
132 |
|
fVerV(1,1,kUp) = fVerV(1,1,kUp) |
133 |
|
#endif |
134 |
|
|
135 |
rVelMaskOverride=1. |
rVelMaskOverride=1. |
136 |
IF ( k .EQ. 1 ) rVelMaskOverride=freeSurfFac |
IF ( k .EQ. 1 ) rVelMaskOverride=freeSurfFac |
137 |
wVelBottomOverride=1. |
wVelBottomOverride=1. |
159 |
#ifdef ALLOW_AUTODIFF_TAMC |
#ifdef ALLOW_AUTODIFF_TAMC |
160 |
strain(i,j) = 0. _d 0 |
strain(i,j) = 0. _d 0 |
161 |
tension(i,j) = 0. _d 0 |
tension(i,j) = 0. _d 0 |
|
fVerU(i,j,1) = 0. _d 0 |
|
|
fVerU(i,j,2) = 0. _d 0 |
|
|
fVerV(i,j,1) = 0. _d 0 |
|
|
fVerV(i,j,2) = 0. _d 0 |
|
162 |
#endif |
#endif |
163 |
ENDDO |
ENDDO |
164 |
ENDDO |
ENDDO |