/[MITgcm]/MITgcm/pkg/mom_vecinv/mom_vi_v_xviscflux.F
ViewVC logotype

Contents of /MITgcm/pkg/mom_vecinv/mom_vi_v_xviscflux.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download)
Fri May 14 17:43:11 2004 UTC (20 years ago) by adcroft
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
FILE REMOVED
Created pkg/mom_common/
 o changed pkg_groups and pkg_depend
 o moved duplicate files in mom_vecinv and mom_fluxform to mom_common/
This is in preparation for checking in Smagorinsky and Leith type variable
viscosities.

1 C $Header: /u/gcmpack/MITgcm/pkg/mom_vecinv/mom_vi_v_xviscflux.F,v 1.2 2001/05/29 14:01:39 adcroft Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 SUBROUTINE MOM_VI_V_XVISCFLUX(
7 I bi,bj,k,
8 I vort3,del2v,hFacZ,
9 O xViscFluxV,
10 I myThid)
11 IMPLICIT NONE
12 C
13 C Calculate viscous flux in X 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 vort3(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
26 _RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
27 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
28 _RL xViscFluxV(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
29 INTEGER myThid
30
31 C == Local variables ==
32 INTEGER I,J
33
34 C - Laplacian and bi-harmonic terms
35 DO j=1-Oly,sNy+Oly
36 DO i=1-Olx+1,sNx+Olx
37 xViscFluxV(i,j) =
38 & _dyU(i,j,bi,bj)*drF(k)*hFacZ(i,j)
39 & *(-viscAh*vort3(i,j)*cosFacV(J,bi,bj)
40 #ifdef COSINEMETH_III
41 c & +viscA4*(del2v(i,j)-del2v(i-1,j))*sqcosFacV(J,bi,bj)
42 #else
43 c & +viscA4*(del2v(i,j)-del2v(i-1,j))*cosFacV(J,bi,bj)
44 #endif
45 c & *_recip_dxV(i,j,bi,bj) )
46 & )
47 ENDDO
48 ENDDO
49
50 RETURN
51 END

  ViewVC Help
Powered by ViewVC 1.1.22