diff options
author | tradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d> | 2004-11-17 18:45:48 +0000 |
---|---|---|
committer | tradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d> | 2004-11-17 18:45:48 +0000 |
commit | e3bac2b6fff348f037de24b9b4ac88dd663ef10d (patch) | |
tree | d443d18de4f1adb35da1b1d984aa1abdf14795de | |
parent | 065fb3c740b34ad80a35349f53d8044cb12b3973 (diff) |
Use aliased function IO_TruncateOutputFiles() to check whether or not
to truncate existing output files.
You must also update CactusBase/IOUtil now.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@211 4825ed28-b72c-4eae-9704-e50c059e567d
-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 { |