/[MITgcm]/MITgcm_contrib/submesoscale/code/GMREDI.h
ViewVC logotype

Contents of /MITgcm_contrib/submesoscale/code/GMREDI.h

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


Revision 1.2 - (show annotations) (download)
Fri May 30 22:13:42 2008 UTC (17 years, 1 month ago) by dimitri
Branch: MAIN
Changes since 1.1: +9 -1 lines
File MIME type: text/plain
Initial code submitted by Baylor on May 19, 2008.  See:
http://forge.csail.mit.edu/pipermail/mitgcm-devel/2008-May/003392.html

1 C $Header: /u/gcmpack/MITgcm/pkg/gmredi/GMREDI.h,v 1.13 2007/06/21 01:33:01 jmc Exp $
2 C $Name: $
3
4 #ifdef ALLOW_GMREDI
5
6 C Package flag
7 logical GMREDIisON
8 logical GM_AdvForm
9 logical GM_AdvSeparate
10 logical GM_ExtraDiag
11 logical GM_MNC
12 logical GM_MDSIO
13 COMMON /GM_PACKAGE/ GMREDIisON,
14 & GM_AdvForm, GM_AdvSeparate,
15 & GM_ExtraDiag, GM_MNC, GM_MDSIO
16
17 C GM/Redi parameters
18 C GM_Small_Number :: epsilon used in computing the slope
19 C GM_slopeSqCutoff :: slope^2 cut-off value
20 _RL GM_isopycK
21 _RL GM_background_K
22 _RL GM_maxSlope
23 _RL GM_Kmin_horiz
24 _RL GM_Small_Number
25 _RL GM_slopeSqCutoff
26 _RL GM_Visbeck_alpha
27 _RL GM_Visbeck_length
28 _RL GM_Visbeck_depth
29 _RL GM_Visbeck_maxval_K
30 CHARACTER*(40) GM_taper_scheme
31 _RL GM_Scrit
32 _RL GM_Sd
33 _RL GM_SM_Ce
34 _RL GM_SM_Lf
35 _RL GM_SM_Lmax
36 _RL GM_SM_tau
37 COMMON /GM_PARAMS/ GM_isopycK, GM_background_K,
38 & GM_maxSlope,
39 & GM_Kmin_horiz,
40 & GM_Small_Number, GM_slopeSqCutoff,
41 & GM_Visbeck_alpha,
42 & GM_Visbeck_length,
43 & GM_Visbeck_depth,
44 & GM_Visbeck_maxval_K,
45 & GM_taper_scheme,
46 & GM_Scrit,
47 & GM_Sd,
48 & GM_SM_Ce,
49 & GM_SM_Lf,
50 & GM_SM_Lmax,
51 & GM_SM_tau
52
53 _RL op5
54 _RL op25
55 PARAMETER( op5 = 0.5D0 )
56 PARAMETER( op25 = 0.25D0 )
57
58 C More GM/Redi parameters diagnosed from previous block
59 C (not directly user configured)
60 _RL GM_rMaxSlope
61 _RL GM_skewflx
62 _RL GM_advect
63 COMMON /GM_PARAMS2/ GM_rMaxSlope,
64 & GM_skewflx, GM_advect
65
66 C GM/Redi tensor elements
67
68 C Bottom row of tensor corresponds to W points
69 C Kwx is K_31 element, X direction at W point
70 C Kwy is K_32 element, Y direction at W point
71 C Kwz is K_33 element, Z direction at W point
72 _RL Kwx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
73 _RL Kwy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
74 _RL Kwz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
75 COMMON /GM_Wtensor/ Kwx,Kwy,Kwz
76
77 #ifdef GM_NON_UNITY_DIAGONAL
78 C Horizontal part of the tensor
79 C Kux is K_11 element, X direction at U point
80 C Kvy is K_22 element, Y direction at V point
81 _RL Kux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
82 _RL Kvy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
83 COMMON /GM_HorTensor/ Kux,Kvy
84 #else
85 _RL Kux,Kvy
86 PARAMETER(Kux=1.,Kvy=1.)
87 #endif
88
89 #ifdef GM_EXTRA_DIAGONAL
90 C First/second rows of tensor corresponds to U/V points
91 C Kuz is K_13 element, Z direction at U point
92 C Kvz is K_23 element, Z direction at V point
93 _RL Kuz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
94 _RL Kvz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
95 COMMON /GM_UVtensor/ Kuz,Kvz
96 #else
97 _RL Kuz,Kvz
98 PARAMETER(Kuz=1.,Kvz=1.)
99 #endif
100
101 #ifdef GM_BOLUS_ADVEC
102 C GM advection formulation: bolus velocities are derived from 2
103 C streamfunctions PsiX and PsiY :
104 _RL GM_PsiX(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
105 _RL GM_PsiY(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
106 COMMON /GM_BOLUS/ GM_PsiX,GM_PsiY
107 #endif
108
109 #ifdef GM_VISBECK_VARIABLE_K
110 C GM mixing/stirring coefficient (spatially variable in horizontal
111 C for Visbeck et al. parameterization)
112 _RL VisbeckK(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
113 COMMON /GM_Visbeck/ VisbeckK
114 #endif
115
116 #endif /* ALLOW_GMREDI */
117
118 CEH3 ;;; Local Variables: ***
119 CEH3 ;;; mode:fortran ***
120 CEH3 ;;; End: ***

  ViewVC Help
Powered by ViewVC 1.1.22