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

Annotation 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.3 - (hide annotations) (download)
Wed Sep 26 19:05:21 2001 UTC (22 years, 8 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint46b_post, checkpoint46k_post, icebear2, checkpoint46c_pre, checkpoint44h_pre, release1_p12, release1_p10, release1_p16, release1_p15, release1_p11, ecco_c44_e16, checkpoint46j_post, ecco_c44_e21, ecco_c44_e26, ecco_c44_e27, ecco_c44_e24, icebear4, checkpoint44f_pre, icebear3, checkpoint46f_post, checkpoint46a_post, release1_p13_pre, checkpoint46d_pre, checkpoint46e_post, release1-branch_tutorials, release1_p14, checkpoint44g_post, checkpoint46h_pre, checkpoint44h_post, release1_p12_pre, chkpt44c_post, checkpoint44e_post, checkpoint46e_pre, ecco-branch-mod4, checkpoint43a-release1mods, ecco_c44_e22, checkpoint45d_post, checkpoint46l_pre, checkpoint46j_pre, checkpoint45b_post, checkpoint46b_pre, checkpoint46l_post, chkpt44a_pre, release1-branch-end, release1_final_v1, ecco_c44_e19, checkpoint46, ecco_c44_e20, checkpoint44, release1_p13, ecco_c44_e18, checkpoint44f_post, ecco_c44_e17, release1_p17, release1_b1, checkpoint44b_post, chkpt44d_post, checkpoint42, release1_p9, release1_p8, checkpoint43, checkpoint46g_pre, release1_p2, release1_p3, release1_p4, release1_p6, chkpt44a_post, checkpoint44b_pre, release1_p1, checkpoint46a_pre, ecco-branch-mod1, checkpoint45c_post, release1_p5, checkpoint44e_pre, chkpt44c_pre, release1_p7, ecco_ice2, ecco_ice1, checkpoint46d_post, ecco-branch-mod2, checkpoint46g_post, checkpoint45a_post, ecco-branch-mod3, ecco-branch-mod5, checkpoint46i_post, release1_beta1, ecco_c44_e23, release1-branch_branchpoint, checkpoint46c_post, checkpoint45, checkpoint46h_post, release1_chkpt44d_post, ecco_c44_e25, icebear5, checkpoint41
Branch point for: c24_e25_ice, ecco-branch, release1_coupled, icebear, release1_final, release1-branch, release1, release1_50yr
Changes since 1.2: +28 -12 lines
Added comments in form compatible with "protex".

1 adcroft 1.3 C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_fluxform/mom_v_metric_nh.F,v 1.2 2001/05/29 14:01:38 adcroft Exp $
2     C $Name: $
3 adcroft 1.2
4     #include "CPP_OPTIONS.h"
5    
6 adcroft 1.3 CBOP
7     C !ROUTINE: MOM_V_METRIC_NH
8    
9     C !INTERFACE: ==========================================================
10 adcroft 1.2 SUBROUTINE MOM_V_METRIC_NH(
11     I bi,bj,k,
12     I vFld,wFld,
13     O vMetricTerms,
14     I myThid)
15 adcroft 1.3
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 adcroft 1.2 IMPLICIT NONE
24     #include "SIZE.h"
25     #include "EEPARAMS.h"
26     #include "PARAMS.h"
27     #include "GRID.h"
28    
29 adcroft 1.3 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 adcroft 1.2 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 adcroft 1.3 INTEGER myThid
39    
40     C !OUTPUT PARAMETERS: ==================================================
41     C vMetricTerms :: metric term
42 adcroft 1.2 _RL vMetricTerms(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43    
44 adcroft 1.3 C !LOCAL VARIABLES: ====================================================
45     C i,j :: loop indices
46     INTEGER i,j,Kp1
47 adcroft 1.2 _RL wVelBottomOverride
48 adcroft 1.3 CEOP
49 adcroft 1.2
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
61     ENDDO
62     ENDDO
63    
64     RETURN
65     END

  ViewVC Help
Powered by ViewVC 1.1.22