Skip to content

Commit

Permalink
fix l2
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed May 22, 2024
1 parent fc2080a commit 8d2eb48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/L2_projection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8d2eb48

Please sign in to comment.