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