Skip to content

Commit

Permalink
actually add the high-order quadrature rule referenced in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
a-alveyblanc committed Oct 11, 2024
1 parent a449133 commit 8322164
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions meshmode/discretization/poly_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,8 +592,15 @@ def __init__(self, mesh_el_group, order):
unit_nodes_1d = legendre_gauss_lobatto_nodes(order)
unit_nodes = mp.tensor_product_nodes([unit_nodes_1d]*mesh_el_group.dim)

self._quadrature_rule = mp.LegendreGaussLobattoTensorProductQuadrature(
order, mesh_el_group.dim)

super().__init__(mesh_el_group, order, unit_nodes=unit_nodes)

@memoize_method
def quadrature_rule(self):
return self._quadrature_rule

def discretization_key(self):
return (type(self), self.dim, self.order)

Expand Down

0 comments on commit 8322164

Please sign in to comment.