diff options
Diffstat (limited to 'src/periodic.c')
-rw-r--r-- | src/periodic.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/periodic.c b/src/periodic.c index 33dbee0..1cfb274 100644 --- a/src/periodic.c +++ b/src/periodic.c @@ -271,15 +271,22 @@ Periodic_RegisterBC (cGH * restrict const cctkGH) CCTK_INT faces[6]; CCTK_INT width[6]; CCTK_INT ierr; - + CCTK_INT nboundaryzones[6]; + CCTK_INT is_internal[6]; + CCTK_INT is_staggered[6]; + CCTK_INT shiftout[6]; + faces[0] = faces[1] = periodic || periodic_x; faces[2] = faces[3] = periodic || periodic_y; faces[4] = faces[5] = periodic || periodic_z; - - for (f=0; f<6; ++f) { - width[f] = cctkGH->cctk_nghostzones[f/2]; + + ierr = GetBoundarySpecification + (6, width, is_internal, is_staggered, shiftout); + if (ierr < 0) + { + CCTK_WARN (0, "Could not get the boundary specification"); } - + handle = SymmetryRegister ("periodic"); if (handle < 0) { CCTK_WARN (0, "Could not register periodicity boundary condition"); |