Skip to content

Commit

Permalink
Dont overintegration WADG for simplices
Browse files Browse the repository at this point in the history
  • Loading branch information
MTCam committed Jul 20, 2024
1 parent 7c8eaec commit a6c5168
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grudge/op.py
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,9 @@ def inverse_mass(dcoll: DiscretizationCollection, *args) -> ArrayOrContainer:
raise TypeError("invalid number of arguments")

if dd.uses_quadrature():
return _apply_inverse_mass_operator_quad(dcoll, dd, dd, vec)
if not dcoll._has_affine_groups(dd.domain_tag):
return _apply_inverse_mass_operator_quad(dcoll, dd, dd, vec)
dd = dd.with_discr_tag(DISCR_TAG_BASE)

return _apply_inverse_mass_operator(dcoll, dd, dd, vec)

Expand Down

0 comments on commit a6c5168

Please sign in to comment.