/[MITgcm]/MITgcm/pkg/mom_common/mom_u_coriolis_nh.F
ViewVC logotype

Annotation of /MITgcm/pkg/mom_common/mom_u_coriolis_nh.F

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


Revision 1.3 - (hide annotations) (download)
Tue Mar 16 00:20:14 2010 UTC (14 years, 6 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint63, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, HEAD
Changes since 1.2: +2 -2 lines
avoid unbalanced quote (single or double) in commented line

1 jmc 1.3 C $Header: /u/gcmpack/MITgcm/pkg/mom_common/mom_u_coriolis_nh.F,v 1.2 2007/03/12 23:54:26 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "MOM_COMMON_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: MOM_U_CORIOLIS_NH
8    
9     C !INTERFACE: ==========================================================
10     SUBROUTINE MOM_U_CORIOLIS_NH(
11     I bi,bj,k,wFld,
12     O uCoriolisTerm,
13     I myThid )
14    
15     C !DESCRIPTION:
16     C Calculates the 3.D Coriolis term in the zonal momentum equation:
17     C \begin{equation*}
18 jmc 1.3 C - \overline{ f_prime \overline{w}^{k} }^{i}
19 jmc 1.1 C \end{equation*}
20     C consistent with Non-Hydrostatic (or quasi-hydrostatic) formulation
21    
22     C !USES: ===============================================================
23     IMPLICIT NONE
24     #include "SIZE.h"
25     #include "EEPARAMS.h"
26     #include "PARAMS.h"
27     #include "GRID.h"
28    
29     C !INPUT PARAMETERS: ===================================================
30     C bi,bj :: tile indices
31     C k :: vertical level
32     C wFld :: vertical flow
33     C myThid :: thread number
34 jmc 1.2 INTEGER bi,bj,k
35 jmc 1.1 _RL wFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
36     INTEGER myThid
37    
38     C !OUTPUT PARAMETERS: ==================================================
39     C uCoriolisTerm :: Coriolis term
40     _RL uCoriolisTerm(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
41    
42     C !LOCAL VARIABLES: ====================================================
43     C i,j :: loop indices
44     INTEGER i,j,kp1
45     _RL wMsk
46     CEOP
47    
48    
49     kp1=min(k+1,Nr)
50     wMsk=1.
51     IF (k.EQ.Nr) wMsk=0.
52    
53     C Energy conserving discretization of 2*Omega*cos(phi)*w
54     DO j=1-Oly,sNy+Oly
55     DO i=2-Olx,sNx+Olx
56     uCoriolisTerm(i,j) =
57     & 0.5*( fCoriCos( i ,j,bi,bj)*angleCosC( i ,j,bi,bj)
58 jmc 1.2 & *0.5*( wFld( i ,j, k ,bi,bj)*rVel2wUnit( k )
59     & +wFld( i ,j,kp1,bi,bj)*rVel2wUnit(kp1)*wMsk )
60 jmc 1.1 & + fCoriCos(i-1,j,bi,bj)*angleCosC(i-1,j,bi,bj)
61 jmc 1.2 & *0.5*( wFld(i-1,j, k ,bi,bj)*rVel2wUnit( k )
62     & +wFld(i-1,j,kp1,bi,bj)*rVel2wUnit(kp1)*wMsk )
63     & )*gravitySign
64 jmc 1.1 ENDDO
65     ENDDO
66    
67     RETURN
68     END

  ViewVC Help
Powered by ViewVC 1.1.22