summaryrefslogtreecommitdiff
path: root/src/IO
diff options
context:
space:
mode:
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++;
}