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

Diff of /MITgcm/pkg/mom_fluxform/mom_v_sidedrag.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_SIDEDRAG
8    
9    C !INTERFACE: ==========================================================
10        SUBROUTINE MOM_V_SIDEDRAG(        SUBROUTINE MOM_V_SIDEDRAG(
11       I        bi,bj,k,       I        bi,bj,k,
12       I        vFld, del2v, hFacZ,       I        vFld, del2v, hFacZ,
13       O        vDragTerms,       O        vDragTerms,
14       I        myThid)       I        myThid)
       IMPLICIT NONE  
 C  
 C     Calculate side drag terms for V eqn  
 C       - is not vector invariant ...  
 C  
15    
16  C     == Global variables ==  C !DESCRIPTION:
17    C Calculates the drag terms due to the no-slip condition on viscous stresses:
18    C \begin{equation*}
19    C G^v_{drag} = - \frac{2}{\Delta x_v} (A_h v - A_4 \nabla^2 v)
20    C \end{equation*}
21    
22    C !USES: ===============================================================
23          IMPLICIT NONE
24  #include "SIZE.h"  #include "SIZE.h"
25  #include "EEPARAMS.h"  #include "EEPARAMS.h"
26  #include "PARAMS.h"  #include "PARAMS.h"
27  #include "GRID.h"  #include "GRID.h"
28    
29  C     == Routine arguments ==  C !INPUT PARAMETERS: ===================================================
30    C  bi,bj                :: tile indices
31    C  k                    :: vertical level
32    C  uvld                 :: meridional flow
33    C  del2v                :: Laplacian of meridional flow
34    C  hFacZ                :: fractional open water at vorticity points
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 vDragTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy)  
40        INTEGER myThid        INTEGER myThid
41    
42  C     == Local variables ==  C !OUTPUT PARAMETERS: ==================================================
43    C  vDragTerms           :: drag term
44          _RL vDragTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
45    
46    C !LOCAL VARIABLES: ====================================================
47    C  i,j                  :: loop indices
48    C  hFacZClosedE         :: fractional open water to east
49    C  hFacZClosedW         :: fractional open water to west
50        INTEGER I,J        INTEGER I,J
51        _RS hFacZClosedE,hFacZClosedW        _RS hFacZClosedE,hFacZClosedW
52    CEOP
53    
54  C     - Laplacian  and bi-harmonic terms  C     - Laplacian  and bi-harmonic terms
55        DO j=1-Oly,sNy+Oly-1        DO j=1-Oly,sNy+Oly-1

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

  ViewVC Help
Powered by ViewVC 1.1.22