aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Startup.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/Startup.c b/src/Startup.c
index 2ba52ff..d8d85e6 100644
--- a/src/Startup.c
+++ b/src/Startup.c
@@ -13,6 +13,7 @@
#include "cctk.h"
#include "cctk_Parameters.h"
+#include "util_Network.h"
#include "BetaThorns/Socket/src/SocketUtils.h"
#include "CactusBase/IOUtil/src/ioutil_CheckpointRecovery.h"
#include "ioStreamedHDF5GH.h"
@@ -168,6 +169,7 @@ static void *IOStreamedHDF5_SetupGH (tFleshConfig *config,
int myproc;
int numvars;
ioStreamedHDF5GH *myGH;
+ char hostname[1024];
/* suppress compiler warnings about unused variables */
@@ -218,6 +220,14 @@ static void *IOStreamedHDF5_SetupGH (tFleshConfig *config,
close (myGH->data_socket);
myGH->data_socket = -1;
}
+ else
+ {
+ Util_GetHostName (hostname, sizeof (hostname));
+ CCTK_VInfo (CCTK_THORNSTRING,
+ "HDF5 data streaming service started on\n"
+ " %s:%d",
+ hostname, data_port);
+ }
}
/* create timers if timing info was requested */
@@ -285,6 +295,12 @@ static void *IOStreamedHDF5_SetupGH (tFleshConfig *config,
fapl.broadcast_arg = NULL;
IOHDF5_ERROR (myGH->checkpoint_fapl = H5Pcreate (H5P_FILE_ACCESS));
IOHDF5_ERROR (H5Pset_fapl_stream (myGH->checkpoint_fapl, &fapl));
+
+ Util_GetHostName (hostname, sizeof (hostname));
+ CCTK_VInfo (CCTK_THORNSTRING,
+ "HDF5 checkpoint streaming service started on\n"
+ " %s:%d",
+ hostname, checkpoint_port);
}
}
#endif