diff options
Diffstat (limited to 'src/InitSymBound.c')
-rw-r--r-- | src/InitSymBound.c | 17 |
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); } |