aboutsummaryrefslogtreecommitdiff
path: root/src/Write.c
diff options
context:
space:
mode:
authortradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2004-11-17 18:45:48 +0000
committertradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2004-11-17 18:45:48 +0000
commit11cf65e2b4f3b4b1083d5d6a7170cb403e0f7096 (patch)
tree93829cb6fd5ed51f208f9215e72ca9cbd56150ed /src/Write.c
parentdcb1c8e5c7eab3df46634379b97280142e8cc73c (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/IOFlexIO/trunk@332 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/Write.c')
-rw-r--r--src/Write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Write.c b/src/Write.c
index 6289c7c..2bc1641 100644
--- a/src/Write.c
+++ b/src/Write.c
@@ -329,7 +329,7 @@ static IEEEfile_t *OpenFile (const cGH *GH, int vindex, const char *alias,
{
if (myproc == ioUtilGH->ioproc)
{
- if (ioUtilGH->recovered)
+ if (! IO_TruncateOutputFiles (GH))
{
file->iofile = IEEEopen (file->filename, "a");
*is_new_file = ! IOisValid (file->iofile);