From bddf82bdb58b23522e76bfbd3eea602d7fb20316 Mon Sep 17 00:00:00 2001 From: rhaas Date: Tue, 29 Apr 2014 00:57:01 +0000 Subject: correct 1d, 2d boundary handling since rev 309 1d and 2d evolutions would not apply the boundary condition git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@327 6a38eb6e-646e-4a02-a296-d141613ad6c4 --- src/CopyBoundary.c | 4 ++-- src/FlatBoundary.c | 4 ++-- src/ScalarBoundary.c | 4 ++-- src/StaticBoundary.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/CopyBoundary.c b/src/CopyBoundary.c index ec00d40..a4b9c06 100644 --- a/src/CopyBoundary.c +++ b/src/CopyBoundary.c @@ -1149,8 +1149,8 @@ static int ApplyBndCopy (const cGH *GH, so that we can use the INDEX_3D macro later on */ for (i = gdim; i < MAXDIM; i++) { - ash[i] = 0; - lsh[i] = 0; + ash[i] = 1; + lsh[i] = 1; } /* get the current timelevel */ diff --git a/src/FlatBoundary.c b/src/FlatBoundary.c index 15ee474..8229103 100644 --- a/src/FlatBoundary.c +++ b/src/FlatBoundary.c @@ -975,8 +975,8 @@ static int ApplyBndFlat (const cGH *GH, so that we can use the INDEX_3D macro later on */ for (i = gdim; i < MAXDIM; i++) { - ash[i] = 0; - lsh[i] = 0; + ash[i] = 1; + lsh[i] = 1; } /* get the current timelevel */ diff --git a/src/ScalarBoundary.c b/src/ScalarBoundary.c index ea83742..270f782 100644 --- a/src/ScalarBoundary.c +++ b/src/ScalarBoundary.c @@ -1114,8 +1114,8 @@ static int ApplyBndScalar (const cGH *GH, so that we can use the INDEX_3D macro later on */ for (i = gdim; i < MAXDIM; i++) { - ash[i] = 0; - lsh[i] = 0; + ash[i] = 1; + lsh[i] = 1; } /* get the current timelevel */ diff --git a/src/StaticBoundary.c b/src/StaticBoundary.c index 4ac2879..58a0a28 100644 --- a/src/StaticBoundary.c +++ b/src/StaticBoundary.c @@ -994,8 +994,8 @@ static int ApplyBndStatic (const cGH *GH, so that we can use the INDEX_3D macro later on */ for (i = gdim; i < MAXDIM; i++) { - ash[i] = 0; - lsh[i] = 0; + ash[i] = 1; + lsh[i] = 1; } /* get the current timelevel */ -- cgit v1.2.3