diff options
Diffstat (limited to 'src/DumpGH.c')
-rw-r--r-- | src/DumpGH.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/DumpGH.c b/src/DumpGH.c index b75ed6b..0e65172 100644 --- a/src/DumpGH.c +++ b/src/DumpGH.c @@ -234,7 +234,8 @@ static int Checkpoint (const cGH *GH, int called_from) ioUtilGH->ioproc_every = CCTK_nProcs (GH); /* now open the file */ - if (CCTK_MyProc (GH) == ioUtilGH->ioproc && myGH->checkpoint_socket >= 0) + if (CCTK_MyProc (GH) == ioUtilGH->ioproc && + myGH->checkpoint_socket != INVALID_SOCKET) { if (CCTK_Equals (verbose, "full")) { @@ -246,8 +247,8 @@ static int Checkpoint (const cGH *GH, int called_from) if (file < 0) { CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, - "Can't create checkpoint file on port %d. " - "Checkpointing is skipped.", checkpoint_port); + "Can't create checkpoint file on port %u. " + "Checkpointing is skipped.", myGH->checkpoint_port); retval = -1; } } @@ -276,9 +277,9 @@ static int Checkpoint (const cGH *GH, int called_from) if (CCTK_Equals (verbose, "full")) { CCTK_VInfo (CCTK_THORNSTRING, "Waiting %d seconds to send " - "checkpoint file to port %d", + "checkpoint file to port %u", checkpoint_accept_timeout, - checkpoint_port); + myGH->checkpoint_port); } FD_ZERO (&readset); @@ -290,7 +291,7 @@ static int Checkpoint (const cGH *GH, int called_from) if (CCTK_Equals (verbose, "full")) { CCTK_VInfo (CCTK_THORNSTRING, "Closing checkpoint file on port %d", - checkpoint_port); + myGH->checkpoint_port); } HDF5_ERROR (H5Fclose (file)); } |