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
Ellis Hoag
meshmode
Commits
40e721b7
Commit
40e721b7
authored
10 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Add logging to connection builder
parent
9019b013
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/discretization/connection.py
+13
-2
13 additions, 2 deletions
meshmode/discretization/connection.py
with
13 additions
and
2 deletions
meshmode/discretization/connection.py
+
13
−
2
View file @
40e721b7
...
...
@@ -28,6 +28,9 @@ import pyopencl as cl
import
pyopencl.array
# noqa
from
pytools
import
memoize_method
,
memoize_method_nested
,
Record
import
logging
logger
=
logging
.
getLogger
(
__name__
)
__doc__
=
"""
.. autoclass:: DiscretizationConnection
...
...
@@ -255,6 +258,8 @@ def make_boundary_restriction(queue, discr, group_factory):
:return: a tuple ``(bdry_mesh, bdry_discr, connection)``
"""
logger
.
info
(
"
building boundary connection: start
"
)
# {{{ build face_map
# maps (igrp, el_grp, face_id) to a frozenset of vertex IDs
...
...
@@ -355,7 +360,9 @@ def make_boundary_restriction(queue, discr, group_factory):
grp_vertex_unit_coordinates
[
loc_face_vertices
]
# Find A, b such that A [e_1 e_2] + b = [r_1 r_2]
# (Notation assumes that the volume is 3D and the face is 2D.)
# (Notation assumes that the volume is 3D and the face is 2D.
# Code does not.)
b
=
face_vertex_unit_coordinates
[
0
]
A
=
(
face_vertex_unit_coordinates
[
1
:]
...
...
@@ -404,9 +411,13 @@ def make_boundary_restriction(queue, discr, group_factory):
bdry_discr
=
Discretization
(
discr
.
cl_context
,
bdry_mesh
,
group_factory
)
return
bdry_mesh
,
bdry_discr
,
_build_boundary_connection
(
connection
=
_build_boundary_connection
(
queue
,
discr
,
bdry_discr
,
connection_data
)
logger
.
info
(
"
building boundary connection: done
"
)
return
bdry_mesh
,
bdry_discr
,
connection
# }}}
# vim: foldmethod=marker
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