1 |
C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/mom_u_yviscflux.F,v 1.2 2001/05/29 14:01:38 adcroft Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
CBOP |
7 |
C !ROUTINE: MOM_U_YVISCFLUX |
8 |
|
9 |
C !INTERFACE: ========================================================== |
10 |
SUBROUTINE MOM_U_YVISCFLUX( |
11 |
I bi,bj,k, |
12 |
I uFld, del2u, hFacZ, |
13 |
O yViscFluxU, |
14 |
I myThid) |
15 |
|
16 |
C !DESCRIPTION: |
17 |
C Calculates the area integrated meridional viscous fluxes of U: |
18 |
C \begin{equation*} |
19 |
C F^y = - \frac{ \Delta y_v \Delta r_f h_z }{\Delta y_u} |
20 |
C ( A_h \delta_j u - A_4 \delta_j \nabla^2 u ) |
21 |
C \end{equation*} |
22 |
|
23 |
C !USES: =============================================================== |
24 |
IMPLICIT NONE |
25 |
#include "SIZE.h" |
26 |
#include "EEPARAMS.h" |
27 |
#include "PARAMS.h" |
28 |
#include "GRID.h" |
29 |
|
30 |
C !INPUT PARAMETERS: =================================================== |
31 |
C bi,bj :: tile indices |
32 |
C k :: vertical level |
33 |
C uFld :: zonal flow |
34 |
C del2u :: Laplacian of zonal flow |
35 |
C myThid :: thread number |
36 |
INTEGER bi,bj,k |
37 |
_RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
38 |
_RL del2u(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
39 |
_RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
40 |
INTEGER myThid |
41 |
|
42 |
C !OUTPUT PARAMETERS: ================================================== |
43 |
C yViscFluxU :: viscous fluxes |
44 |
_RL yViscFluxU(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
45 |
|
46 |
C !LOCAL VARIABLES: ==================================================== |
47 |
C i,j :: loop indices |
48 |
INTEGER I,J |
49 |
CEOP |
50 |
|
51 |
C - Laplacian and bi-harmonic terms |
52 |
DO j=1-Oly+1,sNy+Oly |
53 |
DO i=1-Olx,sNx+Olx |
54 |
yViscFluxU(i,j) = |
55 |
& _dxV(i,j,bi,bj)*drF(k)*hFacZ(i,j) |
56 |
& *( |
57 |
& -viscAh*(uFld(i,j)-uFld(i,j-1)) |
58 |
#ifdef ISOTROPIC_COS_SCALING |
59 |
& *cosFacV(J,bi,bj) |
60 |
#endif |
61 |
& +viscA4*(del2u(i,j) -del2u(i,j-1) ) |
62 |
#ifdef ISOTROPIC_COS_SCALING |
63 |
#ifdef COSINEMETH_III |
64 |
& *sqcosFacV(J,bi,bj) |
65 |
#else |
66 |
& *cosFacV(J,bi,bj) |
67 |
#endif |
68 |
#endif |
69 |
& )*_recip_dyU(i,j,bi,bj) |
70 |
ENDDO |
71 |
ENDDO |
72 |
|
73 |
RETURN |
74 |
END |