/[MITgcm]/MITgcm/pkg/mom_fluxform/mom_u_yviscflux.F
ViewVC logotype

Contents of /MITgcm/pkg/mom_fluxform/mom_u_yviscflux.F

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


Revision 1.1.2.1 - (show annotations) (download)
Wed Mar 28 19:51:14 2001 UTC (23 years, 2 months ago) by adcroft
Branch: pre38
CVS Tags: pre38tag1, pre38-close
Changes since 1.1: +57 -0 lines
A modularized form of calc_mom_rhs.F. This is a pre-cursor to
the vector invariant code which needs to replace many parts.
The original model/src/calc_mom_rhs.F is over-ridden by pk/mom_fluxform
but can be used using genmake -disable=mom_fluxform.

1 C $Header: $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 SUBROUTINE MOM_U_YVISCFLUX(
7 I bi,bj,k,
8 I uFld, del2u, hFacZ,
9 O yViscFluxU,
10 I myThid)
11 IMPLICIT NONE
12 C
13 C Calculate viscous flux in Y direction for U 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 uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
26 _RL del2u(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
27 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
28 _RL yViscFluxU(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+1,sNy+Oly
36 DO i=1-Olx,sNx+Olx
37 yViscFluxU(i,j) =
38 & _dxV(i,j,bi,bj)*drF(k)*hFacZ(i,j)
39 & *(
40 & -viscAh*(uFld(i,j)-uFld(i,j-1))
41 #ifdef ISOTROPIC_COS_SCALING
42 & *cosFacV(J,bi,bj)
43 #endif
44 & +viscA4*(del2u(i,j) -del2u(i,j-1) )
45 #ifdef ISOTROPIC_COS_SCALING
46 #ifdef COSINEMETH_III
47 & *sqcosFacV(J,bi,bj)
48 #else
49 & *cosFacV(J,bi,bj)
50 #endif
51 #endif
52 & )*_recip_dyU(i,j,bi,bj)
53 ENDDO
54 ENDDO
55
56 RETURN
57 END

  ViewVC Help
Powered by ViewVC 1.1.22