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