aboutsummaryrefslogtreecommitdiff
path: root/src/Write2D.c
diff options
context:
space:
mode:
authortradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-05-10 18:32:28 +0000
committertradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-05-10 18:32:28 +0000
commita7defe31588e1f7b78dae7052cd3dd956071ec9e (patch)
treeca22c5834f0bf79b998de4bddc073109b0c9f97e /src/Write2D.c
parentad50ed9da7d5220ecf843338a837876ade9b5c89 (diff)
Get rid of timelevel variable which is constant zero now.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@62 94b1c47f-dcfd-45ef-a468-0854c0e9e350
Diffstat (limited to 'src/Write2D.c')
-rw-r--r--src/Write2D.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Write2D.c b/src/Write2D.c
index af0ca58..b686be3 100644
--- a/src/Write2D.c
+++ b/src/Write2D.c
@@ -109,7 +109,6 @@ void IOASCII_Write2D (cGH *GH, int vindex, const char *alias)
char data_fmt_string_int[30]; /* data format string for int types */
char data_fmt_string_real[30]; /* data format string for float types */
int dir;
- int timelevel;
int groupindex;
int have_coords;
cGroup groupinfo;
@@ -307,9 +306,6 @@ void IOASCII_Write2D (cGH *GH, int vindex, const char *alias)
}
}
- /* get the timelevel for the variable to output */
- timelevel = 0;
-
for (dir = 0; dir < 3; dir++)
{
int dir_i, dir_j;
@@ -376,7 +372,7 @@ void IOASCII_Write2D (cGH *GH, int vindex, const char *alias)
}
/* 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)
{
fullname = CCTK_FullName (vindex);