From 17f8de2f391ab15e7b6a80493c26ef6286ab686e Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Tue, 1 Oct 2024 11:05:20 +1000 Subject: [PATCH] Added constraint --- src/FESpaces.jl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/FESpaces.jl b/src/FESpaces.jl index 959c498..319e218 100644 --- a/src/FESpaces.jl +++ b/src/FESpaces.jl @@ -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...