aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Reduction.c5
-rw-r--r--src/SetupPGF.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/src/Reduction.c b/src/Reduction.c
index 10ab2ce..aadd2d7 100644
--- a/src/Reduction.c
+++ b/src/Reduction.c
@@ -389,9 +389,12 @@ CCTK_REAL pugh_MaxVal_GF_real (pGH *pughGH, int proc, CCTK_REAL *data, int nelem
#ifdef MPI
CCTK_REAL lres;
#endif
-
+
+#if 0
+ /* FIXME What are these here for ? */
printf("res = %f\n",res);
printf("data[0] = %f %f\n",res,data[0]);
+#endif
res = data [0];
for (i = 1; i < nelems; i++)
diff --git a/src/SetupPGF.c b/src/SetupPGF.c
index b7f3a0b..af3365f 100644
--- a/src/SetupPGF.c
+++ b/src/SetupPGF.c
@@ -216,7 +216,7 @@ int EnableGFDataStorage(pGH *GH, pGF *GF) {
if (GF->storage == PUGH_STORAGE) {
printf ("WARNING: Tried to enable %s when already enabled\n",
GF->name);
- return;
+ return 1;
}
/* Set up the send buffers. Note we only do this if
@@ -356,7 +356,7 @@ int DisableGFDataStorage(pGH *GH, pGF *GF) {
if (GF->storage == PUGH_NOSTORAGE) {
printf ("Warning: Tried to disable %s when already disabled\n",
GF->name);
- return;
+ return 0;
}
if (GF->padddata) {
@@ -397,6 +397,8 @@ int DisableGFDataStorage(pGH *GH, pGF *GF) {
GF->data[0] = 0.0; /* Very important! */
#endif
GF->storage = PUGH_NOSTORAGE;
+
+ return 0;
}