diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-12-30 13:12:06 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-12-30 13:12:06 +0000 |
commit | 2ea181b307e500e8b243d51bf1de29e94baf6973 (patch) | |
tree | f3c9102d10c846839ddcb5a8f7f92c3aaf404ebc /src | |
parent | 675a06688d5c2b260375208efa16bcc19f3dd651 (diff) |
Fixed return code for CCTK_OutputGH() - now returns the total number of vars
which were output by all I/O methods.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2548 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src')
-rw-r--r-- | src/IO/IOMethods.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/IO/IOMethods.c b/src/IO/IOMethods.c index 4c01131c..898b7483 100644 --- a/src/IO/IOMethods.c +++ b/src/IO/IOMethods.c @@ -75,7 +75,7 @@ static int num_methods = 0; ************************************************************************/ /*@@ - @routine CCTKi_RegisterIOMethod + @routine CCTK_RegisterIOMethod @date Wed Feb 3 13:33:09 1999 @author Tom Goodale @desc @@ -641,12 +641,9 @@ static int DummyTriggerOutput (const cGH *GH, int var) @returntype int @returndesc - positive for the number of I/O methods which successfully - did output for GH, or<BR> - -1 if no I/O methods were found - logical or'ed return codes of all I/O methods' - OutputGH() routines, or<BR> - -2 if no I/O methods were found + >= 0 for the total number of variables for which output was + was done by all I/O methods, or<BR> + -1 if no I/O methods were found @endreturndesc @@*/ int CactusDefaultOutputGH (const cGH *GH) @@ -660,9 +657,9 @@ 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) { - retval++; + retval += method->OutputGH (GH); } } } |