aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4>2003-03-17 20:07:08 +0000
committerrideout <rideout@6a38eb6e-646e-4a02-a296-d141613ad6c4>2003-03-17 20:07:08 +0000
commitd5c30e523b1d9645c233f9ac209bd07499de48bd (patch)
tree94724c747ad419913eae18acf1f94385c0b04c5d
parent7b5e2552a84de465fcb7fe53082ef1d0b58febfd (diff)
Add some debugging code.
Comment out redundant memset(). git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/Boundary/trunk@214 6a38eb6e-646e-4a02-a296-d141613ad6c4
-rw-r--r--src/RadiationBoundary.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/RadiationBoundary.c b/src/RadiationBoundary.c
index a076f4e..b754b6f 100644
--- a/src/RadiationBoundary.c
+++ b/src/RadiationBoundary.c
@@ -80,6 +80,8 @@
#include "Symmetry.h"
#include "Boundary.h"
+/* #define DEBUG */
+
/* the rcs ID and its dummy function to use it */
static const char *rcsid = "$Header$";
CCTK_FILEVERSION(CactusBase_Boundary_RadiationBoundary_c);
@@ -154,7 +156,16 @@ int BndRadiative(const cGH *GH, int num_vars, int *vars, int *faces,
int prev_time_level; /* variable (index) which holds the previous time level */
#ifdef DEBUG
- printf("BndRadiative(): got passed GH=%p, num_vars=%d, var_indices[0]=%d, table_handles[0]=%d\n", (const void *) GH, num_vars, var_indices[0], table_handles[0]);
+ printf("BndRadiative() got passed: GH=%p, num_vars=%d:\n", (const void *) GH,
+ num_vars);
+ printf("var index var name table handle\n");
+ for (i=0; i<num_vars; ++i)
+ {
+ printf("%d %12s %d\n", vars[i], CCTK_VarName(vars[i]), tables[i]);
+ }
+ printf("end of table\n");
+
+ /* CCTK_WARN(0, "stopping code"); */
#endif
retval = 0; stencil_alldirs = NULL; max_gdim = 0;
@@ -1640,7 +1651,7 @@ static int ApplyBndRadiative (const cGH *GH,
+ boundary is a physical boundary
+ have enough grid points
*/
- memset (doBC, 1, sizeof (doBC));
+ /* memset (doBC, 1, sizeof (doBC)); doBC is initialized below */
if (sGHex)
{
for (i = 0; i < 2 * MAXDIM; i++)