diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ApplyCartoon.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ApplyCartoon.c b/src/ApplyCartoon.c index 1485405..3c398df 100644 --- a/src/ApplyCartoon.c +++ b/src/ApplyCartoon.c @@ -79,20 +79,21 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS); void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; - int num_vars, *vars, *faces, *tables, err, i, gi, group_tags_table; + int num_vars, *vars, *faces, *widths, *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, NULL); + num_vars = Boundary_SelectedGVs(cctkGH, 0, NULL, 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)); + widths = (int *) malloc(num_vars*sizeof(int)); tables = (int *) malloc(num_vars*sizeof(int)); /* get all selected vars */ - err = Boundary_SelectedGVs(cctkGH, num_vars, vars, faces, tables, NULL); + err = Boundary_SelectedGVs(cctkGH, num_vars, vars, faces, widths, tables, NULL); if (err != num_vars) { CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, @@ -113,7 +114,7 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) { gi = CCTK_GroupIndexFromVarI(vars[i]); if (gi<0) { CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, - "Invalid variable index %d registered for a boundary " + "Invalid variable index %d selected for a boundary " "condition", gi); } if (vars[i] != CCTK_FirstVarIndexI(gi)) @@ -151,6 +152,10 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) { * specified tensortype. */ + /* What should I do with the faces, widths, or tables arrays? Why + did I bother asking for them? How does Cartoon get + e.g. boundary width information? */ + /* Call BndCartoon2DVI, passing the appropriate tensor type integer macro */ if (CCTK_Equals(tensortype, "scalar")) @@ -172,5 +177,6 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) { /* Free data */ free(vars); free(faces); + free(widths); free(tables); } |