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

Annotation of /MITgcm/pkg/mom_fluxform/mom_u_sidedrag.F

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


Revision 1.2 - (hide annotations) (download)
Tue May 29 14:01:38 2001 UTC (23 years, 1 month ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint40pre1, checkpoint40pre9, checkpoint40pre2, checkpoint40pre5, checkpoint40pre6, checkpoint40pre8, checkpoint40pre4, checkpoint40pre3, checkpoint40pre7, checkpoint40
Changes since 1.1: +64 -0 lines
Merge from branch pre38:
 o essential mods for cubed sphere
 o debugged atmosphere, dynamcis + physics (aim)
 o new packages (mom_vecinv, mom_fluxform, ...)

1 adcroft 1.2 C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/Attic/mom_u_sidedrag.F,v 1.1.2.1 2001/03/28 19:51:14 adcroft Exp $
2     C $Name: pre38-close $
3    
4     #include "CPP_OPTIONS.h"
5    
6     SUBROUTINE MOM_U_SIDEDRAG(
7     I bi,bj,k,
8     I uFld, del2u, hFacZ,
9     O uDragTerms,
10     I myThid)
11     IMPLICIT NONE
12     C
13     C Calculate side drag terms for U 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 uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
26     _RL del2u(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
27     _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
28     _RL uDragTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
29     INTEGER myThid
30    
31     C == Local variables ==
32     INTEGER I,J
33     _RS hFacZClosedS,hFacZClosedN
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     hFacZClosedS = _hFacW(i,j,k,bi,bj) - hFacZ(i,j)
39     hFacZClosedN = _hFacW(i,j,k,bi,bj) - hFacZ(i,j+1)
40     uDragTerms(i,j) =
41     & -_recip_hFacW(i,j,k,bi,bj)
42     & *recip_drF(k)*recip_rAw(i,j,bi,bj)
43     & *( hFacZClosedS*_dxV(i, j ,bi,bj)
44     & *_recip_dyU(i, j ,bi,bj)
45     & +hFacZClosedN*_dxV(i,j+1,bi,bj)
46     & *_recip_dyU(i,j+1,bi,bj) )
47     & *drF(k)*2.*(
48     #ifdef ISOTROPIC_COS_SCALING
49     & viscAh*uFld(i,j)*cosFacU(J,bi,bj)
50     #ifdef COSINEMETH_III
51     & -viscA4*del2u(i,j)*sqcosFacU(J,bi,bj)
52     #else
53     & -viscA4*del2u(i,j)*cosFacU(J,bi,bj)
54     #endif
55     #else
56     & viscAh*uFld(i,j)
57     & -viscA4*del2u(i,j)
58     #endif
59     & )
60     ENDDO
61     ENDDO
62    
63     RETURN
64     END

  ViewVC Help
Powered by ViewVC 1.1.22