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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Alexandru Fikl
grudge
Commits
3bcf19cf
Commit
3bcf19cf
authored
7 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Rename quad_group_factory to quad_tag_to_group_factory
parent
9ae6b173
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/advection/var-velocity.py
+1
-1
1 addition, 1 deletion
examples/advection/var-velocity.py
grudge/discretization.py
+5
-5
5 additions, 5 deletions
grudge/discretization.py
test/test_grudge.py
+1
-1
1 addition, 1 deletion
test/test_grudge.py
with
7 additions
and
7 deletions
examples/advection/var-velocity.py
+
1
−
1
View file @
3bcf19cf
...
...
@@ -68,7 +68,7 @@ def main(write_output=True, order=4):
from
meshmode.discretization.poly_element
import
QuadratureSimplexGroupFactory
discr
=
DGDiscretizationWithBoundaries
(
cl_ctx
,
mesh
,
order
=
order
,
quad_group_factory
=
{
quad_
tag_to_
group_factory
=
{
"
product
"
:
QuadratureSimplexGroupFactory
(
order
=
4
*
order
)
})
...
...
This diff is collapsed.
Click to expand it.
grudge/discretization.py
+
5
−
5
View file @
3bcf19cf
...
...
@@ -47,17 +47,17 @@ class DGDiscretizationWithBoundaries(DiscretizationBase):
.. automethod :: zeros
"""
def
__init__
(
self
,
cl_ctx
,
mesh
,
order
,
quad_group_factory
=
None
):
def
__init__
(
self
,
cl_ctx
,
mesh
,
order
,
quad_
tag_to_
group_factory
=
None
):
"""
:param quad_min_degrees: A mapping from quadrature tags to the degrees
to which the desired quadrature is supposed to be exact.
"""
if
quad_group_factory
is
None
:
quad_group_factory
=
{}
if
quad_
tag_to_
group_factory
is
None
:
quad_
tag_to_
group_factory
=
{}
self
.
order
=
order
self
.
quad_group_factory
=
quad_group_factory
self
.
quad_
tag_to_
group_factory
=
quad_
tag_to_
group_factory
from
meshmode.discretization
import
Discretization
...
...
@@ -206,7 +206,7 @@ class DGDiscretizationWithBoundaries(DiscretizationBase):
PolynomialWarpAndBlendGroupFactory
if
quadrature_tag
is
not
sym
.
QTAG_NONE
:
return
self
.
quad_group_factory
[
quadrature_tag
]
return
self
.
quad_
tag_to_
group_factory
[
quadrature_tag
]
else
:
return
PolynomialWarpAndBlendGroupFactory
(
order
=
self
.
order
)
...
...
This diff is collapsed.
Click to expand it.
test/test_grudge.py
+
1
−
1
View file @
3bcf19cf
...
...
@@ -444,7 +444,7 @@ def test_improvement_quadrature(ctx_factory, order):
order
=
order
)
discr
=
DGDiscretizationWithBoundaries
(
cl_ctx
,
mesh
,
order
=
order
,
quad_group_factory
=
{
quad_
tag_to_
group_factory
=
{
"
product
"
:
QuadratureSimplexGroupFactory
(
order
=
4
*
order
)
})
...
...
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