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

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

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


Revision 1.6 - (show annotations) (download)
Mon Sep 26 15:27:11 2005 UTC (18 years, 8 months ago) by baylor
Branch: MAIN
CVS Tags: checkpoint58b_post, checkpoint57y_post, checkpoint58, checkpoint58f_post, checkpoint58d_post, checkpoint58a_post, checkpoint57z_post, checkpoint58m_post, checkpoint57t_post, checkpoint57v_post, checkpoint57y_pre, checkpoint58o_post, checkpoint58p_post, checkpoint58q_post, checkpoint58e_post, checkpoint58r_post, checkpoint58n_post, checkpint57u_post, checkpoint58k_post, checkpoint58l_post, checkpoint58g_post, checkpoint58h_post, checkpoint58j_post, checkpoint57w_post, checkpoint58i_post, checkpoint57x_post, checkpoint58c_post
Changes since 1.5: +2 -4 lines
Passing viscosities to sidedrag.

1 C $Header: /u/gcmpack/MITgcm/pkg/mom_fluxform/mom_v_xviscflux.F,v 1.5 2005/09/16 20:57:09 baylor Exp $
2 C $Name: $
3
4 #include "MOM_FLUXFORM_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: MOM_V_XVISCFLUX
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE MOM_V_XVISCFLUX(
11 I bi,bj,k,
12 I vFld, del2v, hFacZ,
13 O xViscFluxV,
14 I viscAh_Z,viscA4_Z,
15 I myThid)
16
17 C !DESCRIPTION:
18 C Calculates the area integrated zonal viscous fluxes of V:
19 C \begin{equation*}
20 C F^x = - \frac{ \Delta x_u \Delta r_f h_z }{\Delta x_v}
21 C ( A_h \delta_i v - A_4 \delta_i \nabla^2 v )
22 C \end{equation*}
23
24 C !USES: ===============================================================
25 IMPLICIT NONE
26 #include "SIZE.h"
27 #include "EEPARAMS.h"
28 #include "PARAMS.h"
29 #include "GRID.h"
30
31 C !INPUT PARAMETERS: ===================================================
32 C bi,bj :: tile indices
33 C k :: vertical level
34 C vFld :: meridional flow
35 C del2v :: Laplacian of meridional flow
36 C myThid :: thread number
37 INTEGER bi,bj,k
38 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39 _RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
40 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
41 _RL viscAh_Z(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42 _RL viscA4_Z(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43 INTEGER myThid
44
45 C !OUTPUT PARAMETERS: ==================================================
46 C xViscFluxU :: viscous fluxes
47 _RL xViscFluxV(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
48
49 C !LOCAL VARIABLES: ====================================================
50 C i,j :: loop indices
51 INTEGER I,J
52 CEOP
53
54 C - Laplacian and bi-harmonic terms
55 DO j=1-Oly,sNy+Oly
56 DO i=1-Olx+1,sNx+Olx
57 xViscFluxV(i,j) =
58 & _dyU(i,j,bi,bj)*drF(k)*hFacZ(i,j)
59 & *(
60 & -viscAh_Z(i,j)*(vFld(i,j)-vFld(i-1,j))
61 & *cosFacV(J,bi,bj)
62 & +viscA4_Z(i,j)*(del2v(i,j) -del2v(i-1,j) )
63 #ifdef COSINEMETH_III
64 & *sqcosFacV(J,bi,bj)
65 #else
66 & *cosFacV(J,bi,bj)
67 #endif
68 & )*_recip_dxV(i,j,bi,bj)
69 ENDDO
70 ENDDO
71
72 RETURN
73 END

  ViewVC Help
Powered by ViewVC 1.1.22