Skip to content

Commit 37cb194

Browse files
committed
Generise _add_distributed_constraint
1 parent 3af4349 commit 37cb194

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/FESpaces.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -651,11 +651,11 @@ function _add_distributed_constraint(
651651
F::DistributedFESpace,cell_reffe::AbstractArray,constraint
652652
)
653653
isnothing(constraint) && return F
654-
reffe = map(cell_reffe) do cell_reffe
654+
order = map(cell_reffe) do cell_reffe
655655
reffes, ctypes = compress_cell_data(cell_reffe)
656-
return only(reffes)
656+
return maximum(get_order,reffes;init=0)
657657
end |> getany
658-
_add_distributed_constraint(F,reffe,constraint)
658+
_add_distributed_constraint(F,order,constraint)
659659
end
660660

661661
function _add_distributed_constraint(F::DistributedFESpace,order::Integer,constraint)

0 commit comments

Comments
 (0)