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
5a16b103
Commit
5a16b103
authored
3 years ago
by
Thomas Gibson
Browse files
Options
Downloads
Patches
Plain Diff
Add documentation to various tags
parent
c5ef8372
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
grudge/dof_desc.py
+36
-7
36 additions, 7 deletions
grudge/dof_desc.py
with
36 additions
and
7 deletions
grudge/dof_desc.py
+
36
−
7
View file @
5a16b103
...
...
@@ -2,6 +2,7 @@
__copyright__
=
"""
Copyright (C) 2008 Andreas Kloeckner
Copyright (C) 2021 University of Illinois Board of Trustees
"""
__license__
=
"""
...
...
@@ -43,16 +44,38 @@ DOF description
# {{{ DOF description
class
DTAG_SCALAR
:
# noqa: N801
pass
class
DTAG_SCALAR
:
"""
A tag denoting scalar values.
"""
class
DTAG_VOLUME_ALL
:
# noqa: N801
pass
class
DTAG_VOLUME_ALL
:
"""
A tag denoting degrees of freedom defined
in all cell volumes.
"""
class
DTAG_BOUNDARY
:
"""
A tag describing the meaning of degrees of freedom
on element boundaries which are adjacent to elements
of another :class:`~meshmode.mesh.Mesh`.
.. attribute:: tag
.. automethod:: __init__
.. automethod:: __eq__
.. automethod:: __ne__
.. automethod:: __hash__
"""
class
DTAG_BOUNDARY
:
# noqa: N801
def
__init__
(
self
,
tag
):
"""
:arg tag: One of the following:
:class:`~meshmode.mesh.BTAG_ALL`,
:class:`~meshmode.mesh.BTAG_NONE`,
:class:`~meshmode.mesh.BTAG_REALLY_ALL`,
:class:`~meshmode.mesh.BTAG_PARTITION`.
"""
self
.
tag
=
tag
def
__eq__
(
self
,
other
):
...
...
@@ -68,8 +91,12 @@ class DTAG_BOUNDARY: # noqa: N801
return
"
<{}({})>
"
.
format
(
type
(
self
).
__name__
,
repr
(
self
.
tag
))
class
QTAG_NONE
:
# noqa: N801
pass
class
QTAG_NONE
:
"""
A quadrature tag indicating the use of a
basic discretization grid. This tag is used
to distinguish the base discretization (`QTAG_NONE`)
from quadrature (e.g. overintegration) grids.
"""
class
DOFDesc
:
...
...
@@ -78,6 +105,8 @@ class DOFDesc:
.. attribute:: domain_tag
.. attribute:: quadrature_tag
.. automethod:: __init__
.. automethod:: is_scalar
.. automethod:: is_discretized
.. automethod:: is_volume
...
...
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