Skip to content

Commit

Permalink
Stop supplying orth weight to TP basis
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer authored Nov 14, 2023
1 parent 1bb7bd3 commit ffa1b51
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions meshmode/discretization/poly_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,7 @@ def __init__(self, mesh_el_group: _MeshTensorProductElementGroup,
# in a TensorProductBasis object if this is the case
if not isinstance(basis, mp.TensorProductBasis):
if basis._dim == 1 and unit_nodes.shape[0] == 1:
from modepy.modes import _get_orth_weight
basis = mp.TensorProductBasis([basis],
_get_orth_weight([basis]))
basis = mp.TensorProductBasis([basis])
else:
raise ValueError("`basis` is not a TensorProductBasis object, "
"and `basis` and `unit_nodes` are not both of "
Expand Down

0 comments on commit ffa1b51

Please sign in to comment.