aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreschnett <eschnett@eec4d7dc-71c2-46d6-addf-10296150bf52>2011-06-06 15:31:49 +0000
committereschnett <eschnett@eec4d7dc-71c2-46d6-addf-10296150bf52>2011-06-06 15:31:49 +0000
commiteb3cb61cede488836a954d5a409229c106d36178 (patch)
treeb5528dc825813968ba92fdcaf5598f663cd9e4e8
parent8729b481eb6e2827ee15511229aba4184c6e9951 (diff)
Register the correct symmetry boundary width
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@121 eec4d7dc-71c2-46d6-addf-10296150bf52
-rw-r--r--interface.ccl9
-rw-r--r--src/RegisterSym.c22
2 files changed, 24 insertions, 7 deletions
diff --git a/interface.ccl b/interface.ccl
index b432be3..f1df4ec 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -62,6 +62,15 @@ CCTK_INT FUNCTION \
CCTK_INT IN faces)
REQUIRES FUNCTION SymmetryInterpolateFaces
+CCTK_INT FUNCTION \
+ GetBoundarySpecification \
+ (CCTK_INT IN size, \
+ CCTK_INT OUT ARRAY nboundaryzones, \
+ CCTK_INT OUT ARRAY is_internal, \
+ CCTK_INT OUT ARRAY is_staggered, \
+ CCTK_INT OUT ARRAY shiftout)
+REQUIRES FUNCTION GetBoundarySpecification
+
CCTK_INT FUNCTION Boundary_SelectedGVs(CCTK_POINTER_TO_CONST IN GH, \
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;