diff options
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); } |