@@ -51,12 +51,13 @@ def create_discretization_collection(actx, volume_meshes, order, *,
51
51
if tensor_product_elements :
52
52
warn ("Overintegration is not supported for tensor product elements." )
53
53
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
55
55
from grudge .discretization import make_discretization_collection
56
56
from meshmode .discretization .poly_element import (
57
57
QuadratureSimplexGroupFactory ,
58
58
PolynomialRecursiveNodesGroupFactory ,
59
- LegendreGaussLobattoTensorProductGroupFactory as Lgl
59
+ LegendreGaussLobattoTensorProductGroupFactory as Lgl ,
60
+ ModalGroupFactory
60
61
)
61
62
62
63
if quadrature_order < 0 :
@@ -66,7 +67,8 @@ def create_discretization_collection(actx, volume_meshes, order, *,
66
67
return make_discretization_collection (
67
68
actx , volume_meshes ,
68
69
discr_tag_to_group_factory = {
69
- DISCR_TAG_BASE : Lgl (order )
70
+ DISCR_TAG_BASE : Lgl (order ),
71
+ DISCR_TAG_MODAL : ModalGroupFactory (order )
70
72
}
71
73
)
72
74
else :
@@ -76,5 +78,6 @@ def create_discretization_collection(actx, volume_meshes, order, *,
76
78
DISCR_TAG_BASE : PolynomialRecursiveNodesGroupFactory (order = order ,
77
79
family = "lgl" ),
78
80
DISCR_TAG_QUAD : QuadratureSimplexGroupFactory (quadrature_order ),
81
+ DISCR_TAG_MODAL : ModalGroupFactory (order )
79
82
}
80
83
)
0 commit comments