diff options
Diffstat (limited to 'src/registersymmetry.c')
-rw-r--r-- | src/registersymmetry.c | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/src/registersymmetry.c b/src/registersymmetry.c index be8999c..da80afa 100644 --- a/src/registersymmetry.c +++ b/src/registersymmetry.c @@ -15,27 +15,23 @@ void Rot90_RegisterSymmetry (CCTK_ARGUMENTS) CCTK_INT width[6]; CCTK_INT ierr; - if (rotating_symmetry_90) { - - for (f=0; f<6; ++f) { - faces[f] = 0; - width[f] = 0; - } - - faces[0] = 1; - width[0] = cctk_nghostzones[0]; - faces[1] = 1; - width[1] = cctk_nghostzones[1]; - - handle = SymmetryRegister ("rotating_symmetry_90"); - if (handle < 0) { - CCTK_WARN (0, "Could not register symmetry boundary condition"); - } - - ierr = SymmetryRegisterGrid (cctkGH, handle, faces, width); - if (ierr < 0) { - CCTK_WARN (0, "Could not register the symmetry boundaries -- probably some other thorn has already registered the same boundary faces for a different symmetry"); - } - + for (f=0; f<6; ++f) { + faces[f] = 0; + width[f] = 0; + } + + faces[0] = 1; + width[0] = cctk_nghostzones[0]; + faces[1] = 1; + width[1] = cctk_nghostzones[1]; + + handle = SymmetryRegister ("rotating_symmetry_90"); + if (handle < 0) { + CCTK_WARN (0, "Could not register symmetry boundary condition"); + } + + ierr = SymmetryRegisterGrid (cctkGH, handle, faces, width); + if (ierr < 0) { + CCTK_WARN (0, "Could not register the symmetry boundaries -- probably some other thorn has already registered the same boundary faces for a different symmetry"); } } |