Skip to content

Commit

Permalink
ref_stiffness_transpose: Use matrix makers from modepy
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Jul 16, 2024
1 parent f24eded commit 7181e8b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions grudge/op.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,14 +439,13 @@ def _reference_stiffness_transpose_matrices(
in_grp.discretization_key()))
def get_ref_stiffness_transpose_mat(out_grp, in_grp):
if in_grp == out_grp:
from meshmode.discretization.poly_element import diff_matrices, mass_matrix

mmat = mass_matrix(out_grp)
mmat = mp.mass_matrix(out_grp.basis_obj(), out_grp.unit_nodes)
diff_matrices = mp.diff_matrices(out_grp.basis_obj(), out_grp.unit_nodes)
return actx.freeze(
actx.tag_axis(1, DiscretizationDOFAxisTag(),
actx.from_numpy(
np.asarray(
[dmat.T @ mmat.T for dmat in diff_matrices(out_grp)]))))
[dmat.T @ mmat.T for dmat in diff_matrices]))))

from modepy import multi_vandermonde, vandermonde

Expand Down

0 comments on commit 7181e8b

Please sign in to comment.