aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrhaas <rhaas@d576a68a-b34a-40ae-82fc-004fa1a9d16f>2012-05-14 22:09:01 +0000
committerrhaas <rhaas@d576a68a-b34a-40ae-82fc-004fa1a9d16f>2012-05-14 22:09:01 +0000
commitf792473b7d554e0ac44b2d93842c590745bd3517 (patch)
treed2cba3d07a60fe65bacfbef74ca6e02c486f6809
parent5ee1256b73147cdbcb6b97ecc4053d5d7ed90142 (diff)
ADMBase: re-introduce code to respecet boundary width
that was accidentally removed in revision 66. git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinBase/ADMBase/trunk@67 d576a68a-b34a-40ae-82fc-004fa1a9d16f
-rw-r--r--src/InitSymBound.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/InitSymBound.c b/src/InitSymBound.c
index 46c589a..0f90bed 100644
--- a/src/InitSymBound.c
+++ b/src/InitSymBound.c
@@ -123,12 +123,13 @@ void Einstein_InitSymBound(CCTK_ARGUMENTS)
}
/* A macro for selecting boundary conditions and checking for errors */
-static void select_bc(cGH const* const cctkGH, char const* const groupname)
+static void select_bc(cGH const* const cctkGH, char const* const groupname,
+ int const stencil)
{
DECLARE_CCTK_PARAMETERS;
int const ierr =
- Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, 1, -1,
+ Boundary_SelectGroupForBC(cctkGH, CCTK_ALL_FACES, stencil, -1,
groupname, admbase_boundary_condition);
if (ierr < 0)
{
@@ -166,22 +167,22 @@ void ADMBase_Boundaries(CCTK_ARGUMENTS)
if (CCTK_EQUALS(evolution_method, "none" ) ||
CCTK_EQUALS(evolution_method, "static"))
{
- select_bc(cctkGH, "ADMBase::metric");
- select_bc(cctkGH, "ADMBase::curv");
+ select_bc(cctkGH, "ADMBase::metric", stencil);
+ select_bc(cctkGH, "ADMBase::curv", stencil);
}
if (CCTK_EQUALS(lapse_evolution_method, "static"))
- select_bc(cctkGH, "ADMBase::lapse");
+ select_bc(cctkGH, "ADMBase::lapse", stencil);
if (!CCTK_EQUALS(initial_dtlapse, "none") &&
CCTK_EQUALS(dtlapse_evolution_method, "static"))
- select_bc(cctkGH, "ADMBase::dtlapse");
+ select_bc(cctkGH, "ADMBase::dtlapse", stencil);
if (!CCTK_EQUALS(initial_shift, "none") &&
CCTK_EQUALS(shift_evolution_method, "static"))
- select_bc(cctkGH, "ADMBase::shift");
+ select_bc(cctkGH, "ADMBase::shift", stencil);
if (!CCTK_EQUALS(initial_dtshift, "none") &&
CCTK_EQUALS(dtshift_evolution_method, "static"))
- select_bc(cctkGH, "ADMBase::dtshift");
+ select_bc(cctkGH, "ADMBase::dtshift", stencil);
}