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