1 |
ifenty |
1.1 |
C $Header: /u/gcmpack/MITgcm/verification/lab_sea/code/SIZE.h_mpi,v 1.1 2003/09/10 02:25:47 edhill Exp $ |
2 |
|
|
C |
3 |
|
|
CBOP |
4 |
|
|
C !ROUTINE: SIZE.h |
5 |
|
|
C !INTERFACE: |
6 |
|
|
C include SIZE.h |
7 |
|
|
C !DESCRIPTION: \bv |
8 |
|
|
C *==========================================================* |
9 |
|
|
C | SIZE.h Declare size of underlying computational grid. |
10 |
|
|
C *==========================================================* |
11 |
|
|
C | The design here support a three-dimensional model grid |
12 |
|
|
C | with indices I,J and K. The three-dimensional domain |
13 |
|
|
C | is comprised of nPx*nSx blocks of size sNx along one axis |
14 |
|
|
C | nPy*nSy blocks of size sNy along another axis and one |
15 |
|
|
C | block of size Nz along the final axis. |
16 |
|
|
C | Blocks have overlap regions of size OLx and OLy along the |
17 |
|
|
C | dimensions that are subdivided. |
18 |
|
|
C *==========================================================* |
19 |
|
|
C \ev |
20 |
|
|
CEOP |
21 |
|
|
C Voodoo numbers controlling data layout. |
22 |
|
|
C sNx :: No. X points in sub-grid. |
23 |
|
|
C sNy :: No. Y points in sub-grid. |
24 |
|
|
C OLx :: Overlap extent in X. |
25 |
|
|
C OLy :: Overlat extent in Y. |
26 |
|
|
C nSx :: No. sub-grids in X. |
27 |
|
|
C nSy :: No. sub-grids in Y. |
28 |
|
|
C nPx :: No. of processes to use in X. |
29 |
|
|
C nPy :: No. of processes to use in Y. |
30 |
|
|
C Nx :: No. points in X for the total domain. |
31 |
|
|
C Ny :: No. points in Y for the total domain. |
32 |
|
|
C Nr :: No. points in Z for full process domain. |
33 |
|
|
INTEGER sNx |
34 |
|
|
INTEGER sNy |
35 |
|
|
INTEGER OLx |
36 |
|
|
INTEGER OLy |
37 |
|
|
INTEGER nSx |
38 |
|
|
INTEGER nSy |
39 |
|
|
INTEGER nPx |
40 |
|
|
INTEGER nPy |
41 |
|
|
INTEGER Nx |
42 |
|
|
INTEGER Ny |
43 |
|
|
INTEGER Nr |
44 |
|
|
PARAMETER ( |
45 |
|
|
& sNx = 102, |
46 |
|
|
& sNy = 41, |
47 |
|
|
& OLx = 3, |
48 |
|
|
& OLy = 3, |
49 |
|
|
& nSx = 1, |
50 |
|
|
& nSy = 1, |
51 |
|
|
& nPx = 2, |
52 |
|
|
& nPy = 1, |
53 |
|
|
& Nx = sNx*nSx*nPx, |
54 |
|
|
& Ny = sNy*nSy*nPy, |
55 |
|
|
& Nr = 23) |
56 |
|
|
|
57 |
|
|
C MAX_OLX - Set to the maximum overlap region size of any array |
58 |
|
|
C MAX_OLY that will be exchanged. Controls the sizing of exch |
59 |
|
|
C routine buufers. |
60 |
|
|
INTEGER MAX_OLX |
61 |
|
|
INTEGER MAX_OLY |
62 |
|
|
PARAMETER ( MAX_OLX = OLx, |
63 |
|
|
& MAX_OLY = OLy ) |
64 |
|
|
|