aboutsummaryrefslogtreecommitdiff
path: root/interface.ccl
diff options
context:
space:
mode:
authoreschnett <eschnett@1bf05452-ddb3-4880-bfa1-00436340132b>2010-12-23 00:26:45 +0000
committereschnett <eschnett@1bf05452-ddb3-4880-bfa1-00436340132b>2010-12-23 00:26:45 +0000
commite68518078f4e0dec380c1bc1f8f7a836d52da17f (patch)
tree54dc1826682f92fa84f5097775409f6ab062fb34 /interface.ccl
parentebccb57eaaa59f032c85af75f7c1c76989e616fe (diff)
Allow direct calls to the low-level Periodic API. This can be used to
apply periodic conditions only on selected grid variables. This is implemented by moving the "logic" (handling of errors and parameters) into the function Periodic_ApplyBC to make BndPeriodicVI "thorn agnostic". [Patch by David Radice] git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Periodic/trunk@23 1bf05452-ddb3-4880-bfa1-00436340132b
Diffstat (limited to 'interface.ccl')
-rw-r--r--interface.ccl39
1 files changed, 37 insertions, 2 deletions
diff --git a/interface.ccl b/interface.ccl
index cc228db..1b5497b 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -3,8 +3,6 @@
IMPLEMENTS: Periodic
-INCLUDES HEADER: periodic.h IN Periodic.h
-
USES INCLUDE HEADER: Slab.h
@@ -28,6 +26,43 @@ CCTK_INT FUNCTION Boundary_SelectedGVs(CCTK_POINTER_TO_CONST IN GH, \
CCTK_INT ARRAY OUT table_handles, CCTK_STRING IN bc_name)
REQUIRES FUNCTION Boundary_SelectedGVs
+
+CCTK_INT FUNCTION Periodic_ApplyVI( \
+ CCTK_POINTER_TO_CONST IN cctkGH, \
+ CCTK_INT IN size, \
+ CCTK_INT IN ARRAY stencil, \
+ CCTK_INT IN ARRAY do_periodic, \
+ CCTK_INT IN var_index \
+ )
+PROVIDES FUNCTION Periodic_ApplyVI WITH BndPeriodicVI LANGUAGE C
+
+CCTK_INT FUNCTION Periodic_ApplyVN( \
+ CCTK_POINTER_TO_CONST IN cctkGH, \
+ CCTK_INT IN size, \
+ CCTK_INT IN ARRAY stencil, \
+ CCTK_INT IN ARRAY do_periodic, \
+ CCTK_STRING IN var_name \
+ )
+PROVIDES FUNCTION Periodic_ApplyVN WITH BndPeriodicVN LANGUAGE C
+
+CCTK_INT FUNCTION Periodic_ApplyGI( \
+ CCTK_POINTER_TO_CONST IN cctkGH, \
+ CCTK_INT IN size, \
+ CCTK_INT IN ARRAY stencil, \
+ CCTK_INT IN ARRAY do_periodic, \
+ CCTK_INT IN group_index \
+ )
+PROVIDES FUNCTION Periodic_ApplyGI WITH BndPeriodicGI LANGUAGE C
+
+CCTK_INT FUNCTION Periodic_ApplyGN( \
+ CCTK_POINTER_TO_CONST IN cctkGH, \
+ CCTK_INT IN size, \
+ CCTK_INT IN ARRAY stencil, \
+ CCTK_INT IN ARRAY do_periodic, \
+ CCTK_STRING IN group_name \
+ )
+PROVIDES FUNCTION Periodic_ApplyGN WITH BndPeriodicGN LANGUAGE C
+
CCTK_INT FUNCTION GetBoundarySpecification \
(CCTK_INT IN size, \
CCTK_INT OUT ARRAY nboundaryzones, \