aboutsummaryrefslogtreecommitdiff
path: root/src/NoneBoundary.c
diff options
context:
space:
mode:
authorrideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4>2003-05-05 22:31:49 +0000
committerrideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4>2003-05-05 22:31:49 +0000
commitdcdc72dd6f10779d1d4294a4b2afb2dab218369d (patch)
treea7358592f27853517e42592fdf1f4ae36876eae2 /src/NoneBoundary.c
parenta1d9093aa44cec3768244a2ac8b1e62d264e9136 (diff)
Support for new boundary API, which places an integer boundary_width
argument on calls to Select*ForBC*. If a negative value is given then the boundary condition will look into the table for a 2d element integer array specifying the width of each boundary face. A number bug fixes, including the restriction to only execute a boundary condition on a single group at a time. (consider that the next group may have different staggering) Improvements of debugging code. Wrapper functions OldApplyBnd<BC> added, which support the old d-element 'stencil width' array API. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@221 6a38eb6e-646e-4a02-a296-d141613ad6c4
Diffstat (limited to 'src/NoneBoundary.c')
-rw-r--r--src/NoneBoundary.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/NoneBoundary.c b/src/NoneBoundary.c
index 59d1267..ab2f294 100644
--- a/src/NoneBoundary.c
+++ b/src/NoneBoundary.c
@@ -64,6 +64,11 @@ CCTK_FILEVERSION(CactusBase_Boundary_NoneBoundary_c);
@vtype int
@vio in
@endvar
+ @var widths
+ @vdesc array of boundary widths for each variable
+ @vtype int
+ @vio in
+ @endvar
@var table_handles
@vdesc array of table handles which hold extra arguments
@vtype int
@@ -75,7 +80,7 @@ CCTK_FILEVERSION(CactusBase_Boundary_NoneBoundary_c);
@endreturndesc
@@*/
-int BndNone(const cGH *GH, int num_vars, int *var_indices, int *faces,
+int BndNone(const cGH *GH, int num_vars, int *var_indices, int *faces, int *widths,
int *table_handles)
{
#ifdef DEBUG
@@ -87,6 +92,7 @@ int BndNone(const cGH *GH, int num_vars, int *var_indices, int *faces,
num_vars = num_vars;
var_indices = var_indices;
faces = faces;
+ widths = widths;
table_handles = table_handles;
return 0;