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

Contents of /MITgcm/pkg/mom_fluxform/mom_u_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_u_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_U_XVISCFLUX
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE MOM_U_XVISCFLUX(
11 I bi,bj,k,
12 I uFld, del2u,
13 O xViscFluxU,
14 I viscAh_D,viscA4_D,
15 I myThid)
16
17 C !DESCRIPTION:
18 C Calculates the area integrated zonal viscous fluxes of U:
19 C \begin{equation*}
20 C F^x = - \frac{ \Delta y_f \Delta r_f h_c }{\Delta x_f}
21 C ( A_h \delta_i u - A_4 \delta_i \nabla^2 u )
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 uFld :: zonal flow
35 C del2u :: Laplacian of zonal flow
36 C myThid :: thread number
37 INTEGER bi,bj,k
38 _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39 _RL del2u(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
40 _RL viscAh_D(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
41 _RL viscA4_D(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42 INTEGER myThid
43
44 C !OUTPUT PARAMETERS: ==================================================
45 C xViscFluxU :: viscous fluxes
46 _RL xViscFluxU(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
47
48 C !LOCAL VARIABLES: ====================================================
49 C i,j :: loop indices
50 INTEGER I,J
51 CEOP
52
53 C - Laplacian and bi-harmonic terms
54 DO j=1-Oly,sNy+Oly-1
55 DO i=1-Olx,sNx+Olx-1
56 xViscFluxU(i,j) =
57 & _dyF(i,j,bi,bj)*drF(k)*_hFacC(i,j,k,bi,bj)
58 & *(
59 & -viscAh_D(i,j)*(uFld(i+1,j)-uFld(i,j))
60 & *cosFacU(J,bi,bj)
61 & +viscA4_D(i,j)*(del2u(i+1,j) -del2u(i,j) )
62 #ifdef COSINEMETH_III
63 & *sqcosFacU(J,bi,bj)
64 #else
65 & *cosFacU(J,bi,bj)
66 #endif
67 & )*_recip_dxF(i,j,bi,bj)
68 ENDDO
69 ENDDO
70
71 RETURN
72 END

  ViewVC Help
Powered by ViewVC 1.1.22