Skip to content

Commit 8de526a

Browse files
committed
set up modal discretization group factories
no longer done automatically in grudge when passing discr_tag_to_group_factory
1 parent 9d4f9a8 commit 8de526a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

mirgecom/discretization.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,13 @@ def create_discretization_collection(actx, volume_meshes, order, *,
5151
if tensor_product_elements:
5252
warn("Overintegration is not supported for tensor product elements.")
5353

54-
from grudge.dof_desc import DISCR_TAG_BASE, DISCR_TAG_QUAD
54+
from grudge.dof_desc import DISCR_TAG_BASE, DISCR_TAG_QUAD, DISCR_TAG_MODAL
5555
from grudge.discretization import make_discretization_collection
5656
from meshmode.discretization.poly_element import (
5757
QuadratureSimplexGroupFactory,
5858
PolynomialRecursiveNodesGroupFactory,
59-
LegendreGaussLobattoTensorProductGroupFactory as Lgl
59+
LegendreGaussLobattoTensorProductGroupFactory as Lgl,
60+
ModalGroupFactory
6061
)
6162

6263
if quadrature_order < 0:
@@ -66,7 +67,8 @@ def create_discretization_collection(actx, volume_meshes, order, *,
6667
return make_discretization_collection(
6768
actx, volume_meshes,
6869
discr_tag_to_group_factory={
69-
DISCR_TAG_BASE: Lgl(order)
70+
DISCR_TAG_BASE: Lgl(order),
71+
DISCR_TAG_MODAL: ModalGroupFactory(order)
7072
}
7173
)
7274
else:
@@ -76,5 +78,6 @@ def create_discretization_collection(actx, volume_meshes, order, *,
7678
DISCR_TAG_BASE: PolynomialRecursiveNodesGroupFactory(order=order,
7779
family="lgl"),
7880
DISCR_TAG_QUAD: QuadratureSimplexGroupFactory(quadrature_order),
81+
DISCR_TAG_MODAL: ModalGroupFactory(order)
7982
}
8083
)

0 commit comments

Comments
 (0)