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

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

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


Revision 1.6 - (show annotations) (download)
Mon Sep 26 15:27:11 2005 UTC (18 years, 8 months ago) by baylor
Branch: MAIN
CVS Tags: checkpoint58l_post, checkpoint57t_post, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64t, 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, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint58r_post, checkpoint57y_post, checkpoint58n_post, checkpoint58x_post, checkpoint58t_post, checkpoint58h_post, 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, checkpint57u_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.5: +8 -13 lines
Passing viscosities to sidedrag.

1 C $Header: /u/gcmpack/MITgcm/pkg/mom_common/mom_hdissip.F,v 1.5 2005/09/20 19:43:38 baylor Exp $
2 C $Name: $
3
4 #include "MOM_COMMON_OPTIONS.h"
5
6 SUBROUTINE MOM_HDISSIP(
7 I bi,bj,k,
8 I hDiv,vort3,tension,strain,KE,
9 I hFacZ,
10 I viscAh_s,viscAh_t,viscA4_s,viscA4_t,
11 I harmonic,biharmonic,useVariableViscosity,
12 O uDissip,vDissip,
13 I myThid)
14 IMPLICIT NONE
15 C
16 C Calculate horizontal dissipation terms in terms of tension and strain
17 C
18 C Du = d/dx At Tension + d/dy As Strain
19 C Dv = d/dx As Strain - d/dy At Tension
20
21 C == Global variables ==
22 #include "SIZE.h"
23 #include "EEPARAMS.h"
24 #include "GRID.h"
25 #include "PARAMS.h"
26
27 C == Routine arguments ==
28 INTEGER bi,bj,k
29 _RL hDiv(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
30 _RL vort3(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
31 _RL tension(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
32 _RL strain(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
33 _RL KE(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
34 _RS hFacZ(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
35 _RL uDissip(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
36 _RL vDissip(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
37 _RL viscAh_s(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
38 _RL viscAh_t(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
39 _RL viscA4_s(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
40 _RL viscA4_t(1-OLx:sNx+OLx,1-OLy:sNy+OLy)
41 LOGICAL harmonic, biharmonic, useVariableViscosity
42 INTEGER myThid
43
44 C == Local variables ==
45 INTEGER I,J
46
47 C - Laplacian and bi-harmonic terms
48 IF (harmonic) THEN
49 DO j=2-Oly,sNy+Oly-1
50 DO i=2-Olx,sNx+Olx-1
51
52 uDissip(i,j) =
53 & recip_dyg(i,j,bi,bj)*recip_dyg(i,j,bi,bj)
54 & *recip_dxc(i,j,bi,bj)
55 & *(
56 & dyf( i , j ,bi,bj)*dyf( i , j ,bi,bj)
57 & *viscAh_t( i , j )*tension( i , j )
58 & -dyf(i-1, j ,bi,bj)*dyf(i-1, j ,bi,bj)
59 & *viscAh_t(i-1, j )*tension(i-1, j )
60 & )
61 & +recip_dxc(i,j,bi,bj)*recip_dxc(i,j,bi,bj)
62 & *recip_dyg(i,j,bi,bj)
63 & *(
64 & dxv( i ,j+1,bi,bj)*dxv( i ,j+1,bi,bj)
65 & *viscAh_s(i,j+1)*strain( i ,j+1)
66 & -dxv( i , j ,bi,bj)*dxv( i , j ,bi,bj)
67 & *viscAh_s(i, j )*strain( i , j )
68 & )
69
70 vDissip(i,j) =
71 & recip_dyc(i,j,bi,bj)*recip_dyc(i,j,bi,bj)
72 & *recip_dxg(i,j,bi,bj)
73 & *(
74 & dyu(i+1, j ,bi,bj)*dyu(i+1, j ,bi,bj)
75 & *viscAh_s(i+1,j)*strain(i+1,j)
76 & -dyu( i , j ,bi,bj)*dyu( i , j ,bi,bj)
77 & *viscAh_s( i ,j)*strain( i ,j)
78 & )
79 & -recip_dxg(i,j,bi,bj)*recip_dxg(i,j,bi,bj)
80 & *recip_dyc(i,j,bi,bj)
81 & *(
82 & dxf( i , j ,bi,bj)*dxf( i , j ,bi,bj)
83 & *viscAh_t(i, j )*tension(i, j )
84 & -dxf( i ,j-1,bi,bj)*dxf( i ,j-1,bi,bj)
85 & *viscAh_t(i,j-1)*tension(i,j-1)
86 & )
87
88 ENDDO
89 ENDDO
90 ENDIF
91 IF (biharmonic) THEN
92 STOP 'MOM_HDISSIP: BIHARMONIC NOT ALLOWED WITH STRAIN-TENSION'
93 ENDIF
94
95 RETURN
96 END

  ViewVC Help
Powered by ViewVC 1.1.22