From 3b6712c2d4bb390fa6d0fc88e744c608839fd811 Mon Sep 17 00:00:00 2001 From: tradke Date: Fri, 28 Dec 2001 21:15:39 +0000 Subject: 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 --- src/IO/IOMethods.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/IO') 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++; } -- cgit v1.2.3