/[MITgcm]/MITgcm/pkg/gmredi/GMREDI.h
ViewVC logotype

Contents of /MITgcm/pkg/gmredi/GMREDI.h

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


Revision 1.16 - (show annotations) (download)
Mon Oct 27 22:03:46 2008 UTC (15 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62c, checkpoint62q, checkpoint62p, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62, checkpoint62b, checkpoint61f, checkpoint61n, checkpoint61q, checkpoint61g, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.15: +10 -7 lines
File MIME type: text/plain
- add more parameters to Visbeck-variable-K :
 (GM_Visbeck_maxSlope, GM_Visbeck_minDepth, GM_Visbeck_minVal_K)

1 C $Header: /u/gcmpack/MITgcm/pkg/gmredi/GMREDI.h,v 1.15 2008/10/07 20:15:27 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-- GM/Redi Logical-type parameters
15 LOGICAL GM_AdvForm
16 LOGICAL GM_AdvSeparate
17 LOGICAL GM_ExtraDiag
18 LOGICAL GM_InMomAsStress
19 LOGICAL GM_MNC
20 LOGICAL GM_MDSIO
21 COMMON /GM_PARAMS_L/
22 & GM_AdvForm, GM_AdvSeparate,
23 & GM_ExtraDiag, GM_MNC, GM_MDSIO,
24 & GM_InMomAsStress
25
26 C-- GM/Redi Character-type parameters
27 C GM_taper_scheme :: select which tapering/clipping scheme to use
28 CHARACTER*(40) GM_taper_scheme
29 COMMON /GM_PARAMS_C/
30 & GM_taper_scheme
31
32 C-- GM/Redi real-type parameters
33 C GM_isopycK :: Isopycnal diffusivity [m^2/s] (Redi-tensor)
34 C GM_background_K :: Thickness diffusivity [m^2/s] (GM bolus transport)
35 C GM_maxSlope :: maximum slope (tapering/clipping) [-]
36 C GM_Kmin_horiz :: minimum horizontal diffusivity [m^2/s]
37 C GM_Small_Number :: epsilon used in computing the slope
38 C GM_slopeSqCutoff :: slope^2 cut-off value
39 C- transition layer thickness definition:
40 C GM_facTrL2dz :: minimum Trans. Layer Thick. as a factor of local dz
41 C GM_facTrL2ML :: maximum Trans. Layer Thick. as a factor of Mix-Layer Depth
42 C GM_maxTransLay :: maximum Trans. Layer Thick. [m]
43 _RL GM_isopycK
44 _RL GM_background_K
45 _RL GM_maxSlope
46 _RL GM_Kmin_horiz
47 _RL GM_Small_Number
48 _RL GM_slopeSqCutoff
49 _RL GM_Visbeck_alpha
50 _RL GM_Visbeck_length
51 _RL GM_Visbeck_depth
52 _RL GM_Visbeck_minDepth
53 _RL GM_Visbeck_maxSlope
54 _RL GM_Visbeck_minVal_K
55 _RL GM_Visbeck_maxVal_K
56 _RL GM_facTrL2dz
57 _RL GM_facTrL2ML
58 _RL GM_maxTransLay
59 _RL GM_Scrit
60 _RL GM_Sd
61 COMMON /GM_PARAMS_R/
62 & GM_isopycK, GM_background_K,
63 & GM_maxSlope,
64 & GM_Kmin_horiz,
65 & GM_Small_Number, GM_slopeSqCutoff,
66 & GM_Visbeck_alpha, GM_Visbeck_length,
67 & GM_Visbeck_depth,
68 & GM_Visbeck_minDepth, GM_Visbeck_maxSlope,
69 & GM_Visbeck_minVal_K, GM_Visbeck_maxVal_K,
70 & GM_facTrL2dz, GM_facTrL2ML, GM_maxTransLay,
71 & GM_Scrit, GM_Sd
72
73 C-- More GM/Redi parameters derived from previous block
74 C (not directly user configured)
75 _RL GM_rMaxSlope
76 _RL GM_skewflx
77 _RL GM_advect
78 COMMON /GM_DERIVED_PAR/
79 & GM_rMaxSlope,
80 & GM_skewflx, GM_advect
81
82 C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----|
83 C--- GM/Redi tensor elements
84
85 C Bottom row of tensor corresponds to W points
86 C Kwx is K_31 element, X direction at W point
87 C Kwy is K_32 element, Y direction at W point
88 C Kwz is K_33 element, Z direction at W point
89 _RL Kwx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
90 _RL Kwy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
91 _RL Kwz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
92 COMMON /GM_Wtensor/ Kwx,Kwy,Kwz
93
94 #ifdef GM_NON_UNITY_DIAGONAL
95 C Horizontal part of the tensor
96 C Kux is K_11 element, X direction at U point
97 C Kvy is K_22 element, Y direction at V point
98 _RL Kux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
99 _RL Kvy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
100 COMMON /GM_HorTensor/ Kux,Kvy
101 #else
102 _RL Kux,Kvy
103 PARAMETER(Kux=1.,Kvy=1.)
104 #endif
105
106 #ifdef GM_EXTRA_DIAGONAL
107 C First/second rows of tensor corresponds to U/V points
108 C Kuz is K_13 element, Z direction at U point
109 C Kvz is K_23 element, Z direction at V point
110 _RL Kuz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
111 _RL Kvz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
112 COMMON /GM_UVtensor/ Kuz,Kvz
113 #else
114 _RL Kuz,Kvz
115 PARAMETER(Kuz=1.,Kvz=1.)
116 #endif
117
118 #ifdef GM_BOLUS_ADVEC
119 C GM advection formulation: bolus velocities are derived from 2
120 C streamfunctions PsiX and PsiY :
121 _RL GM_PsiX(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
122 _RL GM_PsiY(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
123 COMMON /GM_BOLUS/ GM_PsiX,GM_PsiY
124 #endif
125
126 #ifdef GM_VISBECK_VARIABLE_K
127 C GM mixing/stirring coefficient (spatially variable in horizontal
128 C for Visbeck et al. parameterization)
129 _RL VisbeckK(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy)
130 COMMON /GM_Visbeck/ VisbeckK
131 #endif
132
133 #endif /* ALLOW_GMREDI */
134
135 CEH3 ;;; Local Variables: ***
136 CEH3 ;;; mode:fortran ***
137 CEH3 ;;; End: ***

  ViewVC Help
Powered by ViewVC 1.1.22