/[MITgcm]/MITgcm/pkg/mom_vecinv/mom_calc_tension.F
ViewVC logotype

Contents of /MITgcm/pkg/mom_vecinv/mom_calc_tension.F

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


Revision 1.2 - (show annotations) (download)
Tue Nov 27 15:50:01 2001 UTC (22 years, 5 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint46n_post, checkpoint51k_post, checkpoint47j_post, checkpoint53b_pre, checkpoint48d_pre, checkpoint44b_post, checkpoint51j_post, branch-exfmods-tag, checkpoint47e_post, checkpoint43a-release1mods, checkpoint44h_pre, checkpoint52l_pre, checkpoint52e_pre, hrcube4, hrcube5, checkpoint52j_post, checkpoint47f_post, checkpoint47c_post, checkpoint50e_post, checkpoint52e_post, checkpoint50c_post, checkpoint46i_post, checkpoint51n_pre, checkpoint47d_post, checkpoint44f_pre, checkpoint47a_post, checkpoint46f_post, checkpoint52d_pre, checkpoint47h_post, checkpoint46d_pre, checkpoint48e_post, checkpoint46e_post, checkpoint48h_post, checkpoint48d_post, checkpoint50c_pre, release1-branch_tutorials, checkpoint46c_post, checkpoint44g_post, branchpoint-genmake2, checkpoint46h_pre, checkpoint44h_post, checkpoint44e_post, checkpoint46k_post, checkpoint52j_pre, checkpoint46e_pre, branch-netcdf, checkpoint50d_pre, checkpoint48f_post, checkpoint45d_post, checkpoint51r_post, checkpoint47i_post, checkpoint52b_pre, checkpoint52n_post, checkpoint51o_pre, checkpoint46j_pre, checkpoint45b_post, checkpoint46b_pre, checkpoint51i_post, checkpoint46j_post, checkpoint48c_post, checkpoint46l_post, chkpt44a_pre, release1-branch-end, release1_final_v1, checkpoint51e_post, checkpoint51b_post, checkpoint46, checkpoint51l_pre, checkpoint52m_post, checkpoint51c_post, checkpoint53a_post, checkpoint47d_pre, checkpoint47, checkpoint44, checkpoint48, checkpoint49, checkpoint44f_post, checkpoint47b_post, checkpoint51l_post, checkpoint48i_post, checkpoint51o_post, checkpoint46l_pre, checkpoint51f_pre, checkpoint51q_post, checkpoint52l_post, checkpoint52k_post, chkpt44d_post, checkpoint53b_post, checkpoint51, checkpoint50, checkpoint53, checkpoint52, checkpoint50d_post, checkpoint52d_post, checkpoint46g_pre, checkpoint51b_pre, checkpoint52a_post, checkpoint46a_post, checkpoint47g_post, checkpoint52b_post, chkpt44a_post, checkpoint52f_post, checkpoint44b_pre, checkpoint52c_post, checkpoint46m_post, checkpoint48a_post, checkpoint51h_pre, checkpoint46a_pre, checkpoint50g_post, checkpoint45c_post, checkpoint50b_pre, checkpoint44e_pre, checkpoint51g_post, ecco_c52_e35, checkpoint46b_post, checkpoint51f_post, checkpoint46d_post, checkpoint48b_post, checkpoint50b_post, checkpoint46g_post, checkpoint45a_post, checkpoint50f_post, checkpoint50a_post, checkpoint46c_pre, checkpoint50f_pre, checkpoint52a_pre, checkpoint51d_post, checkpoint48c_pre, release1-branch_branchpoint, checkpoint51m_post, checkpoint51t_post, checkpoint50h_post, checkpoint52i_post, checkpoint51a_post, checkpoint45, checkpoint46h_post, checkpoint50e_pre, checkpoint50i_post, checkpoint51p_post, checkpoint51n_post, checkpoint48g_post, checkpoint51i_pre, chkpt44c_pre, checkpoint52i_pre, checkpoint51u_post, checkpoint52h_pre, checkpoint52f_pre, hrcube_1, hrcube_2, hrcube_3, checkpoint51s_post, chkpt44c_post
Branch point for: netcdf-sm0, branch-genmake2, branch-exfmods-curt, branch-nonh, tg2-branch, release1_final, checkpoint51n_branch, release1-branch
Changes since 1.1: +38 -19 lines
Update comment (protex)

1 C $Header: /u/gcmpack/models/MITgcmUV/pkg/mom_vecinv/mom_calc_tension.F,v 1.1 2001/09/06 14:23:58 adcroft Exp $
2 C $Name: $
3
4 #include "CPP_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: MOM_CALC_TENSION
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE MOM_CALC_TENSION(
11 I bi,bj,k,
12 I uFld, vFld,
13 O tension,
14 I myThid)
15 C !DESCRIPTION:
16 C Calculates the tension of the horizontal flow field (at tracer points):
17 C \begin{equation*}
18 C D_T = \frac{\Delta y_f}{\Delta x_f} \delta_i \frac{u}{\Delta y_g}
19 C - \frac{\Delta x_f}{\Delta y_f} \delta_j \frac{v}{\Delta x_g}
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 uFld :: zonal flow
33 C vFld :: meridional flow
34 C myThid :: thread number
35 INTEGER bi,bj,k
36 _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
38 INTEGER myThid
39
40 C !OUTPUT PARAMETERS: ==================================================
41 C tension :: tension of horizontal flow
42 _RL tension(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
43
44 C !LOCAL VARIABLES: ====================================================
45 C i,j :: loop indices
46 INTEGER i,j
47 CEOP
48
49 DO j=1-Oly,sNy+Oly-1
50 DO i=1-Olx,sNx+Olx-1
51
52 C Calculate tension of horizontal flow (ignoring lopping factors)
53 C *NOTE* that masking is implicit in the contents of the (u,v) fields.
54 tension(i,j)=
55 & (dyf(i,j,bi,bj)*recip_dxf(i,j,bi,bj))
56 & *( uFld(i+1, j )*recip_dyg(i+1, j ,bi,bj)
57 & -uFld( i , j )*recip_dyg( i , j ,bi,bj) )
58 & -(dxf(i,j,bi,bj)*recip_dyf(i,j,bi,bj))
59 & *( vFld( i ,j+1)*recip_dxg( i ,j+1,bi,bj)
60 & -vFld( i , j )*recip_dxg( i , j ,bi,bj) )
61
62 ENDDO
63 ENDDO
64
65 RETURN
66 END

  ViewVC Help
Powered by ViewVC 1.1.22