diff options
author | tradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 2001-12-28 21:22:52 +0000 |
---|---|---|
committer | tradke <tradke@b589c3ab-70e8-4b4d-a09f-cba2dd200880> | 2001-12-28 21:22:52 +0000 |
commit | feb8726f2ab8a7004de5a3a9117d91d916ca86ae (patch) | |
tree | a268e18148368a30529419935604808475b365c3 /src/WriteInfo.c | |
parent | 246994c0b838df1ce00b5bd31c7b355a961089f6 (diff) |
Fixed return code of I/O methods.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOBasic/trunk@110 b589c3ab-70e8-4b4d-a09f-cba2dd200880
Diffstat (limited to 'src/WriteInfo.c')
-rw-r--r-- | src/WriteInfo.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/src/WriteInfo.c b/src/WriteInfo.c index 37a986d..27bc3ce 100644 --- a/src/WriteInfo.c +++ b/src/WriteInfo.c @@ -31,8 +31,30 @@ CCTK_FILEVERSION(CactusBase_IOBasic_WriteInfo_c) @calls CCTK_VarDataPtrI CCTK_Reduce + + @var GH + @vdesc Pointer to CCTK grid hierarchy + @vtype const cGH * + @vio in + @endvar + @var vindex + @vdesc CCTK index of the variable to output + @vtype int + @vio in + @endvar + @var alias + @vdesc alias name to use for building the output filename + @vtype const char * + @vio in + @endvar + + @returntype int + @returndesc + 0 for success, or<BR> + -1 if variable has no storage assigned + @endreturndesc @@*/ -void IOBasic_WriteInfo (const cGH *GH, int vindex) +int IOBasic_WriteInfo (const cGH *GH, int vindex) { int vtype; char *fullname; @@ -67,7 +89,7 @@ void IOBasic_WriteInfo (const cGH *GH, int vindex) reduction->is_valid = 0; reduction = reduction->next; } - return; + return (-1); } /* CCTK scalars are printed by their value, cast into a C double */ @@ -175,4 +197,6 @@ void IOBasic_WriteInfo (const cGH *GH, int vindex) reduction = reduction->next; } } + + return (0); } |