aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2001-05-10 22:18:34 +0000
committertradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2001-05-10 22:18:34 +0000
commita6b5767c1d18fabc9420d5a022d1049e10096038 (patch)
treee71887cabd776f259bcc057f0122409aebd9a814 /src
parentff9d24e111e067bd43d7cb225e568aaf4564cdc8 (diff)
Get rid of timelevel variable which is always 0 now.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@195 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src')
-rw-r--r--src/Write2D.c6
-rw-r--r--src/Write3D.c6
2 files changed, 2 insertions, 10 deletions
diff --git a/src/Write2D.c b/src/Write2D.c
index 18cffe6..bce6b82 100644
--- a/src/Write2D.c
+++ b/src/Write2D.c
@@ -70,7 +70,6 @@ void IOFlexIO_Write2D (cGH *GH, int vindex, const char *alias)
int dir; /* looper for directions */
int myproc; /* my processor ID */
flexioGH *myGH; /* IOFlexIO's extensions */
- int timelevel; /* variable's timelevel to output */
int ioflex_type; /* IEEEIO output datatype */
int groupindex; /* variable's group index */
cGroup groupinfo; /* variable's group information */
@@ -230,9 +229,6 @@ void IOFlexIO_Write2D (cGH *GH, int vindex, const char *alias)
}
}
- /* get the timelevel for the variable to output */
- timelevel = 0;
-
/* get the coordinate ranges */
CCTK_CoordRange (GH, &coord_origin3D[0], &min_ext[0], -1, "x", "cart3d");
CCTK_CoordRange (GH, &coord_origin3D[1], &min_ext[0], -1, "y", "cart3d");
@@ -274,7 +270,7 @@ void IOFlexIO_Write2D (cGH *GH, int vindex, const char *alias)
directions[dir] = 1;
/* get the variable slice */
- if (Hyperslab_GetHyperslab (GH, 0, vindex, timelevel, 2, origin, directions,
+ if (Hyperslab_GetHyperslab (GH, 0, vindex, 0, 2, origin, directions,
lengths, downsamples, &data, data_hsizes) < 0)
{
char *fullname = CCTK_FullName (vindex);
diff --git a/src/Write3D.c b/src/Write3D.c
index 950349f..48c2472 100644
--- a/src/Write3D.c
+++ b/src/Write3D.c
@@ -121,7 +121,6 @@ static IEEEfile_3D_t *IOFlexIO_Get3Dfile (cGH *GH, const char *alias,
void IOFlexIO_Write3D (cGH *GH, int vindex, const char *alias)
{
DECLARE_CCTK_PARAMETERS
- int timelevel;
ioGH *ioUtilGH;
int len, isNewFile;
char buffer[128];
@@ -217,11 +216,8 @@ void IOFlexIO_Write3D (cGH *GH, int vindex, const char *alias)
IEEEfile_3D->iofile = (IOFile) 0;
}
- /* get the current timelevel */
- timelevel = 0;
-
/* output the data */
- IOFlexIO_DumpVar (GH, vindex, timelevel, IEEEfile_3D->iofile);
+ IOFlexIO_DumpVar (GH, vindex, 0, IEEEfile_3D->iofile);
/* output the GH extensions and parameters */
/* Don't do this if the output is being byte compared, as the