aboutsummaryrefslogtreecommitdiff
path: root/src/Reduction.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Reduction.c')
-rw-r--r--src/Reduction.c6
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;