1 |
jmc |
1.7 |
C $Header: /u/gcmpack/MITgcm/pkg/gmredi/GMREDI.h,v 1.6 2001/12/16 18:54:49 jmc Exp $ |
2 |
jmc |
1.6 |
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 |
jmc |
1.7 |
COMMON /GM_PACKAGE/ GMREDIisON, |
12 |
|
|
& GM_AdvForm, GM_AdvSeparate, |
13 |
|
|
& GM_ExtraDiag |
14 |
adcroft |
1.1 |
|
15 |
|
|
C GM/Redi parameters |
16 |
jmc |
1.6 |
_RL GM_isopycK |
17 |
adcroft |
1.1 |
_RL GM_background_K |
18 |
|
|
_RL GM_maxSlope |
19 |
jmc |
1.6 |
_RL GM_Kmin_horiz |
20 |
adcroft |
1.1 |
_RL GM_Visbeck_alpha |
21 |
|
|
_RL GM_Visbeck_length |
22 |
|
|
_RL GM_Visbeck_depth |
23 |
|
|
_RL GM_Visbeck_maxval_K |
24 |
|
|
CHARACTER*(MAX_LEN_FNAM) GM_taper_scheme |
25 |
|
|
_RL GM_Scrit |
26 |
|
|
_RL GM_Sd |
27 |
jmc |
1.6 |
COMMON /GM_PARAMS/ GM_isopycK, GM_background_K, |
28 |
adcroft |
1.1 |
& GM_maxSlope, |
29 |
jmc |
1.6 |
& GM_Kmin_horiz, |
30 |
adcroft |
1.1 |
& GM_Visbeck_alpha, |
31 |
|
|
& GM_Visbeck_length, |
32 |
|
|
& GM_Visbeck_depth, |
33 |
|
|
& GM_Visbeck_maxval_K, |
34 |
|
|
& GM_taper_scheme, |
35 |
|
|
& GM_Scrit, |
36 |
|
|
& GM_Sd |
37 |
|
|
|
38 |
|
|
|
39 |
|
|
C More GM/Redi parameters diagnosed from previous block |
40 |
|
|
C (not directly user configured) |
41 |
|
|
_RL GM_rMaxSlope |
42 |
jmc |
1.6 |
_RL GM_skewflx |
43 |
|
|
_RL GM_advect |
44 |
|
|
COMMON /GM_PARAMS2/ GM_rMaxSlope, |
45 |
|
|
& GM_skewflx, GM_advect |
46 |
adcroft |
1.1 |
|
47 |
|
|
C GM/Redi tensor elements |
48 |
|
|
|
49 |
|
|
C Bottom row of tensor corresponds to W points |
50 |
|
|
C Kwx is K_31 element, X direction at W point |
51 |
|
|
C Kwy is K_32 element, Y direction at W point |
52 |
|
|
C Kwz is K_33 element, Z direction at W point |
53 |
heimbach |
1.3 |
_RL Kwx(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
54 |
|
|
_RL Kwy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
55 |
|
|
_RL Kwz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
56 |
adcroft |
1.1 |
COMMON /GM_Wtensor/ Kwx,Kwy,Kwz |
57 |
|
|
|
58 |
|
|
#ifdef GM_NON_UNITY_DIAGONAL |
59 |
jmc |
1.6 |
C Horizontal part of the tensor |
60 |
adcroft |
1.1 |
C Kux is K_11 element, X direction at U point |
61 |
|
|
C Kvy is K_22 element, Y direction at V point |
62 |
heimbach |
1.3 |
_RL Kux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
63 |
|
|
_RL Kvy(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
64 |
jmc |
1.6 |
COMMON /GM_HorTensor/ Kux,Kvy |
65 |
adcroft |
1.1 |
#else |
66 |
|
|
_RL Kux,Kvy |
67 |
|
|
PARAMETER(Kux=1.,Kvy=1.) |
68 |
jmc |
1.6 |
#endif |
69 |
|
|
|
70 |
|
|
#ifdef GM_EXTRA_DIAGONAL |
71 |
|
|
C First/second rows of tensor corresponds to U/V points |
72 |
|
|
C Kuz is K_13 element, Z direction at U point |
73 |
|
|
C Kvz is K_23 element, Z direction at V point |
74 |
|
|
_RL Kuz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
75 |
|
|
_RL Kvz(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
76 |
|
|
COMMON /GM_UVtensor/ Kuz,Kvz |
77 |
|
|
#else |
78 |
|
|
_RL Kuz,Kvz |
79 |
|
|
PARAMETER(Kuz=1.,Kvz=1.) |
80 |
|
|
#endif |
81 |
|
|
|
82 |
|
|
#ifdef GM_BOLUS_ADVEC |
83 |
|
|
C GM advection formulation: bolus velocities are derived from 2 |
84 |
|
|
C streamfunctions PsiX and PsiY : |
85 |
|
|
_RL GM_PsiX(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
86 |
|
|
_RL GM_PsiY(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy) |
87 |
|
|
COMMON /GM_BOLUS/ GM_PsiX,GM_PsiY |
88 |
adcroft |
1.1 |
#endif |
89 |
|
|
|
90 |
|
|
#ifdef GM_VISBECK_VARIABLE_K |
91 |
|
|
C GM mixing/stirring coefficient (spatially variable in horizontal |
92 |
|
|
C for Visbeck et al. parameterization) |
93 |
heimbach |
1.3 |
_RL VisbeckK(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
94 |
adcroft |
1.1 |
COMMON /GM_Visbeck/ VisbeckK |
95 |
|
|
#endif |
96 |
|
|
|
97 |
|
|
#endif /* ALLOW_GMREDI */ |