/[MITgcm]/MITgcm/pkg/layers/LAYERS.h
ViewVC logotype

Contents of /MITgcm/pkg/layers/LAYERS.h

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download)
Wed Oct 19 01:28:45 2011 UTC (12 years, 8 months ago) by dfer
Branch: MAIN
CVS Tags: checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g
Changes since 1.6: +13 -3 lines
File MIME type: text/plain
Include potential density as new coordinate (Thanks to David Munday)

1 C $Header: /u/gcmpack/MITgcm/pkg/layers/LAYERS.h,v 1.6 2010/12/16 00:56:48 dfer Exp $
2 C $Name: $
3
4 #ifdef ALLOW_LAYERS
5
6 C-- Header for LAYERS package. By Ryan Abernathey.
7 C-- For computing volume fluxes in isopyncal layers
8
9 C -- Parms
10 LOGICAL layers_MNC, layers_MDSIO, useBOLUS
11 INTEGER LAYER_nb, layers_kref
12 _RL layers_taveFreq, layers_diagFreq
13 COMMON /LAYERS_PARMS/ layers_MNC, layers_MDSIO,
14 & layers_taveFreq, layers_diagFreq,
15 & LAYER_nb, layers_kref, useBOLUS
16
17 C 3D Layers fields. The vertical dimension in these fields is nLayers,
18 C i.e. the isopycnal coordinate.
19 C
20 C layers_UFlux :: U integrated over layer (m^2/s)
21 C layers_VFlux :: V integrated over layer (m^2/s)
22 C layers_HU :: Layer thickness at the U point (m)
23 C layers_HV :: Layer thickness at the V point (m)
24
25 #ifdef LAYERS_UFLUX
26 _RL layers_UFlux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nlayers,nSx,nSy)
27 #ifdef LAYERS_THICKNESS
28 _RL layers_HU(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nlayers,nSx,nSy)
29 #endif /* LAYERS_THICKNESS */
30 COMMON /LAYERS_U/ layers_UFlux
31 #ifdef LAYERS_THICKNESS
32 & , layers_HU
33 #endif /* LAYERS_THICKNESS */
34 #endif /* LAYERS_UFLUX */
35
36 #ifdef LAYERS_VFLUX
37 _RL layers_VFlux(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nlayers,nSx,nSy)
38 #ifdef LAYERS_THICKNESS
39 _RL layers_HV(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nlayers,nSx,nSy)
40 #endif /* LAYERS_THICKNESS */
41 COMMON /LAYERS_V/ layers_VFlux
42 #ifdef LAYERS_THICKNESS
43 & , layers_HV
44 #endif /* LAYERS_THICKNESS */
45 #endif /* LAYERS_VFLUX */
46
47 #ifdef LAYERS_PRHO_REF
48 _RL prho(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
49 COMMON /LAYERS_PRHO/ prho
50 #endif
51
52 #ifdef ALLOW_TIMEAVE
53 C-- The same variables, time-averaged
54
55 C Keep track of time
56 _RL layers_TimeAve(nSx,nSy)
57 COMMON /LAYERS_TAVE/ layers_TimeAve
58
59 #ifdef LAYERS_UFLUX
60 _RL layers_UFlux_T(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nlayers,nSx,nSy)
61 #ifdef LAYERS_THICKNESS
62 _RL layers_HU_T(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nlayers,nSx,nSy)
63 #endif /* LAYERS_THICKNESS */
64 COMMON /LAYERS_U_TAVE/ layers_UFlux_T
65 #ifdef LAYERS_THICKNESS
66 & , layers_HU_T
67 #endif /* LAYERS_THICKNESS */
68 #endif /* LAYERS_UFLUX */
69
70 #ifdef LAYERS_VFLUX
71 _RL layers_VFlux_T(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nlayers,nSx,nSy)
72 #ifdef LAYERS_THICKNESS
73 _RL layers_HV_T(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nlayers,nSx,nSy)
74 #endif /* LAYERS_THICKNESS */
75 COMMON /LAYERS_V_TAVE/ layers_VFlux_T
76 #ifdef LAYERS_THICKNESS
77 & , layers_HV_T
78 #endif /* LAYERS_THICKNESS */
79 #endif /* LAYERS_VFLUX */
80
81 #ifdef LAYERS_PRHO_REF
82 _RL prho_tave(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nr,nSx,nSy)
83 COMMON /LAYERS_RPHO_TAVE/ prho_tave
84 #endif
85
86 #endif /* ALLOW_TIMEAVE */
87
88 C Isopycnal grid parameters:
89 C layers_G :: boundaries of isopycnal layers
90 C dZZf :: height of fine grid cells
91 C NZZ :: the number of levels to use in the fine grid
92 C MapIndex :: indices for mapping ZZ to Z
93 C MapFact :: factors for interpolating T(Z) to T(ZZ)
94
95 _RL layers_G(nLayers+1)
96 _RL dZZf(FineGridMax)
97 INTEGER MapIndex(FineGridMax), CellIndex(FineGridMax)
98 _RL MapFact(FineGridMax)
99 INTEGER NZZ
100 COMMON /LAYERS_VERT_GRID_I/
101 & NZZ, MapIndex, CellIndex
102 COMMON /LAYERS_VERT_GRID_R/
103 & layers_G, MapFact, dZZf
104
105
106 #endif /* ALLOW_LAYERS */

  ViewVC Help
Powered by ViewVC 1.1.22