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

Annotation of /MITgcm/pkg/mom_common/mom_calc_tension.F

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


Revision 1.3 - (hide annotations) (download)
Wed Jul 7 14:10:42 2004 UTC (19 years, 10 months ago) by adcroft
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint57t_post, checkpoint57o_post, checkpoint58e_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint57m_post, checkpoint55c_post, checkpoint54e_post, checkpoint57s_post, checkpoint57k_post, checkpoint55d_pre, checkpoint57d_post, checkpoint57g_post, checkpoint60, checkpoint61, checkpoint62, checkpoint57b_post, checkpoint57c_pre, checkpoint58r_post, checkpoint55j_post, checkpoint56b_post, checkpoint57i_post, checkpoint57y_post, checkpoint57e_post, checkpoint55h_post, checkpoint58n_post, checkpoint58x_post, checkpoint57g_pre, checkpoint54b_post, checkpoint55b_post, checkpoint58t_post, checkpoint58h_post, checkpoint54d_post, checkpoint56c_post, checkpoint57y_pre, checkpoint55, checkpoint57f_pre, checkpoint57a_post, checkpoint58q_post, checkpoint54f_post, checkpoint57v_post, checkpoint59q, checkpoint59p, checkpoint55g_post, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint55f_post, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint57r_post, checkpoint59, checkpoint58, checkpoint57a_pre, checkpoint55i_post, checkpoint57, checkpoint56, eckpoint57e_pre, checkpoint57h_done, checkpoint58f_post, checkpoint57x_post, checkpoint57n_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint57p_post, checkpint57u_post, checkpoint57f_post, checkpoint58a_post, checkpoint58i_post, checkpoint57q_post, checkpoint58g_post, checkpoint58o_post, checkpoint57z_post, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint57c_post, checkpoint58y_post, checkpoint55e_post, checkpoint58k_post, checkpoint58v_post, checkpoint55a_post, checkpoint54c_post, checkpoint58s_post, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint58p_post, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint57j_post, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint57h_pre, checkpoint58m_post, checkpoint57l_post, checkpoint57h_post, checkpoint56a_post, checkpoint55d_post
Changes since 1.2: +5 -5 lines
Fixed indexing screw up.

1 adcroft 1.3 C $Header: /u/gcmpack/MITgcm/pkg/mom_common/mom_calc_tension.F,v 1.2 2004/05/24 18:44:27 adcroft Exp $
2 adcroft 1.2 C $Name: $
3 adcroft 1.1
4     #include "MOM_COMMON_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 adcroft 1.3 & ( dyg(i+1, j ,bi,bj)*uFld(i+1, j )
56     & -dyg( i , j ,bi,bj)*uFld( i , j )
57     & -dxg( i ,j+1,bi,bj)*vFld( i ,j+1)
58     & +dxg( i , j ,bi,bj)*vFld( i , j ) )*recip_rA(i,j,bi,bj)
59 adcroft 1.2 c & (dyf(i,j,bi,bj)*recip_dxf(i,j,bi,bj))
60     c & *( uFld(i+1, j )*recip_dyg(i+1, j ,bi,bj)
61     c & -uFld( i , j )*recip_dyg( i , j ,bi,bj) )
62     c & -(dxf(i,j,bi,bj)*recip_dyf(i,j,bi,bj))
63     c & *( vFld( i ,j+1)*recip_dxg( i ,j+1,bi,bj)
64     c & -vFld( i , j )*recip_dxg( i , j ,bi,bj) )
65 adcroft 1.1
66     ENDDO
67     ENDDO
68    
69     RETURN
70     END

  ViewVC Help
Powered by ViewVC 1.1.22