From 4fbb97eb664f9fbc8e70a7c8666a0f1e09eab12d Mon Sep 17 00:00:00 2001 From: JordiManyer Date: Tue, 21 Nov 2023 23:35:36 +1100 Subject: [PATCH] Added missing API --- src/FESpaces.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/FESpaces.jl b/src/FESpaces.jl index 21aedf42..5d4fdcd4 100644 --- a/src/FESpaces.jl +++ b/src/FESpaces.jl @@ -293,6 +293,18 @@ function FESpaces.get_free_dof_ids(fs::DistributedSingleFieldFESpace) fs.gids end +function FESpaces.get_dof_value_type(cell_shapefuns::DistributedCellField,cell_dof_basis::DistributedCellDof) + vt = map(local_views(cell_shapefuns),local_views(cell_dof_basis)) do cell_shapefuns, cell_dof_basis + FESpaces.get_dof_value_type(cell_shapefuns,cell_dof_basis) + end + # Jordi: is this always consistent between processors? It should, I think... + return PartitionedArrays.getany(vt) +end + +function FESpaces.ConstraintStyle(::Type{<:DistributedSingleFieldFESpace{A}}) where A + return FESpaces.ConstraintStyle(eltype(A)) +end + function FESpaces.get_dirichlet_dof_values(U::DistributedSingleFieldFESpace) map(get_dirichlet_dof_values,U.spaces) end