1 |
C $Header: /u/gcmpack/MITgcm/pkg/gmredi/GMREDI.h,v 1.18 2011/02/10 21:24:19 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
#ifdef ALLOW_GMREDI |
5 |
|
6 |
C--- GM/Redi package parameters |
7 |
|
8 |
C-- Numerical Constant |
9 |
_RL op5 |
10 |
_RL op25 |
11 |
PARAMETER( op5 = 0.5 _d 0 ) |
12 |
PARAMETER( op25 = 0.25 _d 0 ) |
13 |
|
14 |
C-- COMMON /GM_PARAMS_L/ GM/Redi Logical-type parameters |
15 |
C GM_AdvForm :: use Advective Form (instead of Skew-Flux form) |
16 |
C GM_AdvSeparate :: do separately advection by Eulerian and Bolus velocity |
17 |
C GM_useBVP :: use Boundary-Value-Problem method for Bolus transport |
18 |
C GM_useSubMeso :: use parameterization of mixed layer (Sub-Mesoscale) eddies |
19 |
C GM_ExtraDiag :: select extra diagnostics |
20 |
C GM_InMomAsStress :: apply GM as a stress in momentum Eq. |
21 |
C GM_MNC :: |
22 |
C GM_MDSIO :: |
23 |
LOGICAL GM_AdvForm |
24 |
LOGICAL GM_AdvSeparate |
25 |
LOGICAL GM_useBVP |
26 |
LOGICAL GM_useSubMeso |
27 |
LOGICAL GM_ExtraDiag |
28 |
LOGICAL GM_InMomAsStress |
29 |
LOGICAL GM_MNC |
30 |
LOGICAL GM_MDSIO |
31 |
COMMON /GM_PARAMS_L/ |
32 |
& GM_AdvForm, GM_AdvSeparate, |
33 |
& GM_useBVP, GM_useSubMeso, |
34 |
& GM_ExtraDiag, GM_MNC, GM_MDSIO, |
35 |
& GM_InMomAsStress |
36 |
|
37 |
C-- GM/Redi Integer-type parameters |
38 |
C GM_BVP_modeNumber :: vertical mode number used for speed "c" in BVP transport |
39 |
INTEGER GM_BVP_modeNumber |
40 |
COMMON /GM_PARAMS_I/ |
41 |
& GM_BVP_modeNumber |
42 |
|
43 |
C-- COMMON /GM_PARAMS_C/ GM/Redi Character-type parameters |
44 |
C GM_taper_scheme :: select which tapering/clipping scheme to use |
45 |
C GM_iso2dFile :: input file for 2.D horiz scaling of Isopycnal diffusivity |
46 |
C GM_iso1dFile :: input file for 1.D vert. scaling of Isopycnal diffusivity |
47 |
C GM_bol2dFile :: input file for 2.D horiz scaling of Thickness diffusivity |
48 |
C GM_bol1dFile :: input file for 1.D vert. scaling of Thickness diffusivity |
49 |
CHARACTER*(40) GM_taper_scheme |
50 |
CHARACTER*(MAX_LEN_FNAM) GM_iso2dFile |
51 |
CHARACTER*(MAX_LEN_FNAM) GM_iso1dFile |
52 |
CHARACTER*(MAX_LEN_FNAM) GM_bol2dFile |
53 |
CHARACTER*(MAX_LEN_FNAM) GM_bol1dFile |
54 |
COMMON /GM_PARAMS_C/ |
55 |
& GM_taper_scheme, |
56 |
& GM_iso2dFile, GM_iso1dFile, |
57 |
& GM_bol2dFile, GM_bol1dFile |
58 |
|
59 |
C-- COMMON /GM_PARAMS_R/ GM/Redi real-type parameters |
60 |
C GM_isopycK :: Isopycnal diffusivity [m^2/s] (Redi-tensor) |
61 |
C GM_background_K :: Thickness diffusivity [m^2/s] (GM bolus transport) |
62 |
C GM_maxSlope :: maximum slope (tapering/clipping) [-] |
63 |
C GM_Kmin_horiz :: minimum horizontal diffusivity [m^2/s] |
64 |
C GM_Small_Number :: epsilon used in computing the slope |
65 |
C GM_slopeSqCutoff :: slope^2 cut-off value |
66 |
C- Transition layer thickness definition: |
67 |
C GM_facTrL2dz :: minimum Trans. Layer Thick. as a factor of local dz |
68 |
C GM_facTrL2ML :: maximum Trans. Layer Thick. as a factor of Mix-Layer Depth |
69 |
C GM_maxTransLay :: maximum Trans. Layer Thick. [m] |
70 |
C- Boundary-Value-Problem method parameters: |
71 |
C GM_BVP_cMin :: minimum value for wave speed parameter "c" in BVP [m/s] |
72 |
C- mixed layer (Sub-Mesoscale) eddies parameterization: |
73 |
C subMeso_Ceff :: efficiency coefficient of Mixed-Layer Eddies [-] |
74 |
C subMeso_invTau :: inverse of mixing time-scale in sub-meso parameteriz. [s^-1] |
75 |
C subMeso_LfMin :: minimum value for length-scale "Lf" [m] |
76 |
C subMeso_Lmax :: maximum horizontal grid-scale length [m] |
77 |
|
78 |
_RL GM_isopycK |
79 |
_RL GM_background_K |
80 |
_RL GM_maxSlope |
81 |
_RL GM_Kmin_horiz |
82 |
_RL GM_Small_Number |
83 |
_RL GM_slopeSqCutoff |
84 |
_RL GM_Visbeck_alpha |
85 |
_RL GM_Visbeck_length |
86 |
_RL GM_Visbeck_depth |
87 |
_RL GM_Visbeck_minDepth |
88 |
_RL GM_Visbeck_maxSlope |
89 |
_RL GM_Visbeck_minVal_K |
90 |
_RL GM_Visbeck_maxVal_K |
91 |
_RL GM_facTrL2dz |
92 |
_RL GM_facTrL2ML |
93 |
_RL GM_maxTransLay |
94 |
_RL GM_Scrit |
95 |
_RL GM_Sd |
96 |
_RL GM_BVP_cMin |
97 |
_RL subMeso_Ceff |
98 |
_RL subMeso_invTau |
99 |
_RL subMeso_LfMin |
100 |
_RS subMeso_Lmax |
101 |
COMMON /GM_PARAMS_RL/ |
102 |
& GM_isopycK, GM_background_K, |
103 |
& GM_maxSlope, |
104 |
& GM_Kmin_horiz, |
105 |
& GM_Small_Number, GM_slopeSqCutoff, |
106 |
& GM_Visbeck_alpha, GM_Visbeck_length, |
107 |
& GM_Visbeck_depth, |
108 |
& GM_Visbeck_minDepth, GM_Visbeck_maxSlope, |
109 |
& GM_Visbeck_minVal_K, GM_Visbeck_maxVal_K, |
110 |
& GM_facTrL2dz, GM_facTrL2ML, GM_maxTransLay, |
111 |
& GM_Scrit, GM_Sd, GM_BVP_cMin, |
112 |
& subMeso_Ceff, subMeso_invTau, subMeso_LfMin |
113 |
COMMON /GM_PARAMS_RS/ |
114 |
& subMeso_Lmax |
115 |
|
116 |
C-- COMMON /GM_DERIVED_PAR/ other GM/Redi parameters |
117 |
C (derived from previous block and not directly user configured) |
118 |
_RL GM_rMaxSlope |
119 |
_RL GM_skewflx |
120 |
_RL GM_advect |
121 |
_RL GM_BVP_rModeNumber |
122 |
_RL GM_BVP_cHat2Min |
123 |
COMMON /GM_DERIVED_PAR/ |
124 |
& GM_rMaxSlope, |
125 |
& GM_skewflx, GM_advect, |
126 |
& GM_BVP_rModeNumber, GM_BVP_cHat2Min |
127 |
|
128 |
|
129 |
C-- COMMON /GM_COEFFICIENTS/ GM/Redi scaling coefficients |
130 |
C defined at grid-cell center (tracer location) |
131 |
C GM_isoFac2d :: 2.D horiz scaling factor [-] of Isopycnal diffusivity |
132 |
C GM_bolFac2d :: 2.D horiz scaling factor [-] of Thickness diffusivity |
133 |
C GM_isoFac1d :: 1.D vert. scaling factor [-] of Isopycnal diffusivity |
134 |
C GM_bolFac1d :: 1.D vert. scaling factor [-] of Thickness diffusivity |
135 |
_RS GM_isoFac2d(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
136 |
_RS GM_bolFac2d(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
137 |
_RS GM_isoFac1d(Nr) |
138 |
_RS GM_bolFac1d(Nr) |
139 |
COMMON /GM_COEFFICIENTS/ |
140 |
& GM_isoFac2d, GM_bolFac2d, GM_isoFac1d, GM_bolFac1d |
141 |
|
142 |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |
143 |
C--- GM/Redi tensor elements |
144 |
|
145 |
C Bottom row of tensor corresponds to W points |
146 |
C Kwx :: K_31 element of GM/Redi tensor, X direction at W point |
147 |
C Kwy :: K_32 element of GM/Redi tensor, Y direction at W point |
148 |
C Kwz :: K_33 element of GM/Redi tensor, Z direction at W point |
149 |
_RL Kwx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
150 |
_RL Kwy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
151 |
_RL Kwz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
152 |
COMMON /GM_Wtensor/ Kwx,Kwy,Kwz |
153 |
|
154 |
#ifdef GM_NON_UNITY_DIAGONAL |
155 |
C Horizontal part of the tensor |
156 |
C Kux :: K_11 element of GM/Redi tensor, X direction at U point |
157 |
C Kvy :: K_22 element of GM/Redi tensor, Y direction at V point |
158 |
_RL Kux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
159 |
_RL Kvy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
160 |
COMMON /GM_HorTensor/ Kux,Kvy |
161 |
#else |
162 |
_RL Kux,Kvy |
163 |
PARAMETER(Kux=1.,Kvy=1.) |
164 |
#endif |
165 |
|
166 |
#ifdef GM_EXTRA_DIAGONAL |
167 |
C First/second rows of tensor corresponds to U/V points |
168 |
C Kuz :: K_13 element of GM/Redi tensor, Z direction at U point |
169 |
C Kvz :: K_23 element of GM/Redi tensor, Z direction at V point |
170 |
_RL Kuz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
171 |
_RL Kvz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
172 |
COMMON /GM_UVtensor/ Kuz,Kvz |
173 |
#else |
174 |
_RL Kuz,Kvz |
175 |
PARAMETER(Kuz=1.,Kvz=1.) |
176 |
#endif |
177 |
|
178 |
#ifdef GM_BOLUS_ADVEC |
179 |
C GM advection formulation: bolus velocities are derived from 2 |
180 |
C streamfunctions PsiX and PsiY : |
181 |
_RL GM_PsiX(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
182 |
_RL GM_PsiY(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
183 |
COMMON /GM_BOLUS/ GM_PsiX,GM_PsiY |
184 |
#endif |
185 |
|
186 |
#ifdef GM_VISBECK_VARIABLE_K |
187 |
C GM mixing/stirring coefficient (spatially variable in horizontal |
188 |
C for Visbeck et al. parameterization) |
189 |
_RL VisbeckK(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
190 |
COMMON /GM_Visbeck/ VisbeckK |
191 |
#endif |
192 |
|
193 |
#endif /* ALLOW_GMREDI */ |
194 |
|
195 |
CEH3 ;;; Local Variables: *** |
196 |
CEH3 ;;; mode:fortran *** |
197 |
CEH3 ;;; End: *** |