diff options
Diffstat (limited to 'src/Write.c')
-rw-r--r-- | src/Write.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Write.c b/src/Write.c index 303c6be..788f3b6 100644 --- a/src/Write.c +++ b/src/Write.c @@ -13,7 +13,6 @@ #include "cctk.h" #include "cctk_Parameters.h" -#include "StoreNamedData.h" #include "CactusBase/IOUtil/src/ioGH.h" #include "CactusPUGHIO/IOHDF5Util/src/ioHDF5UtilGH.h" #include "ioStreamedHDF5GH.h" @@ -97,12 +96,12 @@ int IOStreamedHDF5_Write (const cGH *GH, int vindex, const char *alias) ioUtilGH->ioproc_every = CCTK_nProcs (GH); file = -1; - if (CCTK_MyProc (GH) == 0 && myGH->data_socket >= 0) + if (CCTK_MyProc (GH) == 0 && myGH->data_socket != INVALID_SOCKET) { if (CCTK_Equals (verbose, "full")) { CCTK_VInfo (CCTK_THORNSTRING, "Opening HDF5 output file " - "on data output port %d", data_port); + "on data output port %u", myGH->data_port); } /* set file access property list to use the Stream VFD |