1 |
C $Header: /u/gcmpack/MITgcm/pkg/exch2/W2_EXCH2_SIZE.h,v 1.1 2009/05/12 19:40:32 jmc Exp $ |
2 |
C $Name: $ |
3 |
|
4 |
CBOP |
5 |
C !ROUTINE: W2_EXCH2_SIZE.h |
6 |
C !INTERFACE: |
7 |
C include W2_EXCH2_SIZE.h |
8 |
C !DESCRIPTION: \bv |
9 |
C *==========================================================* |
10 |
C | W2_EXCH2_SIZE.h |
11 |
C | Declare size of Wrapper2-Exch2 arrays |
12 |
C *==========================================================* |
13 |
C | Expected to be modified for unconventional configuration |
14 |
C | (e.g., many blank-tiles) or specific topology. |
15 |
C *==========================================================* |
16 |
CEOP |
17 |
|
18 |
C--- Size of Tiling topology structures |
19 |
C W2_maxNbFacets :: Maximum number of Facets (also and formerly called |
20 |
C :: "domains" or "sub-domains") of this topology. |
21 |
C W2_maxNeighbours :: Maximum number of neighbours any tile has. |
22 |
C W2_maxNbTiles :: Maximum number of tiles (active+blank) in this topology |
23 |
C W2_ioBufferSize :: Maximum size of Single-CPU IO buffer. |
24 |
INTEGER W2_maxNbFacets |
25 |
INTEGER W2_maxNeighbours |
26 |
INTEGER W2_maxNbTiles |
27 |
INTEGER W2_ioBufferSize |
28 |
INTEGER W2_maxXStackNx |
29 |
INTEGER W2_maxXStackNy |
30 |
INTEGER W2_maxYStackNx |
31 |
INTEGER W2_maxYStackNy |
32 |
|
33 |
C--- Default values : |
34 |
C (suitable for 6-face Cube-Sphere topology, compact global I/O format) |
35 |
C W2_maxNbTiles = Nb of active tiles (=nSx*nSy*nPx*nPy) + Max_Nb_BlankTiles |
36 |
C default assume a large Max_Nb_BlankTiles equal to Nb of active tiles |
37 |
C resulting in doubling the tile number. |
38 |
PARAMETER ( W2_maxNbFacets = 10 ) |
39 |
PARAMETER ( W2_maxNeighbours = 8 ) |
40 |
PARAMETER ( W2_maxNbTiles = nSx*nSy*nPx*nPy * 2 ) |
41 |
PARAMETER ( W2_ioBufferSize = W2_maxNbTiles*sNx*sNy ) |
42 |
PARAMETER ( W2_maxXStackNx = W2_maxNbTiles*sNx ) |
43 |
PARAMETER ( W2_maxXStackNy = W2_maxNbTiles*sNy ) |
44 |
PARAMETER ( W2_maxYStackNx = W2_maxNbTiles*sNx ) |
45 |
PARAMETER ( W2_maxYStackNy = W2_maxNbTiles*sNy ) |
46 |
|
47 |
C- Note: Overestimating W2_maxNbFacets and, to less extent, W2_maxNeighbours |
48 |
C have no or very little effects on memory footprint. |
49 |
C overestimated W2_maxNbTiles does not have large effect, except |
50 |
C through ioBufferSize (if related to, as here). |
51 |
C---+----1----+----2----+----3----+----4----+----5----+----6----+----7-|--+----| |