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

Contents of /MITgcm/pkg/mom_fluxform/mom_u_coriolis.F

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


Revision 1.6 - (show annotations) (download)
Mon Nov 26 17:15:56 2001 UTC (22 years, 5 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint47e_post, checkpoint44e_post, checkpoint46l_post, checkpoint46g_pre, checkpoint47c_post, checkpoint50c_post, checkpoint46f_post, checkpoint48e_post, checkpoint50c_pre, checkpoint44f_post, checkpoint46b_post, checkpoint43a-release1mods, checkpoint48i_post, checkpoint46l_pre, chkpt44d_post, checkpoint51, checkpoint50, checkpoint50d_post, checkpoint50b_pre, checkpoint44e_pre, checkpoint51f_post, checkpoint48b_post, checkpoint51d_post, checkpoint48c_pre, checkpoint47d_pre, checkpoint47a_post, checkpoint48d_pre, checkpoint51j_post, checkpoint47i_post, checkpoint47d_post, checkpoint46d_pre, checkpoint48d_post, release1-branch_tutorials, checkpoint48f_post, checkpoint45d_post, checkpoint46j_pre, chkpt44a_post, checkpoint44h_pre, checkpoint48h_post, checkpoint51b_pre, checkpoint46a_post, checkpoint47g_post, checkpoint46j_post, checkpoint51h_pre, checkpoint46k_post, chkpt44c_pre, checkpoint48a_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint47j_post, branch-exfmods-tag, checkpoint44g_post, branchpoint-genmake2, checkpoint46e_pre, checkpoint48c_post, checkpoint45b_post, checkpoint46b_pre, release1-branch-end, release1_final_v1, checkpoint51b_post, checkpoint51c_post, checkpoint46c_pre, checkpoint46, checkpoint47b_post, checkpoint44b_post, checkpoint46h_pre, checkpoint46m_post, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint44h_post, checkpoint46g_post, checkpoint50h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre, checkpoint47f_post, checkpoint50e_post, chkpt44a_pre, checkpoint46i_post, checkpoint46c_post, checkpoint50d_pre, checkpoint46e_post, checkpoint51e_post, checkpoint44b_pre, checkpoint47, checkpoint44, checkpoint45, checkpoint48, checkpoint49, checkpoint46h_post, checkpoint51f_pre, chkpt44c_post, checkpoint48g_post, checkpoint47h_post, checkpoint44f_pre, checkpoint51g_post, checkpoint46d_post, checkpoint50b_post, release1-branch_branchpoint, checkpoint51a_post
Branch point for: branch-exfmods-curt, release1_final, release1-branch, branch-genmake2
Changes since 1.5: +3 -1 lines
Missing defn on one

1 C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/mom_u_coriolis.F,v 1.5 2001/11/26 17:11:45 adcroft Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: MOM_U_CORIOLIS
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE MOM_U_CORIOLIS(
11 I bi,bj,k,vFld,
12 U uCoriolisTerm,
13 I myThid)
14
15 C !DESCRIPTION:
16 C Calculates the horizontal Coriolis term in the zonal equation:
17 C \begin{equation*}
18 C \overline{f}^i \overline{v}^{ij}
19 C \end{equation*}
20
21 C !USES: ===============================================================
22 IMPLICIT NONE
23 #include "SIZE.h"
24 #include "DYNVARS.h"
25 #include "EEPARAMS.h"
26 #include "PARAMS.h"
27 #include "GRID.h"
28 #include "SURFACE.h"
29
30 C !INPUT PARAMETERS: ===================================================
31 C bi,bj :: tile indices
32 C k :: vertical level
33 C vFld :: meridional flow
34 C myThid :: thread number
35 INTEGER bi,bj,K
36 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37 INTEGER myThid
38
39 C !OUTPUT PARAMETERS: ==================================================
40 C uCoriolisTerm :: Coriolis term
41 _RL uCoriolisTerm(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42
43 C !LOCAL VARIABLES: ====================================================
44 C i,j :: loop indices
45 INTEGER I,J
46 _RL one
47 PARAMETER(one=1.d0)
48 CEOP
49
50 IF (useEnergyConservingCoriolis) THEN
51 C Energy conserving discretization
52 DO j=1-Oly,sNy+Oly-1
53 DO i=1-Olx+1,sNx+Olx
54 uCoriolisTerm(i,j) =
55 & 0.5*( _fCori( i ,j,bi,bj)
56 & *0.5*( vFld( i ,j)+vFld( i ,j+1) )
57 & + _fCori(i-1,j,bi,bj)
58 & *0.5*( vFld(i-1,j)+vFld(i-1,j+1) ) )
59 ENDDO
60 ENDDO
61 ELSE
62 C Original discretization
63 DO j=1-Oly,sNy+Oly-1
64 DO i=1-Olx+1,sNx+Olx
65 uCoriolisTerm(i,j) =
66 & 0.5*( _fCori( i ,j,bi,bj) +
67 & _fCori(i-1,j,bi,bj) )
68 & *0.25*(
69 & vFld( i ,j)+vFld( i ,j+1)
70 & +vFld(i-1,j)+vFld(i-1,j+1)
71 & )
72 ENDDO
73 ENDDO
74 ENDIF
75
76 IF (useJamartWetPoints) THEN
77 C Scale term so that only "wet" points are used
78 C Due to: Jamart and Ozer, 1986, JGR 91 (C9), 10,621-10,631
79 C "Numerical Boundary Layers and Spurious Residual Flows"
80 DO j=1-Oly,sNy+Oly-1
81 DO i=1-Olx+1,sNx+Olx
82 uCoriolisTerm(i,j) = uCoriolisTerm(i,j)
83 & *4.d0/max(one, maskS( i , j ,k,bi,bj)+maskS( i ,j+1,k,bi,bj)
84 & +maskS(i-1, j ,k,bi,bj)+maskS(i-1,j+1,k,bi,bj) )
85 ENDDO
86 ENDDO
87 ENDIF
88
89 RETURN
90 END

  ViewVC Help
Powered by ViewVC 1.1.22