1 |
C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/Attic/mom_v_yviscflux.F,v 1.1.2.1 2001/03/28 19:51:15 adcroft Exp $ |
2 |
C $Name: pre38-close $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
SUBROUTINE MOM_V_YVISCFLUX( |
7 |
I bi,bj,k, |
8 |
I vFld, del2v, |
9 |
O yViscFluxV, |
10 |
I myThid) |
11 |
IMPLICIT NONE |
12 |
C |
13 |
C Calculate viscous flux in Y direction for V eqn |
14 |
C - is not vector invariant ... |
15 |
C |
16 |
|
17 |
C == Global variables == |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "PARAMS.h" |
21 |
#include "GRID.h" |
22 |
|
23 |
C == Routine arguments == |
24 |
INTEGER bi,bj,k |
25 |
_RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
26 |
_RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
27 |
_RL yViscFluxV(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
28 |
INTEGER myThid |
29 |
|
30 |
C == Local variables == |
31 |
INTEGER I,J |
32 |
|
33 |
C - Laplacian and bi-harmonic terms |
34 |
DO j=1-Oly,sNy+Oly-1 |
35 |
DO i=1-Olx,sNx+Olx-1 |
36 |
yViscFluxV(i,j) = |
37 |
& _dxF(i,j,bi,bj)*drF(k)*_hFacC(i,j,k,bi,bj) |
38 |
& *( |
39 |
& -viscAh*(vFld(i,j+1)-vFld(i,j)) |
40 |
#ifdef ISOTROPIC_COS_SCALING |
41 |
& *cosFacU(J,bi,bj) |
42 |
#endif |
43 |
& +viscA4*(del2v(i,j+1) -del2v(i,j) ) |
44 |
#ifdef ISOTROPIC_COS_SCALING |
45 |
#ifdef COSINEMETH_III |
46 |
& *sqCosFacU(J,bi,bj) |
47 |
#else |
48 |
& *cosFacU(J,bi,bj) |
49 |
#endif |
50 |
#endif |
51 |
& )*_recip_dyF(i,j,bi,bj) |
52 |
ENDDO |
53 |
ENDDO |
54 |
|
55 |
RETURN |
56 |
END |