aboutsummaryrefslogtreecommitdiff
path: root/src/registersymmetry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/registersymmetry.c')
-rw-r--r--src/registersymmetry.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/registersymmetry.c b/src/registersymmetry.c
index 326e737..b12627e 100644
--- a/src/registersymmetry.c
+++ b/src/registersymmetry.c
@@ -10,21 +10,34 @@ void Rot90_RegisterSymmetry (CCTK_ARGUMENTS)
DECLARE_CCTK_ARGUMENTS;
DECLARE_CCTK_PARAMETERS;
+ CCTK_INT nboundaryzones[6];
+ CCTK_INT is_internal[6];
+ CCTK_INT is_staggered[6];
+ CCTK_INT shiftout[6];
+
int f;
CCTK_INT handle;
CCTK_INT faces[6];
CCTK_INT width[6];
CCTK_INT ierr;
+ /* 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) {
faces[f] = 0;
width[f] = 0;
}
faces[0] = 1;
- width[0] = cctk_nghostzones[0];
+ width[0] = nboundaryzones[0];
faces[2] = 1;
- width[2] = cctk_nghostzones[1];
+ width[2] = nboundaryzones[2];
handle = SymmetryRegister ("rotating_symmetry_90");
if (handle < 0) {