Skip to content

Commit

Permalink
Added missing API
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Nov 21, 2023
1 parent 50184f2 commit 4fbb97e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/FESpaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4fbb97e

Please sign in to comment.