diff options
author | tradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350> | 2001-05-10 18:32:28 +0000 |
---|---|---|
committer | tradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350> | 2001-05-10 18:32:28 +0000 |
commit | a7defe31588e1f7b78dae7052cd3dd956071ec9e (patch) | |
tree | ca22c5834f0bf79b998de4bddc073109b0c9f97e /src | |
parent | ad50ed9da7d5220ecf843338a837876ade9b5c89 (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')
-rw-r--r-- | src/Write1D.c | 6 | ||||
-rw-r--r-- | src/Write2D.c | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/src/Write1D.c b/src/Write1D.c index e6faa45..a13cf35 100644 --- a/src/Write1D.c +++ b/src/Write1D.c @@ -110,7 +110,6 @@ void IOASCII_Write1D (cGH *GH, int vindex, const char *alias) int is_cubic; /* true if variable lives on cubic grid */ int myproc; /* identify processor */ int i, dir; /* Loopers */ - int timelevel; /* timelevel of variable to output */ int groupindex; /* variable's group index */ int have_coords; /* boolean for existance of coordinates */ char coord_system[20]; /* name of the coordinate system */ @@ -433,9 +432,6 @@ void IOASCII_Write1D (cGH *GH, int vindex, const char *alias) free (filename); } - /* get the current time level */ - timelevel = 0; - /* OK so actually do the I/O in each direction */ for (dir = 0; dir < 4; dir++) { @@ -515,7 +511,7 @@ void IOASCII_Write1D (cGH *GH, int vindex, const char *alias) } /* get the variable's 1D data */ - if (Hyperslab_GetHyperslab (GH, 0, vindex, timelevel, 1, origin, + if (Hyperslab_GetHyperslab (GH, 0, vindex, 0, 1, origin, directions, &length, &downsample, &data, &hsize) < 0) { 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); |