From 1317c5cf9b9a1602ace08d50994e574c885b888b Mon Sep 17 00:00:00 2001 From: tradke Date: Thu, 14 Sep 2000 21:23:54 +0000 Subject: 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 --- src/Write.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src') 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)); -- cgit v1.2.3