1 |
cnh |
1.18 |
C $Header: /u/gcmpack/models/MITgcmUV/model/inc/SIZE.h,v 1.17 1998/09/05 17:52:13 cnh Exp $ |
2 |
cnh |
1.1 |
C |
3 |
|
|
C /==========================================================\ |
4 |
|
|
C | SIZE.h Declare size of underlying computational grid. | |
5 |
|
|
C |==========================================================| |
6 |
|
|
C | The design here support a three-dimensional model grid | |
7 |
|
|
C | with indices I,J and K. The three-dimensional domain | |
8 |
|
|
C | is comprised of nPx*nSx blocks of size sNx along one axis| |
9 |
|
|
C | nPy*nSy blocks of size sNy along another axis and one | |
10 |
cnh |
1.16 |
C | block of size Nr along the final axis. | |
11 |
cnh |
1.1 |
C | Blocks have overlap regions of size OLx and OLy along the| |
12 |
|
|
C | dimensions that are subdivided. | |
13 |
|
|
C \==========================================================/ |
14 |
|
|
C Voodoo numbers controlling data layout. |
15 |
|
|
C sNx - No. X points in sub-grid. |
16 |
|
|
C sNy - No. Y points in sub-grid. |
17 |
|
|
C OLx - Overlap extent in X. |
18 |
|
|
C OLy - Overlat extent in Y. |
19 |
|
|
C nSx - No. sub-grids in X. |
20 |
|
|
C nSy - No. sub-grids in Y. |
21 |
|
|
C nPx - No. of processes to use in X. |
22 |
|
|
C nPy - No. of processes to use in Y. |
23 |
|
|
C Nx - No. points in X for the total domain. |
24 |
|
|
C Ny - No. points in Y for the total domain. |
25 |
cnh |
1.14 |
C Nr - No. points in R for full process domain. |
26 |
cnh |
1.1 |
INTEGER sNx |
27 |
|
|
INTEGER sNy |
28 |
|
|
INTEGER OLx |
29 |
|
|
INTEGER OLy |
30 |
|
|
INTEGER nSx |
31 |
|
|
INTEGER nSy |
32 |
|
|
INTEGER nPx |
33 |
|
|
INTEGER nPy |
34 |
|
|
INTEGER Nx |
35 |
|
|
INTEGER Ny |
36 |
cnh |
1.14 |
INTEGER Nr |
37 |
cnh |
1.1 |
PARAMETER ( |
38 |
adcroft |
1.12 |
& sNx = 90, |
39 |
cnh |
1.17 |
& sNy = 40, |
40 |
cnh |
1.1 |
& OLx = 3, |
41 |
|
|
& OLy = 3, |
42 |
cnh |
1.10 |
& nSx = 1, |
43 |
cnh |
1.8 |
& nSy = 1, |
44 |
cnh |
1.1 |
& nPx = 1, |
45 |
cnh |
1.17 |
& nPy = 1, |
46 |
cnh |
1.1 |
& Nx = sNx*nSx*nPx, |
47 |
|
|
& Ny = sNy*nSy*nPy, |
48 |
cnh |
1.14 |
& Nr = 20) |
49 |
cnh |
1.1 |
|
50 |
|
|
C l - Runtime global problem size in X |
51 |
|
|
C m - Runtime global problem size in Y |
52 |
cnh |
1.15 |
C n - Runtime global problem size in R |
53 |
cnh |
1.1 |
COMMON /RUNSIZ/ l, m, n |
54 |
|
|
INTEGER l |
55 |
|
|
INTEGER m |
56 |
|
|
INTEGER n |
57 |
cnh |
1.18 |
|
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 buufers. |
61 |
|
|
INTEGER MAX_OLX |
62 |
|
|
INTEGER MAX_OLY |
63 |
|
|
PARAMETER ( MAX_OLX = OLx, |
64 |
|
|
& MAX_OLY = OLy ) |
65 |
|
|
|
66 |
|
|
|