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

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

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

revision 1.2 by adcroft, Tue May 29 14:01:38 2001 UTC revision 1.3 by adcroft, Wed Sep 26 19:05:21 2001 UTC
# Line 3  C $Name$ Line 3  C $Name$
3    
4  #include "CPP_OPTIONS.h"  #include "CPP_OPTIONS.h"
5    
6    CBOP
7    C !ROUTINE: MOM_V_XVISCFLUX
8    
9    C !INTERFACE: ==========================================================
10        SUBROUTINE MOM_V_XVISCFLUX(        SUBROUTINE MOM_V_XVISCFLUX(
11       I        bi,bj,k,       I        bi,bj,k,
12       I        vFld, del2v, hFacZ,       I        vFld, del2v, hFacZ,
13       O        xViscFluxV,       O        xViscFluxV,
14       I        myThid)       I        myThid)
       IMPLICIT NONE  
 C  
 C     Calculate viscous flux in X direction for V eqn  
 C       - is not vector invariant ...  
 C  
15    
16  C     == Global variables ==  C !DESCRIPTION:
17    C Calculates the area integrated zonal viscous fluxes of V:
18    C \begin{equation*}
19    C F^x = - \frac{ \Delta x_u \Delta r_f h_z }{\Delta x_v}
20    C  ( A_h \delta_i v - A_4 \delta_i \nabla^2 v )
21    C \end{equation*}
22    
23    C !USES: ===============================================================
24          IMPLICIT NONE
25  #include "SIZE.h"  #include "SIZE.h"
26  #include "EEPARAMS.h"  #include "EEPARAMS.h"
27  #include "PARAMS.h"  #include "PARAMS.h"
28  #include "GRID.h"  #include "GRID.h"
29    
30  C     == Routine arguments ==  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        INTEGER bi,bj,k
37        _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
38        _RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39        _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)        _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
       _RL xViscFluxV(1-OLx:sNx+OLx,1-OLy:sNy+OLy)  
40        INTEGER myThid        INTEGER myThid
41    
42  C     == Local variables ==  C !OUTPUT PARAMETERS: ==================================================
43    C  xViscFluxU           :: viscous fluxes
44          _RL xViscFluxV(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
45    
46    C !LOCAL VARIABLES: ====================================================
47    C  i,j                  :: loop indices
48        INTEGER I,J        INTEGER I,J
49    CEOP
50    
51  C     - Laplacian  and bi-harmonic terms  C     - Laplacian  and bi-harmonic terms
52        DO j=1-Oly,sNy+Oly        DO j=1-Oly,sNy+Oly

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.22