aboutsummaryrefslogtreecommitdiff
path: root/src/Write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Write.c')
-rw-r--r--src/Write.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/Write.c b/src/Write.c
index 7a2ee35..56b4bc5 100644
--- a/src/Write.c
+++ b/src/Write.c
@@ -49,10 +49,14 @@ CCTK_FILEVERSION(BetaThorns_IOStreamedHDF5_Write_c)
@vtype const char *
@vio unused
@endvar
+
+ @returntype int
+ @returndesc
+ 0 for success, or<BR>
+ -1 if variable has no storage assigned
+ @endreturndesc
@@*/
-void IOStreamedHDF5_Write (const cGH *GH,
- int vindex,
- const char *alias)
+int IOStreamedHDF5_Write (const cGH *GH, int vindex, const char *alias)
{
DECLARE_CCTK_PARAMETERS
int old_ioproc;
@@ -75,7 +79,7 @@ void IOStreamedHDF5_Write (const cGH *GH,
CCTK_VWarn (2, __LINE__, __FILE__, CCTK_THORNSTRING,
"No IOStreamedHDF5 output for '%s' (no storage)", fullname);
free (fullname);
- return;
+ return (-1);
}
/* Get the handles for IO and IOStreamedHDF5 extensions */
@@ -140,4 +144,6 @@ void IOStreamedHDF5_Write (const cGH *GH,
ioUtilGH->ioproc = old_ioproc;
ioUtilGH->nioprocs = old_nioprocs;
ioUtilGH->ioproc_every = old_ioproc_every;
+
+ return (0);
}