aboutsummaryrefslogtreecommitdiff
path: root/src/Write.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Write.c')
-rw-r--r--src/Write.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Write.c b/src/Write.c
index 8eea1bc..69454fa 100644
--- a/src/Write.c
+++ b/src/Write.c
@@ -64,7 +64,7 @@ static char *IOHDF5_GetFilename (const cGH *GH,
@returntype int
@returndesc
- 0 for success, or<BR>
+ return code of @seeroutine IOHDF5Util_DumpVar, or<BR>
-1 if no storage was assigned to variable<BR>
-2 if filename couldn't be built from alias
@endreturndesc
@@ -74,7 +74,7 @@ int IOHDF5_Write (const cGH *GH, int vindex, const char *alias)
ioGH *ioUtilGH;
ioHDF5GH *myGH;
hid_t file, plist;
- int is_new_file;
+ int is_new_file, retval;
char *filename, *fullname;
DECLARE_CCTK_PARAMETERS
@@ -166,8 +166,8 @@ int IOHDF5_Write (const cGH *GH, int vindex, const char *alias)
}
/* output the data */
- IOHDF5Util_DumpVar (GH, vindex, 0, myGH->out_geo[vindex], file,
- myGH->check_exisiting_objects[vindex]);
+ retval = IOHDF5Util_DumpVar (GH, vindex, 0, myGH->out_geo[vindex], file,
+ myGH->check_exisiting_objects[vindex]);
/* close the file */
if (file >= 0)
@@ -186,7 +186,7 @@ int IOHDF5_Write (const cGH *GH, int vindex, const char *alias)
free (filename);
}
- return (0);
+ return (retval);
}