diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ApplyCartoon.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); } |