aboutsummaryrefslogtreecommitdiff
path: root/src/Write2D.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Write2D.c')
-rw-r--r--src/Write2D.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Write2D.c b/src/Write2D.c
index c4d4933..4101c90 100644
--- a/src/Write2D.c
+++ b/src/Write2D.c
@@ -28,7 +28,6 @@
#include "cctk.h"
#include "cctk_Parameters.h"
#include "util_Table.h"
-#include "CactusBase/IOUtil/src/ioGH.h"
#include "ioFlexGH.h"
static const char *rcsid = "$Id$";
@@ -70,7 +69,6 @@ int IOFlexIO_Write2D (const cGH *GH, int vindex, const char *alias)
DECLARE_CCTK_PARAMETERS
int dir; /* looper for directions */
int myproc; /* my processor ID */
- const ioGH *ioUtilGH;
flexioGH *myGH; /* IOFlexIO's extensions */
int ioflex_type; /* IEEEIO output datatype */
int groupindex; /* variable's group index */
@@ -103,9 +101,8 @@ int IOFlexIO_Write2D (const cGH *GH, int vindex, const char *alias)
return (-1);
}
- /* Get the handles for IOUtil and IOFlexIO extensions */
- myGH = (flexioGH *) GH->extensions[CCTK_GHExtensionHandle ("IOFlexIO")];
- ioUtilGH = (const ioGH *) GH->extensions[CCTK_GHExtensionHandle ("IO")];
+ /* Get the handle for IOFlexIO extension */
+ myGH = GH->extensions[CCTK_GHExtensionHandle ("IOFlexIO")];
/* What processor are we on? */
myproc = CCTK_MyProc (GH);
@@ -157,7 +154,7 @@ int IOFlexIO_Write2D (const cGH *GH, int vindex, const char *alias)
/* if restart from recovery, try to open an exisiting file ... */
IEEEfile_2D[dir] = NULL;
- if (ioUtilGH->recovered)
+ if (! IO_TruncateOutputFiles (GH))
{
IEEEfile_2D[dir] = IEEEopen (fname, "a");
}