Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
grudge
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Andreas Klöckner
grudge
Commits
95561d0f
Commit
95561d0f
authored
3 years ago
by
Thomas Gibson
Committed by
Andreas Klöckner
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Rename: interior_trace_pair -> local_interior_trace_pair
parent
f5638a3e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#238358
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grudge/trace_pair.py
+16
-6
16 additions, 6 deletions
grudge/trace_pair.py
with
16 additions
and
6 deletions
grudge/trace_pair.py
+
16
−
6
View file @
95561d0f
...
...
@@ -16,8 +16,8 @@ Boundary trace functions
Interior and cross-rank trace functions
---------------------------------------
.. autofunction:: interior_trace_pair
.. autofunction:: interior_trace_pairs
.. autofunction:: local_interior_trace_pair
.. autofunction:: cross_rank_trace_pairs
"""
...
...
@@ -215,7 +215,7 @@ def bv_trace_pair(
# {{{ Interior trace pairs
def
interior_trace_pair
(
dcoll
:
DiscretizationCollection
,
vec
)
->
TracePair
:
def
local_
interior_trace_pair
(
dcoll
:
DiscretizationCollection
,
vec
)
->
TracePair
:
r
"""
Return a :class:`TracePair` for the interior faces of
*dcoll* with a discretization tag specified by *discr_tag*.
This does not include interior faces on different MPI ranks.
...
...
@@ -247,21 +247,31 @@ def interior_trace_pair(dcoll: DiscretizationCollection, vec) -> TracePair:
return
TracePair
(
"
int_faces
"
,
interior
=
i
,
exterior
=
e
)
def
interior_trace_pair
(
dcoll
:
DiscretizationCollection
,
vec
)
->
TracePair
:
from
warnings
import
warn
warn
(
"
`grudge.op.interior_trace_pair` is deprecated and will be dropped
"
"
in version 2022.x. Use `local_interior_trace_pair`
"
"
instead, or `interior_trace_pairs` which also includes contributions
"
"
from different MPI ranks.
"
,
DeprecationWarning
,
stacklevel
=
2
)
return
local_interior_trace_pair
(
dcoll
,
vec
)
def
interior_trace_pairs
(
dcoll
:
DiscretizationCollection
,
vec
)
->
list
:
r
"""
Return a :class:`list` of :class:`TracePair` objects
defined on the interior faces of *dcoll* and any faces connected to a
parallel boundary.
Note that :func:`interior_trace_pair` provides the rank-local contributions
if those are needed in isolation.
Note that :func:`local_interior_trace_pair` provides the rank-local contributions
if those are needed in isolation. Similarly, :func:`cross_rank_trace_pairs`
provides only the trace pairs defined on cross-rank boundaries.
:arg vec: a :class:`~meshmode.dof_array.DOFArray` or object array of
:class:`~meshmode.dof_array.DOFArray`\ s.
:returns: a :class:`list` of :class:`TracePair` objects.
"""
return
(
[
interior_trace_pair
(
dcoll
,
vec
)]
+
cross_rank_trace_pairs
(
dcoll
,
vec
)
[
local_interior_trace_pair
(
dcoll
,
vec
)]
+
cross_rank_trace_pairs
(
dcoll
,
vec
)
)
# }}}
...
...
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