From 4e2cbfabd0fb07b1f1e2d0c25a3b8ef87c1f01a5 Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Thu, 6 Apr 2017 14:00:54 -0500 Subject: [PATCH] Refiner: Change print statement to a log message. --- meshmode/mesh/refinement/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/meshmode/mesh/refinement/__init__.py b/meshmode/mesh/refinement/__init__.py index 3c39dde0..01c254b6 100644 --- a/meshmode/mesh/refinement/__init__.py +++ b/meshmode/mesh/refinement/__init__.py @@ -27,6 +27,10 @@ from six.moves import range from pytools import RecordWithoutPickling +import logging +logger = logging.getLogger(__name__) + + class TreeRayNode(object): """Describes a ray as a tree, this class represents each node in this tree .. attribute:: left @@ -854,7 +858,7 @@ class Refiner(object): element_to_element[self.hanging_vertex_element[ivertex][0]].update([element_index]) ''' element_index += 1 - print(len(element_to_element)) + logger.debug("number of new elements: %d" % len(element_to_element)) for iel, neighbors in enumerate(element_to_element): if iel in neighbors: neighbors.remove(iel) -- GitLab