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

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

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


Revision 1.7 - (hide annotations) (download)
Mon Nov 26 17:15:56 2001 UTC (22 years, 6 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.6: +3 -1 lines
Missing defn on one

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

  ViewVC Help
Powered by ViewVC 1.1.22