aboutsummaryrefslogtreecommitdiff
path: root/src/RegisterSym.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/RegisterSym.c')
-rw-r--r--src/RegisterSym.c22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/RegisterSym.c b/src/RegisterSym.c
index a5af8ab..d2623a4 100644
--- a/src/RegisterSym.c
+++ b/src/RegisterSym.c
@@ -7,23 +7,23 @@
@enddesc
@@*/
-#include <stdlib.h>
-
#include "cctk.h"
#include "cctk_Arguments.h"
#include "cctk_Parameters.h"
#include "Cartoon2D.h"
-static const char * const rcsid = "$Header$";
-
-CCTK_FILEVERSION(BetaThorns_Cartoon2D_SetSym_c);
-
-void Cartoon2D_RegisterSymmetries (CCTK_ARGUMENTS)
+void Cartoon2D_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;
@@ -31,6 +31,14 @@ void Cartoon2D_RegisterSymmetries (CCTK_ARGUMENTS)
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");
+ }
+
faces[0] = 1;
faces[1] = 0;
faces[2] = 1;