aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@d60812e6-3970-4df4-986e-c251b06effeb>2012-01-10 20:28:05 +0000
committereschnett <eschnett@d60812e6-3970-4df4-986e-c251b06effeb>2012-01-10 20:28:05 +0000
commit83d552033ae8c1b7efbae266c6118610421ae2c8 (patch)
tree6a02837bd61bc1f573cd3c9f1ba28ca050456b6d
parent905e7cdc5fe646d0d326f23b0372d29c0b0d94b8 (diff)
Avoid segfault when not using MPI
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHReduce/trunk@97 d60812e6-3970-4df4-986e-c251b06effeb
-rw-r--r--src/ReductionAvg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ReductionAvg.c b/src/ReductionAvg.c
index e0b175e..ba5746a 100644
--- a/src/ReductionAvg.c
+++ b/src/ReductionAvg.c
@@ -324,9 +324,9 @@ static int ReductionAvg (const cGH *GH,
}
}
-#ifdef CCTK_MPI
pughGH = PUGH_pGH (GH);
+#ifdef CCTK_MPI
/* do the global reduction from the processors' local reduction results */
if (pughGH->nprocs > 1)
{