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

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

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


Revision 1.3.20.1 - (show annotations) (download)
Thu Oct 2 18:30:08 2003 UTC (20 years, 11 months ago) by adcroft
Branch: branch-genmake2
Changes since 1.3: +2 -2 lines
Mis-type CONFIG as CONF !!!

1 C $Header: /u/gcmpack/MITgcm/pkg/mom_fluxform/mom_v_yviscflux.F,v 1.3 2001/09/26 19:05:21 adcroft Exp $
2 C $Name: $
3
4 #include "MOM_FLUXFORM_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: MOM_V_YVISCFLUX
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE MOM_V_YVISCFLUX(
11 I bi,bj,k,
12 I vFld, del2v,
13 O yViscFluxV,
14 I myThid)
15
16 C !DESCRIPTION:
17 C Calculates the area integrated meridional viscous fluxes of V:
18 C \begin{equation*}
19 C F^y = - \frac{ \Delta x_f \Delta r_f h_c }{\Delta y_f}
20 C ( A_h \delta_j v - A_4 \delta_j \nabla^2 v )
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 vFld :: meridional flow
34 C del2v :: Laplacian of meridional flow
35 C myThid :: thread number
36 INTEGER bi,bj,k
37 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
38 _RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39 INTEGER myThid
40
41 C !OUTPUT PARAMETERS: ==================================================
42 C yViscFluxV :: viscous fluxes
43 _RL yViscFluxV(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
44
45 C !LOCAL VARIABLES: ====================================================
46 C i,j :: loop indices
47 INTEGER I,J
48 CEOP
49
50 C - Laplacian and bi-harmonic terms
51 DO j=1-Oly,sNy+Oly-1
52 DO i=1-Olx,sNx+Olx-1
53 yViscFluxV(i,j) =
54 & _dxF(i,j,bi,bj)*drF(k)*_hFacC(i,j,k,bi,bj)
55 & *(
56 & -viscAh*(vFld(i,j+1)-vFld(i,j))
57 #ifdef ISOTROPIC_COS_SCALING
58 & *cosFacU(J,bi,bj)
59 #endif
60 & +viscA4*(del2v(i,j+1) -del2v(i,j) )
61 #ifdef ISOTROPIC_COS_SCALING
62 #ifdef COSINEMETH_III
63 & *sqCosFacU(J,bi,bj)
64 #else
65 & *cosFacU(J,bi,bj)
66 #endif
67 #endif
68 & )*_recip_dyF(i,j,bi,bj)
69 ENDDO
70 ENDDO
71
72 RETURN
73 END

  ViewVC Help
Powered by ViewVC 1.1.22