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