1 
C $Header: /u/gcmpack/MITgcm/verification/matrix_example/code/SIZE.h,v 1.2 2011/08/25 22:33:32 jmc Exp $ 
2 
C $Name: $ 
3 

4 
CBOP 
5 
C !ROUTINE: SIZE.h 
6 
C !INTERFACE: 
7 
C include SIZE.h 
8 
C !DESCRIPTION: \bv 
9 
C *==========================================================* 
10 
C  SIZE.h Declare size of underlying computational grid. 
11 
C *==========================================================* 
12 
C  The design here support a threedimensional model grid 
13 
C  with indices I,J and K. The threedimensional domain 
14 
C  is comprised of nPx*nSx blocks of size sNx along one axis 
15 
C  nPy*nSy blocks of size sNy along another axis and one 
16 
C  block of size Nz along the final axis. 
17 
C  Blocks have overlap regions of size OLx and OLy along the 
18 
C  dimensions that are subdivided. 
19 
C *==========================================================* 
20 
C \ev 
21 
CEOP 
22 
C Voodoo numbers controlling data layout. 
23 
C sNx :: No. X points in subgrid. 
24 
C sNy :: No. Y points in subgrid. 
25 
C OLx :: Overlap extent in X. 
26 
C OLy :: Overlat extent in Y. 
27 
C nSx :: No. subgrids in X. 
28 
C nSy :: No. subgrids in Y. 
29 
C nPx :: No. of processes to use in X. 
30 
C nPy :: No. of processes to use in Y. 
31 
C Nx :: No. points in X for the total domain. 
32 
C Ny :: No. points in Y for the total domain. 
33 
C Nr :: No. points in Z for full process domain. 
34 
INTEGER sNx 
35 
INTEGER sNy 
36 
INTEGER OLx 
37 
INTEGER OLy 
38 
INTEGER nSx 
39 
INTEGER nSy 
40 
INTEGER nPx 
41 
INTEGER nPy 
42 
INTEGER Nx 
43 
INTEGER Ny 
44 
INTEGER Nr 
45 
PARAMETER ( 
46 
& sNx = 16, 
47 
& sNy = 8, 
48 
& OLx = 3, 
49 
& OLy = 3, 
50 
& nSx = 2, 
51 
& nSy = 4, 
52 
& nPx = 1, 
53 
& nPy = 1, 
54 
& Nx = sNx*nSx*nPx, 
55 
& Ny = sNy*nSy*nPy, 
56 
& Nr = 1) 
57 

58 
C MAX_OLX :: Set to the maximum overlap region size of any array 
59 
C MAX_OLY that will be exchanged. Controls the sizing of exch 
60 
C routine buffers. 
61 
INTEGER MAX_OLX 
62 
INTEGER MAX_OLY 
63 
PARAMETER ( MAX_OLX = OLx, 
64 
& MAX_OLY = OLy ) 
65 
