aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrideout <rideout@eec4d7dc-71c2-46d6-addf-10296150bf52>2003-02-13 14:04:14 +0000
committerrideout <rideout@eec4d7dc-71c2-46d6-addf-10296150bf52>2003-02-13 14:04:14 +0000
commitfc85b9395591acc4895514d6fdee3983aa9c0d1a (patch)
tree54e119e9602a07384991b7ed82bf9e5bba593f72
parent70dca0ad33cddcce3418fe4d35207beb0a5f9076 (diff)
Include faces argument for Boundary_SelectedGVs.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@66 eec4d7dc-71c2-46d6-addf-10296150bf52
-rw-r--r--interface.ccl5
-rw-r--r--src/ApplyCartoon.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/interface.ccl b/interface.ccl
index 7519cab..378d123 100644
--- a/interface.ccl
+++ b/interface.ccl
@@ -4,10 +4,11 @@
implements: cartoon2d
INCLUDES HEADER: Cartoon2D_tensors.h in Cartoon2D_tensors.h
+INCLUDES HEADER: Cartoon2D.h in Cartoon2D.h
# Function aliases:
-CCTK_INT FUNCTION Boundary_SelectedGVs CCTK_POINTER GH, \
- CCTK_INT array_size, CCTK_POINTER var_indicies, CCTK_POINTER table_handles, \
+CCTK_INT FUNCTION Boundary_SelectedGVs CCTK_POINTER GH, CCTK_INT array_size, \
+ CCTK_POINTER var_indicies, CCTK_POINTER faces, CCTK_POINTER table_handles, \
CCTK_STRING bc_name
USES FUNCTION Boundary_SelectedGVs
diff --git a/src/ApplyCartoon.c b/src/ApplyCartoon.c
index 9238bb0..1485405 100644
--- a/src/ApplyCartoon.c
+++ b/src/ApplyCartoon.c
@@ -79,19 +79,20 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS);
void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) {
DECLARE_CCTK_ARGUMENTS;
- int num_vars, *vars, *tables, err, i, gi, group_tags_table;
+ int num_vars, *vars, *faces, *tables, err, i, gi, group_tags_table;
char tensortype[TENSORTYPE_BUFF_SIZE];
/* Allocate memory to hold selected bcs */
- num_vars = Boundary_SelectedGVs(cctkGH, 0, NULL, NULL, NULL);
+ num_vars = Boundary_SelectedGVs(cctkGH, 0, NULL, NULL, NULL, NULL);
#ifdef DEBUG
printf("Cartoon_ApplyBoundaries: num_vars is %d\n",num_vars);
#endif
vars = (int *) malloc(num_vars*sizeof(int));
+ faces = (int *) malloc(num_vars*sizeof(int));
tables = (int *) malloc(num_vars*sizeof(int));
/* get all selected vars */
- err = Boundary_SelectedGVs(cctkGH, num_vars, vars, tables, NULL);
+ err = Boundary_SelectedGVs(cctkGH, num_vars, vars, faces, tables, NULL);
if (err != num_vars)
{
CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING,
@@ -170,5 +171,6 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) {
/* Free data */
free(vars);
+ free(faces);
free(tables);
}