diff options
author | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 1999-06-24 11:59:47 +0000 |
---|---|---|
committer | goodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364> | 1999-06-24 11:59:47 +0000 |
commit | 8c90c44c03159a9d1aeee1074ddcfa9fcf12d7b5 (patch) | |
tree | 230d00c77da53a8ee7561c9195c08e6d551e86b6 /src | |
parent | d97cc407123ea8af5a49efbae882694571df986a (diff) |
Various chnages suggested by compilation warnings etc.
Tom
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@60 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src')
-rw-r--r-- | src/Reduction.c | 5 | ||||
-rw-r--r-- | src/SetupPGF.c | 6 |
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; } |