Skip to content

Commit

Permalink
Added constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Oct 1, 2024
1 parent 52fbadd commit 17f8de2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/FESpaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,22 @@ function _compute_new_distributed_fixedval(
return c
end

"""
ConstantFESpace(
model::DistributedDiscreteModel;
constraint_type=:global,
kwargs...
)
Distributed equivalent to `ConstantFESpace(model;kwargs...)`.
With `constraint_type=:global`, a single dof is shared by all processors.
This creates a global constraint, which is NOT scalable in parallel. Use at your own peril.
With `constraint_type=:local`, a single dof is owned by each processor and shared with no one else.
This space is locally-constant in each processor, and therefore scalable (but not equivalent
to its serial counterpart).
"""
function FESpaces.ConstantFESpace(
model::DistributedDiscreteModel;
constraint_type=:global,kwargs...
Expand Down

0 comments on commit 17f8de2

Please sign in to comment.