From bb7cd90b874b4b55631d7a8c6da536c4e0417223 Mon Sep 17 00:00:00 2001 From: tradke Date: Tue, 25 Jan 2005 14:23:16 +0000 Subject: 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 --- src/Reduction.c | 6 ++++-- 1 file 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; -- cgit v1.2.3