Skip to content
Snippets Groups Projects
Commit 4e2cbfab authored by Matt Wala's avatar Matt Wala
Browse files

Refiner: Change print statement to a log message.

parent a786dae9
No related branches found
No related tags found
No related merge requests found
...@@ -27,6 +27,10 @@ from six.moves import range ...@@ -27,6 +27,10 @@ from six.moves import range
from pytools import RecordWithoutPickling from pytools import RecordWithoutPickling
import logging
logger = logging.getLogger(__name__)
class TreeRayNode(object): class TreeRayNode(object):
"""Describes a ray as a tree, this class represents each node in this tree """Describes a ray as a tree, this class represents each node in this tree
.. attribute:: left .. attribute:: left
...@@ -854,7 +858,7 @@ class Refiner(object): ...@@ -854,7 +858,7 @@ class Refiner(object):
element_to_element[self.hanging_vertex_element[ivertex][0]].update([element_index]) element_to_element[self.hanging_vertex_element[ivertex][0]].update([element_index])
''' '''
element_index += 1 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): for iel, neighbors in enumerate(element_to_element):
if iel in neighbors: if iel in neighbors:
neighbors.remove(iel) neighbors.remove(iel)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment