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

Contents of /MITgcm/pkg/mom_common/mom_calc_strain.F

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


Revision 1.4 - (show annotations) (download)
Wed Oct 12 00:58:29 2005 UTC (18 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint58l_post, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint58e_post, mitgcm_mapl_00, checkpoint58u_post, checkpoint58w_post, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint64, checkpoint65, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint57y_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, checkpoint57y_pre, checkpoint58q_post, checkpoint57v_post, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint58j_post, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint59, checkpoint58, checkpoint58f_post, checkpoint57x_post, checkpoint58d_post, checkpoint58c_post, checkpoint57w_post, checkpoint58a_post, checkpoint58i_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, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint58y_post, checkpoint58k_post, checkpoint58v_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, checkpoint61z, checkpoint61x, checkpoint61y, checkpoint58b_post, checkpoint58m_post
Changes since 1.3: +5 -4 lines
do not mask anymore vorticity & strain (in case no-slip BC are used)

1 C $Header: /u/gcmpack/MITgcm/pkg/mom_common/mom_calc_strain.F,v 1.3 2004/05/24 20:03:44 adcroft Exp $
2 C $Name: $
3
4 #include "MOM_COMMON_OPTIONS.h"
5
6 CBOP
7 C !ROUTINE: MOM_CALC_STRAIN
8
9 C !INTERFACE: ==========================================================
10 SUBROUTINE MOM_CALC_STRAIN(
11 I bi,bj,k,
12 I uFld, vFld, hFacZ,
13 O strain,
14 I myThid)
15
16 C !DESCRIPTION:
17 C Calculates the strain of the horizontal flow field (at vorticity points):
18 C \begin{equation*}
19 C D_S = \frac{\Delta y_u}{\Delta x_v} \delta_i \frac{v}{\Delta y_c}
20 C + \frac{\Delta x_v}{\Delta y_u} \delta_j \frac{u}{\Delta x_c}
21 C \end{equation*}
22 C assuming free-slip boundaries.
23
24 C !USES: ===============================================================
25 IMPLICIT NONE
26 #include "SIZE.h"
27 #include "EEPARAMS.h"
28 #include "PARAMS.h"
29 #include "GRID.h"
30
31 C !INPUT PARAMETERS: ===================================================
32 C bi,bj :: tile indices
33 C k :: vertical level
34 C uFld :: zonal flow
35 C vFld :: meridional flow
36 C hFacZ :: open-water thickness at vorticity points
37 C myThid :: thread number
38 INTEGER bi,bj,k
39 _RL uFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
40 _RL vFld(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
41 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
42 INTEGER myThid
43
44 C !OUTPUT PARAMETERS: ==================================================
45 C strain :: strain of horizontal flow
46 _RL strain(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
47
48 C !LOCAL VARIABLES: ====================================================
49 C i,j :: loop indices
50 INTEGER i,j
51 CEOP
52
53 DO J=2-Oly,sNy+Oly
54 DO I=2-Olx,sNx+Olx
55
56 C Strain of horizontal flow field (ignoring lopping factors)
57 strain(I,J)=
58 & ( dyc( i , j ,bi,bj)*vFld( i , j )
59 & -dyc(i-1, j ,bi,bj)*vFld(i-1, j )
60 & +dxc( i , j ,bi,bj)*uFld( i , j )
61 & -dxc( i ,j-1,bi,bj)*uFld( i ,j-1) )*recip_rAz(i,j,bi,bj)
62 c & dyu(I,J,bi,bj)*recip_dxv(I,J,bi,bj)*(
63 c & vFld( I , J )*recip_dyc( I , J ,bi,bj)
64 c & -vFld(I-1, J )*recip_dyc(I-1, J ,bi,bj) )
65 c & +dxv(I,J,bi,bj)*recip_dyu(I,J,bi,bj)*(
66 c & +uFld( I , J )*recip_dxc( I , J ,bi,bj)
67 c & -uFld( I ,J-1)*recip_dxc( I ,J-1,bi,bj) )
68
69 C Set strain to zero on boundaries (free-slip)
70 C mask is now applied afterwards, outside this S/R.
71 c IF (hFacZ(i,j).EQ.0.) THEN
72 c strain(I,J)=0.
73 c ENDIF
74
75 ENDDO
76 ENDDO
77
78 C Special stuff for Cubed Sphere
79 IF (useCubedSphereExchange) THEN
80 c STOP 'S/R MOM_CALC_STRAIN: We should not use strain on the cube!'
81 ENDIF
82
83 RETURN
84 END

  ViewVC Help
Powered by ViewVC 1.1.22