1 |
C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_vecinv/Attic/mom_v_sidedrag.F,v 1.1.2.1 2001/03/30 21:13:33 adcroft Exp $ |
2 |
C $Name: pre38-close $ |
3 |
|
4 |
#include "CPP_OPTIONS.h" |
5 |
|
6 |
SUBROUTINE MOM_V_SIDEDRAG( |
7 |
I bi,bj,k, |
8 |
I vFld, del2v, hFacZ, |
9 |
O vDragTerms, |
10 |
I myThid) |
11 |
IMPLICIT NONE |
12 |
C |
13 |
C Calculate side drag terms for V eqn |
14 |
C - is not vector invariant ... |
15 |
C |
16 |
|
17 |
C == Global variables == |
18 |
#include "SIZE.h" |
19 |
#include "EEPARAMS.h" |
20 |
#include "PARAMS.h" |
21 |
#include "GRID.h" |
22 |
|
23 |
C == Routine arguments == |
24 |
INTEGER bi,bj,k |
25 |
_RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
26 |
_RL del2v(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
27 |
_RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
28 |
_RL vDragTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy) |
29 |
INTEGER myThid |
30 |
|
31 |
C == Local variables == |
32 |
INTEGER I,J |
33 |
_RS hFacZClosedE,hFacZClosedW |
34 |
|
35 |
C - Laplacian and bi-harmonic terms |
36 |
DO j=1-Oly,sNy+Oly-1 |
37 |
DO i=1-Olx,sNx+Olx-1 |
38 |
hFacZClosedW = _hFacS(i,j,k,bi,bj) - hFacZ(i,j) |
39 |
hFacZClosedE = _hFacS(i,j,k,bi,bj) - hFacZ(i+1,j) |
40 |
vDragTerms(i,j) = |
41 |
& -_recip_hFacS(i,j,k,bi,bj) |
42 |
& *recip_drF(k)*recip_rAs(i,j,bi,bj) |
43 |
& *( hFacZClosedW*_dyU( i ,j,bi,bj) |
44 |
& *_recip_dxV( i ,j,bi,bj) |
45 |
& +hFacZClosedE*_dyU(i+1,j,bi,bj) |
46 |
& *_recip_dxV(i+1,j,bi,bj) ) |
47 |
& *drF(k)*2.*( |
48 |
& viscAh*vFld(i,j)*cosFacV(J,bi,bj) |
49 |
& -viscA4*del2v(i,j)*cosFacV(J,bi,bj) |
50 |
#ifdef COSINEMETH_III |
51 |
& -viscA4*del2v(i,j)*sqcosFacV(J,bi,bj) |
52 |
#else |
53 |
& -viscA4*del2v(i,j)*cosFacV(J,bi,bj) |
54 |
#endif |
55 |
& ) |
56 |
ENDDO |
57 |
ENDDO |
58 |
|
59 |
RETURN |
60 |
END |