diff options
author | rideout <rideout@eec4d7dc-71c2-46d6-addf-10296150bf52> | 2003-05-07 15:44:17 +0000 |
---|---|---|
committer | rideout <rideout@eec4d7dc-71c2-46d6-addf-10296150bf52> | 2003-05-07 15:44:17 +0000 |
commit | 0a147895608ecef8ddf962386d3c1eadcdce2ef4 (patch) | |
tree | 28e5da6edbb249c66bb7b07f1d62bdc322613cd6 | |
parent | c01031b1ce97594a3a3fa6b4ff298b293993ad2c (diff) |
Don't bother to retrieve faces, widths, or tables data on selected GVs.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Cartoon2D/trunk@71 eec4d7dc-71c2-46d6-addf-10296150bf52
-rw-r--r-- | src/ApplyCartoon.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/ApplyCartoon.c b/src/ApplyCartoon.c index 3c398df..7f5c040 100644 --- a/src/ApplyCartoon.c +++ b/src/ApplyCartoon.c @@ -79,7 +79,7 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS); void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) { DECLARE_CCTK_ARGUMENTS; - int num_vars, *vars, *faces, *widths, *tables, err, i, gi, group_tags_table; + int num_vars, *vars, err, i, gi, group_tags_table; char tensortype[TENSORTYPE_BUFF_SIZE]; /* Allocate memory to hold selected bcs */ @@ -88,12 +88,9 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) { 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, widths, tables, NULL); + err = Boundary_SelectedGVs(cctkGH, num_vars, vars, NULL, NULL, NULL, NULL); if (err != num_vars) { CCTK_VWarn(1, __LINE__, __FILE__, CCTK_THORNSTRING, @@ -152,10 +149,6 @@ 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")) @@ -176,7 +169,4 @@ void Cartoon_ApplyBoundaries(CCTK_ARGUMENTS) { /* Free data */ free(vars); - free(faces); - free(widths); - free(tables); } |