From eb3cb61cede488836a954d5a409229c106d36178 Mon Sep 17 00:00:00 2001 From: eschnett Date: Mon, 6 Jun 2011 15:31:49 +0000 Subject: Register the correct symmetry boundary width git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@121 eec4d7dc-71c2-46d6-addf-10296150bf52 --- interface.ccl | 9 +++++++++ src/RegisterSym.c | 22 +++++++++++++++------- 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 - #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; -- cgit v1.2.3