diff --git a/src/L2_projection.jl b/src/L2_projection.jl index deebc6dd8b..70b997410f 100644 --- a/src/L2_projection.jl +++ b/src/L2_projection.jl @@ -81,7 +81,7 @@ end function _assemble_L2_matrix(fe_values, set, dh) n = Ferrite.getnbasefunctions(fe_values) - M = Symmetric(create_matrix(create_sparsity_pattern(dh; nnz_per_row = 2 * n))) + M = Symmetric(create_matrix(create_sparsity_pattern!(init_sparsity_pattern(dh; nnz_per_row = 2 * n), dh))) assembler = start_assemble(M) Me = zeros(n, n)