Skip to content

Commit f44e6d2

Browse files
committed
ref_stiffness_transpose: Use matrix makers from modepy
1 parent d092157 commit f44e6d2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

grudge/op.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -439,14 +439,13 @@ def _reference_stiffness_transpose_matrices(
439439
in_grp.discretization_key()))
440440
def get_ref_stiffness_transpose_mat(out_grp, in_grp):
441441
if in_grp == out_grp:
442-
from meshmode.discretization.poly_element import diff_matrices, mass_matrix
443-
444-
mmat = mass_matrix(out_grp)
442+
mmat = mp.mass_matrix(out_grp.basis_obj(), out_grp.unit_nodes)
443+
diff_matrices = mp.diff_matrices(out_grp.basis_obj(), out_grp.unit_nodes)
445444
return actx.freeze(
446445
actx.tag_axis(1, DiscretizationDOFAxisTag(),
447446
actx.from_numpy(
448447
np.asarray(
449-
[dmat.T @ mmat.T for dmat in diff_matrices(out_grp)]))))
448+
[dmat.T @ mmat.T for dmat in diff_matrices]))))
450449

451450
from modepy import multi_vandermonde, vandermonde
452451

0 commit comments

Comments
 (0)