1 |
jmc |
1.8 |
C $Header: /u/gcmpack/MITgcm/model/inc/SURFACE.h,v 1.7 2002/11/22 02:50:34 jmc Exp $ |
2 |
jmc |
1.6 |
C $Name: $ |
3 |
jmc |
1.1 |
C |
4 |
cnh |
1.4 |
CBOP |
5 |
|
|
C !ROUTINE: SURFACE.h |
6 |
|
|
C !INTERFACE: |
7 |
|
|
C include SURFACE.h |
8 |
|
|
C !DESCRIPTION: \bv |
9 |
|
|
C *==========================================================* |
10 |
|
|
C | SURFACE.h |
11 |
|
|
C | o Header file defining surface-related model varaibles |
12 |
|
|
C *==========================================================* |
13 |
|
|
C | Contains variables relative to the surface position |
14 |
|
|
C | that are held fixed in linear free-surface formulation |
15 |
|
|
C | but can vary with time with a non-linear free-surface. |
16 |
|
|
C *==========================================================* |
17 |
|
|
C \ev |
18 |
|
|
CEOP |
19 |
jmc |
1.1 |
|
20 |
jmc |
1.7 |
C-- COMMON /SURF_FIXED/ fixed surface arrays (Real) |
21 |
|
|
C Bo_surf :: Boyancy|1/rho [ocean|atmos] at surface level [=g|alpha(p_o)] |
22 |
|
|
C recip_Bo :: 1/Bo_surf |
23 |
|
|
C topoZ :: topographic height [m] (used mainly for atmosphere) |
24 |
jmc |
1.8 |
C phi0surf :: starting point for integrating phi'_Hyd |
25 |
|
|
COMMON /SURF_FIXED/ Bo_surf, recip_Bo, topoZ, phi0surf |
26 |
jmc |
1.7 |
_RL Bo_surf (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
27 |
jmc |
1.1 |
_RL recip_Bo(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
28 |
jmc |
1.7 |
_RS topoZ (1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
29 |
jmc |
1.8 |
_RS phi0surf(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
30 |
jmc |
1.1 |
|
31 |
adcroft |
1.2 |
C-- COMMON /SURF_INDEX/ Common block for surface related index |
32 |
cnh |
1.4 |
C ksurfC :: vertical index of the surface tracer cell |
33 |
|
|
C ksurfW :: vertical index of the surface U point |
34 |
|
|
C ksurfS :: vertical index of the surface V point |
35 |
jmc |
1.3 |
C IMPORTANT: ksurfC,W,S = Nr+1 where the fluid column is empty (continent) |
36 |
|
|
COMMON /SURF_INDEX/ ksurfC, ksurfW, ksurfS |
37 |
|
|
INTEGER ksurfC(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
38 |
|
|
INTEGER ksurfW(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
39 |
|
|
INTEGER ksurfS(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
40 |
heimbach |
1.5 |
|
41 |
|
|
#ifdef EXACT_CONSERV |
42 |
|
|
C hDivFlow :: Div. Barotropic Flow at current time [transport unit m3/s] |
43 |
|
|
COMMON /EXACT_ETA_LOCAL/ hDivFlow |
44 |
|
|
_RL hDivFlow(1-Olx:sNx+Olx,1-Oly:sNy+Oly,nSx,nSy) |
45 |
|
|
#endif |
46 |
jmc |
1.3 |
|
47 |
|
|
#ifdef NONLIN_FRSURF |
48 |
|
|
C-- COMMON /SURF_CHANGE/ transient varariable used for Non-Lin Free-Surf |
49 |
cnh |
1.4 |
C hFac_surfC :: New thickness factor of the surface level |
50 |
jmc |
1.3 |
C center (Tracer point) |
51 |
cnh |
1.4 |
C hFac_surfW :: idem, West interface (U point) |
52 |
|
|
C hFac_surfS :: idem, South interface (V point) |
53 |
jmc |
1.6 |
C PmEpR :: keep the fresh water input (=-EmPmR) of the previous time step |
54 |
jmc |
1.3 |
COMMON /SURF_CHANGE/ |
55 |
jmc |
1.6 |
& hFac_surfC, hFac_surfW, hFac_surfS, |
56 |
|
|
& PmEpR |
57 |
jmc |
1.3 |
_RS hFac_surfC(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
58 |
|
|
_RS hFac_surfW(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
59 |
|
|
_RS hFac_surfS(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
60 |
jmc |
1.6 |
_RS PmEpR(1-OLx:sNx+OLx,1-OLy:sNy+OLy,nSx,nSy) |
61 |
|
|
|
62 |
jmc |
1.3 |
#endif /* NONLIN_FRSURF */ |