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

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

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


Revision 1.1 - (show annotations) (download)
Tue Nov 5 19:58:21 2002 UTC (21 years, 6 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint48f_post, checkpoint47j_post, checkpoint48d_pre, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint47i_post, checkpoint48i_post, checkpoint47f_post, checkpoint48d_post, checkpoint47c_post, checkpoint50e_post, checkpoint50c_post, checkpoint47d_post, checkpoint47a_post, checkpoint48a_post, checkpoint46n_post, checkpoint51f_pre, checkpoint48e_post, checkpoint48h_post, checkpoint50c_pre, branchpoint-genmake2, checkpoint50d_pre, checkpoint47h_post, checkpoint48c_post, checkpoint50b_pre, checkpoint51e_post, checkpoint51b_post, checkpoint51c_post, checkpoint48, checkpoint49, checkpoint47b_post, checkpoint48g_post, checkpoint51, checkpoint50, checkpoint50d_post, checkpoint46m_post, checkpoint51b_pre, checkpoint47g_post, checkpoint51h_pre, checkpoint50g_post, checkpoint51g_post, checkpoint51f_post, checkpoint48b_post, checkpoint50b_post, checkpoint50f_post, checkpoint50a_post, checkpoint50f_pre, checkpoint47d_pre, checkpoint51d_post, checkpoint48c_pre, checkpoint47, checkpoint50h_post, checkpoint51a_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51i_pre
Branch point for: branch-genmake2, ecco-branch, branch-exfmods-curt
Added non-hydrostatic Coriolis term to U equation
 - needs new PARAMS.h arraya fCoriCos(i,j,bi,bj)
 - new routine: mom_u_coriolis_nh()

1 C $Header: /u/gcmpack/MITgcm/pkg/mom_fluxform/mom_u_coriolis.F,v 1.6 2001/11/26 17:15:56 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_NH(
11 I bi,bj,k,wFld,
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 "EEPARAMS.h"
25 #include "PARAMS.h"
26 #include "GRID.h"
27
28 C !INPUT PARAMETERS: ===================================================
29 C bi,bj :: tile indices
30 C k :: vertical level
31 C wFld :: vertical flow
32 C myThid :: thread number
33 INTEGER bi,bj,K
34 _RL wFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
35 INTEGER myThid
36
37 C !OUTPUT PARAMETERS: ==================================================
38 C uCoriolisTerm :: Coriolis term
39 _RL uCoriolisTerm(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
40
41 C !LOCAL VARIABLES: ====================================================
42 C i,j :: loop indices
43 INTEGER i,j,kp1
44 _RL wMsk
45 CEOP
46
47
48 kp1=min(k+1,Nr)
49 wMsk=1.
50 IF (k.EQ.Nr) wMsk=0.
51
52 C Energy conserving discretization of 2*Omega*cos(phi)*w
53 DO j=1-Oly,sNy+Oly-1
54 DO i=1-Olx+1,sNx+Olx
55 uCoriolisTerm(i,j) =
56 & -0.5*( fCoriCos( i ,j,bi,bj)
57 & *0.5*( wFld( i ,j,k,bi,bj)+wFld( i ,j,kp1,bi,bj)*wMsk )
58 & + fCoriCos(i-1,j,bi,bj)
59 & *0.5*( wFld(i-1,j,k,bi,bj)+wFld(i-1,j,kp1,bi,bj)*wMsk ) )
60 & *gravitySign*recip_horiVertRatio
61 ENDDO
62 ENDDO
63
64 RETURN
65 END

  ViewVC Help
Powered by ViewVC 1.1.22