summaryrefslogtreecommitdiff
path: root/src/IO
diff options
context:
space:
mode:
authortradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-28 21:15:39 +0000
committertradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac>2001-12-28 21:15:39 +0000
commit3b6712c2d4bb390fa6d0fc88e744c608839fd811 (patch)
tree5ddcf81c56a98d802205d5a8a50c58f74b86ccea /src/IO
parenta4fd761d8e7578a78460b360eb47ad67bc17480a (diff)
Fixed return code evaluation of I/O methods' OutputGH() routines.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2535 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/IO')
-rw-r--r--src/IO/IOMethods.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/IO/IOMethods.c b/src/IO/IOMethods.c
index 02282f3f..ea7e549f 100644
--- a/src/IO/IOMethods.c
+++ b/src/IO/IOMethods.c
@@ -370,7 +370,7 @@ int CCTK_OutputVarAs (const cGH *GH, const char *var, const char *alias)
for (handle = retval = 0; handle < num_methods; handle++)
{
method = (struct IOMethod *) Util_GetHandledData (IOMethods, handle);
- if (method && method->OutputVarAs (GH, var, alias) > 0)
+ if (method && method->OutputVarAs (GH, var, alias) == 0)
{
retval++;
}
@@ -660,7 +660,7 @@ int CactusDefaultOutputGH (const cGH *GH)
for (handle = retval = 0; handle < num_methods; handle++)
{
method = (struct IOMethod *) Util_GetHandledData (IOMethods, handle);
- if (method && method->OutputGH (GH) > 0)
+ if (method && method->OutputGH (GH) == 0)
{
retval++;
}