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
a6df707a
Commit
a6df707a
authored
3 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
op: returns a scalar, where applicable (not integer)
parent
6cdee302
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grudge/op.py
+6
-6
6 additions, 6 deletions
grudge/op.py
with
6 additions
and
6 deletions
grudge/op.py
+
6
−
6
View file @
a6df707a
...
@@ -213,7 +213,7 @@ def h_max_from_volume(dcoll: DiscretizationCollection, dim=None, dd=None):
...
@@ -213,7 +213,7 @@ def h_max_from_volume(dcoll: DiscretizationCollection, dim=None, dd=None):
:attr:`grudge.DiscretizationCollection.dim` is used.
:attr:`grudge.DiscretizationCollection.dim` is used.
:arg dd: a :class:`~grudge.dof_desc.DOFDesc`, or a value convertible to one.
:arg dd: a :class:`~grudge.dof_desc.DOFDesc`, or a value convertible to one.
Defaults to the base volume discretization if not provided.
Defaults to the base volume discretization if not provided.
:returns: a
n intege
r denoting the maximum characteristic length.
:returns: a
scala
r denoting the maximum characteristic length.
"""
"""
if
dd
is
None
:
if
dd
is
None
:
dd
=
dof_desc
.
DD_VOLUME
dd
=
dof_desc
.
DD_VOLUME
...
@@ -240,7 +240,7 @@ def h_min_from_volume(dcoll: DiscretizationCollection, dim=None, dd=None):
...
@@ -240,7 +240,7 @@ def h_min_from_volume(dcoll: DiscretizationCollection, dim=None, dd=None):
:attr:`grudge.DiscretizationCollection.dim` is used.
:attr:`grudge.DiscretizationCollection.dim` is used.
:arg dd: a :class:`~grudge.dof_desc.DOFDesc`, or a value convertible to one.
:arg dd: a :class:`~grudge.dof_desc.DOFDesc`, or a value convertible to one.
Defaults to the base volume discretization if not provided.
Defaults to the base volume discretization if not provided.
:returns: a
n intege
r denoting the minimum characteristic length.
:returns: a
scala
r denoting the minimum characteristic length.
"""
"""
if
dd
is
None
:
if
dd
is
None
:
dd
=
dof_desc
.
DD_VOLUME
dd
=
dof_desc
.
DD_VOLUME
...
@@ -1006,7 +1006,7 @@ def nodal_summation(dcoll: DiscretizationCollection, vec):
...
@@ -1006,7 +1006,7 @@ def nodal_summation(dcoll: DiscretizationCollection, vec):
r
"""
Return the nodal sum of a vector of degrees of freedom *vec*.
r
"""
Return the nodal sum of a vector of degrees of freedom *vec*.
:arg vec: a :class:`~meshmode.dof_array.DOFArray`.
:arg vec: a :class:`~meshmode.dof_array.DOFArray`.
:returns: a
n intege
r denoting the nodal sum.
:returns: a
scala
r denoting the nodal sum.
"""
"""
# FIXME: Make MPI-aware
# FIXME: Make MPI-aware
actx
=
vec
.
array_context
actx
=
vec
.
array_context
...
@@ -1024,7 +1024,7 @@ def nodal_minimum(dcoll: DiscretizationCollection, vec):
...
@@ -1024,7 +1024,7 @@ def nodal_minimum(dcoll: DiscretizationCollection, vec):
r
"""
Return the nodal minimum of a vector of degrees of freedom *vec*.
r
"""
Return the nodal minimum of a vector of degrees of freedom *vec*.
:arg vec: a :class:`~meshmode.dof_array.DOFArray`.
:arg vec: a :class:`~meshmode.dof_array.DOFArray`.
:returns: a
n intege
r denoting the nodal minimum.
:returns: a
scala
r denoting the nodal minimum.
"""
"""
# FIXME: Make MPI-aware
# FIXME: Make MPI-aware
actx
=
vec
.
array_context
actx
=
vec
.
array_context
...
@@ -1043,7 +1043,7 @@ def nodal_maximum(dcoll: DiscretizationCollection, vec):
...
@@ -1043,7 +1043,7 @@ def nodal_maximum(dcoll: DiscretizationCollection, vec):
r
"""
Return the nodal maximum of a vector of degrees of freedom *vec*.
r
"""
Return the nodal maximum of a vector of degrees of freedom *vec*.
:arg vec: a :class:`~meshmode.dof_array.DOFArray`.
:arg vec: a :class:`~meshmode.dof_array.DOFArray`.
:returns: a
n intege
r denoting the nodal maximum.
:returns: a
scala
r denoting the nodal maximum.
"""
"""
# FIXME: Make MPI-aware
# FIXME: Make MPI-aware
actx
=
vec
.
array_context
actx
=
vec
.
array_context
...
@@ -1058,7 +1058,7 @@ def integral(dcoll: DiscretizationCollection, vec, dd=None):
...
@@ -1058,7 +1058,7 @@ def integral(dcoll: DiscretizationCollection, vec, dd=None):
:arg vec: a :class:`~meshmode.dof_array.DOFArray`
:arg vec: a :class:`~meshmode.dof_array.DOFArray`
:arg dd: a :class:`~grudge.dof_desc.DOFDesc`, or a value convertible to one.
:arg dd: a :class:`~grudge.dof_desc.DOFDesc`, or a value convertible to one.
Defaults to the base volume discretization if not provided.
Defaults to the base volume discretization if not provided.
:returns: a
n intege
r denoting the evaluated integral.
:returns: a
scala
r denoting the evaluated integral.
"""
"""
if
dd
is
None
:
if
dd
is
None
:
...
...
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