aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-10-03 22:14:20 +0000
committertradke <tradke@94b1c47f-dcfd-45ef-a468-0854c0e9e350>2001-10-03 22:14:20 +0000
commit4cd9ab26fe5169cb052dbd37fb4e505eba578205 (patch)
treed9d26746433568daa097a44397dde3d14afb7829
parentc2861ed42c523eddfe20530a9c9ee5c6b0664c77 (diff)
Setting up slice centers for dimensions greater than 3 to be zero.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOASCII/trunk@80 94b1c47f-dcfd-45ef-a468-0854c0e9e350
-rw-r--r--src/ChooseOutput.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ChooseOutput.c b/src/ChooseOutput.c
index 6a7a335..8e89d4d 100644
--- a/src/ChooseOutput.c
+++ b/src/ChooseOutput.c
@@ -73,7 +73,7 @@ void IOASCII_Choose2D (cGH *GH);
void IOASCII_Choose1D (cGH *GH)
{
DECLARE_CCTK_PARAMETERS
- int i;
+ int i, j;
asciiioGH *myGH;
int *origin_index[3];
CCTK_REAL *origin_phys[3];
@@ -105,7 +105,10 @@ void IOASCII_Choose1D (cGH *GH)
}
else
{
- memset (myGH->spxyz[i-1], 0, i * sizeof (int));
+ for (j = 0; j < i; j++)
+ {
+ memset (myGH->spxyz[i-1][j], 0, i);
+ }
}
}