diff options
author | eschnett <eschnett@d60812e6-3970-4df4-986e-c251b06effeb> | 2012-07-04 01:29:22 +0000 |
---|---|---|
committer | eschnett <eschnett@d60812e6-3970-4df4-986e-c251b06effeb> | 2012-07-04 01:29:22 +0000 |
commit | 2e15500a6f4763d3bb531f47c4ce8102fd401678 (patch) | |
tree | 0e80119bccf6f41379a34d6f4f450f2334c26dd7 /src/Reduction.c | |
parent | 58e21088bc6d95160321847d7cc1d8339be1289e (diff) |
Introduce cctk_ash, retire cctk_lssh
Introduce cctk_ash, describing the process-local array shape that has
been allocated. This may be larger than cctk_lsh, the process-local
shape that should be used.
Retire cctk_lssh and related infrastructure to handle staggered grid
functions.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@100 d60812e6-3970-4df4-986e-c251b06effeb
Diffstat (limited to 'src/Reduction.c')
-rw-r--r-- | src/Reduction.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Reduction.c b/src/Reduction.c index 0ea8998..02564d1 100644 --- a/src/Reduction.c +++ b/src/Reduction.c @@ -395,8 +395,8 @@ static int ReductionGA (const cGH *GH, int vindex, int proc, CCTK_REAL *outval, for (i = 0; i < GA->connectivity->dim; i++) { /* get the start- and endpoint to iterate over in this dimension */ - from[i] = GA->extras->ownership[GA->stagger[i]][0][i]; - to[i] = GA->extras->ownership[GA->stagger[i]][1][i]; + from[i] = GA->extras->ownership[0][i]; + to[i] = GA->extras->ownership[1][i]; /* get the number of points in this dimension (excluding ghostzones) */ dir_points = GA->extras->nsize[i]; @@ -404,10 +404,6 @@ static int ReductionGA (const cGH *GH, int vindex, int proc, CCTK_REAL *outval, { dir_points -= 2*GA->extras->nghostzones[i]; } - if (GA->stagger[i]) - { - dir_points--; - } /* accumulate the total number of points the reduce */ num_points *= dir_points; |