From e68518078f4e0dec380c1bc1f8f7a836d52da17f Mon Sep 17 00:00:00 2001 From: eschnett Date: Thu, 23 Dec 2010 00:26:45 +0000 Subject: 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 --- interface.ccl | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) (limited to 'interface.ccl') 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, \ -- cgit v1.2.3