diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/register.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/register.c b/src/register.c index 5a538e0..a1e3c5d 100644 --- a/src/register.c +++ b/src/register.c @@ -13,6 +13,12 @@ ReflectionSymmetry_Register (CCTK_ARGUMENTS) DECLARE_CCTK_PARAMETERS; int do_reflection[6]; + + CCTK_INT nboundaryzones[6]; + CCTK_INT is_internal[6]; + CCTK_INT is_staggered[6]; + CCTK_INT shiftout[6]; + CCTK_INT handle; CCTK_INT faces[6]; CCTK_INT width[6]; @@ -26,12 +32,20 @@ ReflectionSymmetry_Register (CCTK_ARGUMENTS) do_reflection[4] = reflection_z; do_reflection[5] = reflection_upper_z; + /* Get the boundary specification */ + ierr = GetBoundarySpecification + (6, nboundaryzones, is_internal, is_staggered, shiftout); + if (ierr < 0) + { + CCTK_WARN (0, "Could not get the boundary specification"); + } + for (f=0; f<6; ++f) { if (do_reflection[f]) { faces[f] = 1; - width[f] = cctk_nghostzones[f/2]; + width[f] = nboundaryzones[f/2]; } else { |