diff --git a/src/Dofs/sparsity_pattern.jl b/src/Dofs/sparsity_pattern.jl index e34d34f1b5..0d1c0fbb44 100644 --- a/src/Dofs/sparsity_pattern.jl +++ b/src/Dofs/sparsity_pattern.jl @@ -263,7 +263,7 @@ Add entries corresponding to DoF couplings within the cells. function add_cell_entries!( sp::AbstractSparsityPattern, dh::DofHandler, ch::Union{ConstraintHandler, Nothing} = nothing; - keep_constrained::Bool, coupling::Union{AbstractMatrix{Bool}, Nothing}, + keep_constrained::Bool = true, coupling::Union{AbstractMatrix{Bool}, Nothing} = nothing, ) # Expand coupling from nfields × nfields to ndofs_per_cell × ndofs_per_cell # TODO: Perhaps this can be done in the loop over SubDofHandlers instead. diff --git a/test/test_sparsity_patterns.jl b/test/test_sparsity_patterns.jl index 3c104aee29..3b02c41873 100644 --- a/test/test_sparsity_patterns.jl +++ b/test/test_sparsity_patterns.jl @@ -263,7 +263,7 @@ end ps = make_patterns(dh) for p in ps add_cell_entries!(p, dh) - add_constraint_entries!(p, dh) + add_constraint_entries!(p, ch) end compare_patterns(ps...)