aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2002-10-23 09:51:55 +0000
committertradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2002-10-23 09:51:55 +0000
commit6bc74d0d7a04d91594f0a2cb3b28e9e2abcf6db2 (patch)
tree2518613853c47f9f9251b3297b0d1ddb19d3832c /src
parent2c294a2c35524f87c480668a04469cb7355adc2f (diff)
Removed preliminary code that wasn't supported yet by the hyperslab thorn.
Now it compiles again. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@135 94b1c47f-dcfd-45ef-a468-0854c0e9e350
Diffstat (limited to 'src')
-rw-r--r--src/Write1D.c10
-rw-r--r--src/Write2D.c11
-rw-r--r--src/Write3D.c11
3 files changed, 6 insertions, 26 deletions
diff --git a/src/Write1D.c b/src/Write1D.c
index f4d73d5..fb3e5c2 100644
--- a/src/Write1D.c
+++ b/src/Write1D.c
@@ -130,7 +130,7 @@ int IOASCII_Write1D (const cGH *GH, int vindex, const char *alias)
{
asciiioGH *myGH;
int do_dir[4], coord_index[3];
- int i, dir, myproc, groupindex, have_coords, mapping, table;
+ int i, dir, myproc, groupindex, have_coords, mapping;
#if 0
int lower, upper;
#endif
@@ -332,20 +332,14 @@ fprintf (stderr, "%d/%d\n", origin[dir], extent);
memset (origin, 0, gdata.dim * sizeof (CCTK_INT));
}
- table = out_physical_boundaries ?
- Util_TableCreateFromString ("with_ghostzones = 1") : -1;
mapping = Hyperslab_DefineGlobalMappingByIndex (GH, vindex, 1,
direction,
origin,
&extent,
NULL, /* downsample */
- table,
+ -1, /* table handle */
NULL /* conversion fn */,
&hsize);
- if (table >= 0)
- {
- Util_TableDestroy (table);
- }
if (mapping < 0)
{
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
diff --git a/src/Write2D.c b/src/Write2D.c
index 07c07e2..3d2e6bd 100644
--- a/src/Write2D.c
+++ b/src/Write2D.c
@@ -127,7 +127,7 @@ int IOASCII_Write2D (const cGH *GH, int vindex, const char *alias)
asciiioGH *myGH;
int i, total_hsize, num_requested_hslabs, num_returned_hslabs;
int dir, dir_i, dir_j, maxdir, myproc, groupindex, have_coords;
- int mapping, table;
+ int mapping;
cGroup gdata;
int coord_index[3];
CCTK_REAL coord_lower[3];
@@ -257,21 +257,14 @@ int IOASCII_Write2D (const cGH *GH, int vindex, const char *alias)
memset (direction, 0, sizeof (direction));
direction[dir_i] = direction[gdata.dim + dir_j] = 1;
- table = out_physical_boundaries ?
- Util_TableCreateFromString ("with_ghostzones = 1") : -1;
-
mapping = Hyperslab_DefineGlobalMappingByIndex (GH, vindex, 2,
direction,
origin,
extent,
NULL, /* downsample */
- table,
+ -1, /* table handle */
NULL /* conversion fn */,
hsize);
- if (table >= 0)
- {
- Util_TableDestroy (table);
- }
if (mapping < 0)
{
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,
diff --git a/src/Write3D.c b/src/Write3D.c
index 5e2de18..b52c907 100644
--- a/src/Write3D.c
+++ b/src/Write3D.c
@@ -136,7 +136,7 @@ int IOASCII_Write3D (const cGH *GH, int vindex, const char *alias)
void *hdata[4];
int extent_int[3];
CCTK_REAL offset[3];
- int mapping, table;
+ int mapping;
CCTK_INT vindices[4], extent[3], hsize[3];
const CCTK_INT origin[] = {0, 0, 0},
direction[] = {1, 0, 0, 0, 1, 0, 0, 0, 1};
@@ -214,22 +214,15 @@ int IOASCII_Write3D (const cGH *GH, int vindex, const char *alias)
extent[i] = extent_int[i];
}
- table = out_physical_boundaries ?
- Util_TableCreateFromString ("with_ghostzones = 1") : -1;
-
/* get the hyperslab mapping */
mapping = Hyperslab_DefineGlobalMappingByIndex (GH, vindex, 3,
direction,
origin,
extent,
NULL, /* downsample */
- table,
+ -1, /* table handle */
NULL /* conversion fn */,
hsize);
- if (table >= 0)
- {
- Util_TableDestroy (table);
- }
if (mapping < 0)
{
CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING,