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, 8 insertions, 2 deletions
diff --git a/src/Write.c b/src/Write.c
index 788f3b6..434fde3 100644
--- a/src/Write.c
+++ b/src/Write.c
@@ -79,8 +79,8 @@ int IOStreamedHDF5_Write (const cGH *GH, int vindex, const char *alias)
return (-1);
}
- ioUtilGH = (ioGH *) CCTK_GHExtension (GH, "IO");
- myGH = (ioStreamedHDF5GH *) CCTK_GHExtension (GH, "IOStreamedHDF5");
+ ioUtilGH = CCTK_GHExtension (GH, "IO");
+ myGH = CCTK_GHExtension (GH, "IOStreamedHDF5");
/* for now we can only have I/O mode "oneproc" */
if (ioUtilGH->nioprocs != 1)
@@ -126,6 +126,12 @@ int IOStreamedHDF5_Write (const cGH *GH, int vindex, const char *alias)
/* output the data */
retval = IOHDF5Util_DumpVar (GH, myGH->requests[vindex], file);
+ /* attach global information */
+ if (! retval && file >= 0)
+ {
+ IOHDF5Util_DumpGHExtensions (GH, file);
+ }
+
/* close the file */
if (file >= 0)
{