From 829afddbb4bc5c9597e6f3914a5fd479c0afa2cd Mon Sep 17 00:00:00 2001 From: ndjinga Date: Wed, 16 Apr 2008 07:10:11 +0000 Subject: [PATCH] Debug print modifications --- src/INTERP_KERNEL/ConvexIntersector.txx | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/INTERP_KERNEL/ConvexIntersector.txx b/src/INTERP_KERNEL/ConvexIntersector.txx index d15c3fa9e..a13a43599 100644 --- a/src/INTERP_KERNEL/ConvexIntersector.txx +++ b/src/INTERP_KERNEL/ConvexIntersector.txx @@ -25,7 +25,7 @@ namespace INTERP_KERNEL _coordsB = mesh_B.getCoordinatesPtr(); if(PlanarIntersector::_printLevel >= 1) { - std::cout << " _intersection_type = convex " << std::endl; + std::cout << " - intersection type = convex " << std::endl; if(SPACEDIM==3){ if(PlanarIntersector::_doRotate) std::cout << " _do_rotate = true" << std::endl; else std::cout << " _do_rotate = false" << std::endl; @@ -78,6 +78,19 @@ namespace INTERP_KERNEL if(SPACEDIM==3) projection(Coords_A, Coords_B, nb_dist_NodesA, nb_dist_NodesB,_epsilon, PlanarIntersector::_medianPlane, PlanarIntersector::_doRotate); + + //DEBUG PRINTS + if(PlanarIntersector::_printLevel >= 3) + { + std::cout << std::endl << "Cell coordinates (possibly after projection)" << std::endl; + std::cout << std::endl << "icell_A= " << icell_A << ", nb nodes A= " << nb_NodesA << std::endl; + for(int i_A =0; i_A< nb_NodesA; i_A++) + {for (int idim=0; idim P(_epsilon, PlanarIntersector::_precision); std::deque inter = P.intersect_convex_polygons(&Coords_A[0], &Coords_B[0], @@ -93,13 +106,6 @@ namespace INTERP_KERNEL //DEBUG prints if(PlanarIntersector::_printLevel >= 3) { - std::cout << std::endl << "Cell coordinates after projection" << std::endl; - std::cout << std::endl << "icell_A= " << icell_A << ", nb nodes A= " << nb_NodesA << std::endl; - for(int i_A =0; i_A< nb_dist_NodesA; i_A++) - {for (int idim=0; idim