diff options
-rw-r--r-- | interface.ccl | 5 | ||||
-rw-r--r-- | src/Write.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/interface.ccl b/interface.ccl index 206e3c4..c205bc9 100644 --- a/interface.ccl +++ b/interface.ccl @@ -3,3 +3,8 @@ Implements: IOHDF5 #Inherits: IO + +CCTK_INT FUNCTION IO_TruncateOutputFiles \ + (CCTK_POINTER_TO_CONST IN GH) + +REQUIRES FUNCTION IO_TruncateOutputFiles diff --git a/src/Write.c b/src/Write.c index 1a69cf9..d2f393e 100644 --- a/src/Write.c +++ b/src/Write.c @@ -333,7 +333,7 @@ static char *IOHDF5_GetFilename (const cGH *GH, { if (myproc == ioUtilGH->ioproc) { - if (ioUtilGH->recovered) + if (! IO_TruncateOutputFiles (GH)) { H5E_BEGIN_TRY { |