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
a43af9f9
Commit
a43af9f9
authored
3 years ago
by
Thomas Gibson
Browse files
Options
Downloads
Patches
Plain Diff
Ensure a base discretization DD is available for nodes
parent
735b7240
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/geometry/metrics.py
+6
-4
6 additions, 4 deletions
grudge/geometry/metrics.py
with
6 additions
and
4 deletions
grudge/geometry/metrics.py
+
6
−
4
View file @
a43af9f9
...
...
@@ -26,7 +26,7 @@ THE SOFTWARE.
import
numpy
as
np
from
grudge.dof_desc
import
(
DD_VOLUME
,
DOFDesc
DD_VOLUME
,
DOFDesc
,
QTAG_NONE
)
from
meshmode.dof_array
import
thaw
from
pymbolic.geometric_algebra
import
MultiVector
...
...
@@ -54,6 +54,8 @@ def forward_metric_nth_derivative(actx, dcoll, xyz_axis, ref_axes, dd=None):
if
dd
is
None
:
dd
=
DD_VOLUME
inner_dd
=
dd
.
with_qtag
(
QTAG_NONE
)
if
isinstance
(
ref_axes
,
int
):
ref_axes
=
((
ref_axes
,
1
),)
...
...
@@ -72,13 +74,13 @@ def forward_metric_nth_derivative(actx, dcoll, xyz_axis, ref_axes, dd=None):
from
meshmode.discretization
import
num_reference_derivative
vec
=
num_reference_derivative
(
dcoll
.
discr_from_dd
(
DD_VOLUME
),
dcoll
.
discr_from_dd
(
inner_dd
),
flat_ref_axes
,
thaw
(
actx
,
dcoll
.
discr_from_dd
(
DD_VOLUME
).
nodes
())[
xyz_axis
]
thaw
(
actx
,
dcoll
.
discr_from_dd
(
inner_dd
).
nodes
())[
xyz_axis
]
)
if
dd
.
uses_quadrature
():
vec
=
dcoll
.
connection_from_dds
(
DD_VOLUME
,
dd
)(
vec
)
vec
=
dcoll
.
connection_from_dds
(
inner_dd
,
dd
)(
vec
)
return
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