Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
meshmode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xiaoyu Wei
meshmode
Commits
4e2cbfab
Commit
4e2cbfab
authored
7 years ago
by
Matt Wala
Browse files
Options
Downloads
Patches
Plain Diff
Refiner: Change print statement to a log message.
parent
a786dae9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
meshmode/mesh/refinement/__init__.py
+5
-1
5 additions, 1 deletion
meshmode/mesh/refinement/__init__.py
with
5 additions
and
1 deletion
meshmode/mesh/refinement/__init__.py
+
5
−
1
View file @
4e2cbfab
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment