From f792473b7d554e0ac44b2d93842c590745bd3517 Mon Sep 17 00:00:00 2001 From: rhaas Date: Mon, 14 May 2012 22:09:01 +0000 Subject: 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 --- src/InitSymBound.c | 17 +++++++++-------- 1 file 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); } -- cgit v1.2.3