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

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

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


Revision 1.6 - (show annotations) (download)
Wed Oct 15 22:53:55 2003 UTC (20 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint51k_post, checkpoint53f_post, checkpoint54a_pre, checkpoint55c_post, checkpoint53b_pre, checkpoint51l_post, checkpoint52l_pre, checkpoint52e_pre, hrcube4, hrcube5, checkpoint57g_pre, checkpoint52j_post, checkpoint51o_pre, checkpoint57f_post, checkpoint52e_post, checkpoint51n_pre, checkpoint57b_post, checkpoint52d_pre, checkpoint53c_post, checkpoint53d_post, checkpoint57f_pre, checkpoint55d_pre, checkpoint57g_post, checkpoint57a_post, checkpoint55j_post, checkpoint56b_post, checkpoint57h_pre, checkpoint52j_pre, checkpoint54a_post, branch-netcdf, checkpoint55h_post, checkpoint51r_post, checkpoint52b_pre, checkpoint52n_post, checkpoint54b_post, checkpoint57e_post, checkpoint54d_post, checkpoint56c_post, checkpoint54e_post, checkpoint55b_post, checkpoint57h_post, checkpoint51l_pre, checkpoint52m_post, checkpoint55, checkpoint53a_post, checkpoint55a_post, checkpoint57c_pre, checkpoint53b_post, checkpoint55g_post, checkpoint51o_post, checkpoint57d_post, checkpoint55f_post, checkpoint57i_post, checkpoint51q_post, checkpoint52l_post, checkpoint52k_post, checkpoint57a_pre, checkpoint54, checkpoint57, checkpoint56, checkpoint53, checkpoint52, checkpoint52d_post, checkpoint52a_post, checkpoint57h_done, checkpoint52b_post, checkpoint53g_post, checkpoint52f_post, checkpoint52c_post, ecco_c52_e35, checkpoint54f_post, eckpoint57e_pre, checkpoint57c_post, checkpoint52a_pre, checkpoint51m_post, checkpoint51t_post, checkpoint53d_pre, checkpoint55e_post, checkpoint54c_post, checkpoint52i_post, checkpoint51p_post, checkpoint51n_post, checkpoint55i_post, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint56a_post, checkpoint51s_post, checkpoint55d_post
Branch point for: netcdf-sm0, branch-nonh, tg2-branch, checkpoint51n_branch
Changes since 1.5: +2 -2 lines
* reverse gravitySign back to "logical" value: +1 when R increases downward

1 C $Header: /u/gcmpack/MITgcm/pkg/mom_fluxform/mom_v_metric_nh.F,v 1.5 2003/10/09 04:19:20 edhill Exp $
2 C $Name: $
3
4 #include "MOM_FLUXFORM_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: MOM_V_METRIC_NH
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE MOM_V_METRIC_NH(
11 I bi,bj,k,
12 I vFld,wFld,
13 O vMetricTerms,
14 I myThid)
15
16 C !DESCRIPTION:
17 C Calculates the zonal metric term due to non-hydrostaticity on the sphere:
18 C \begin{equation}
19 C -\frac{v}{a} \overline{w}^{jk}
20 C \end{equation}
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 vFld :: merdional flow
33 C wFld :: vertical flow
34 C myThid :: thread number
35 INTEGER bi,bj,k
36 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37 _RL wFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
38 INTEGER myThid
39
40 C !OUTPUT PARAMETERS: ==================================================
41 C vMetricTerms :: metric term
42 _RL vMetricTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43
44 C !LOCAL VARIABLES: ====================================================
45 C i,j :: loop indices
46 INTEGER i,j,Kp1
47 _RL wVelBottomOverride
48 CEOP
49
50 Kp1=min(k+1,Nr)
51 wVelBottomOverride=1.
52 IF (k.EQ.Nr) wVelBottomOverride=0.
53
54 DO j=1-Olx+1,sNy+Oly
55 DO i=1-Olx,sNx+Olx
56 vMetricTerms(i,j) = vFld(i,j)*recip_RSphere
57 & *0.25*(wVelBottomOverride*
58 & (wFld(i,j,kp1,bi,bj)+wFld(i,j-1,kp1,bi,bj))
59 & +wFld(i,j, k ,bi,bj)+wFld(i,j-1, k ,bi,bj)
60 & )*rkFac*recip_horiVertRatio*gravitySign
61 ENDDO
62 ENDDO
63
64 RETURN
65 END

  ViewVC Help
Powered by ViewVC 1.1.22