aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@0888f3d4-9f52-45d2-93bc-d00801ff5e46>2000-09-14 21:23:54 +0000
committertradke <tradke@0888f3d4-9f52-45d2-93bc-d00801ff5e46>2000-09-14 21:23:54 +0000
commit1317c5cf9b9a1602ace08d50994e574c885b888b (patch)
tree00b96e4c0f422b9107f937e54602855096c7be30 /src
parent1c2970ab10dd12e8fa1f1a2f7dbd11f108450022 (diff)
New argument list to H5FDset_fapl_stream().
This works with the newest Stream Virtual File driver from HDF5 1.3.29. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@36 0888f3d4-9f52-45d2-93bc-d00801ff5e46
Diffstat (limited to 'src')
-rw-r--r--src/Write.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Write.c b/src/Write.c
index db71f18..5ea8c65 100644
--- a/src/Write.c
+++ b/src/Write.c
@@ -58,6 +58,7 @@ void StreamedHDF5_Write (cGH *GH, int index, const char *alias)
int timelevel;
StreamedHDF5GH *myGH;
hid_t fid, plist;
+ H5FD_stream_fapl_t fapl;
#if 0
hid_t group;
#endif
@@ -99,9 +100,17 @@ void StreamedHDF5_Write (cGH *GH, int index, const char *alias)
CCTK_VInfo (CCTK_THORNSTRING, "Opening HDF5 output file on port %d",
port);
- /* set VFD to stream and open the file */
+ /* set file access property list to use the Stream VFD
+ and open the file */
+ fapl.increment = 0;
+ fapl.socket = myGH->socket;
+ fapl.do_socket_io = 1;
+ fapl.backlog = 5;
+ fapl.broadcast_fn = NULL;
+ fapl.broadcast_arg = NULL;
+
CACTUS_IOHDF5_ERROR (plist = H5Pcreate (H5P_FILE_ACCESS));
- CACTUS_IOHDF5_ERROR (H5Pset_fapl_stream (plist, 0, myGH->socket));
+ CACTUS_IOHDF5_ERROR (H5Pset_fapl_stream (plist, &fapl));
CACTUS_IOHDF5_ERROR (fid = H5Fcreate (filename, H5F_ACC_TRUNC,
H5P_DEFAULT, plist));
CACTUS_IOHDF5_ERROR (H5Pclose (plist));