diff options
author | tradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb> | 2005-01-25 14:23:16 +0000 |
---|---|---|
committer | tradke <tradke@d60812e6-3970-4df4-986e-c251b06effeb> | 2005-01-25 14:23:16 +0000 |
commit | bb7cd90b874b4b55631d7a8c6da536c4e0417223 (patch) | |
tree | f535e300364d7f3dde3fee9778d92f6df6c1c0d9 | |
parent | d164bfdc4be5be69b9a8adf332ab572936175834 (diff) |
Fixed reduction of scalars: the wrong data pointer was used for local reductions.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@64 d60812e6-3970-4df4-986e-c251b06effeb
-rw-r--r-- | src/Reduction.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Reduction.c b/src/Reduction.c index 77476eb..1cde5c5 100644 --- a/src/Reduction.c +++ b/src/Reduction.c @@ -472,11 +472,13 @@ static int ReductionScalar (const cGH *GH, { int retval; int num_points, from, to, iterator, points_per_dim, type; + pGA *GA; const void *data; - /* get the data for the current timelevel */ - data = ((const void ***) PUGH_pGH (GH)->variables)[vindex][0]; + /* get the GA structure for the current timelevel */ + GA = ((pGA ***) PUGH_pGH (GH)->variables)[vindex][0]; + data = GA->data; from = 0; to = 1; |