Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/FESpaces/FESpaceInterface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ function get_fe_space(f::FEFunction)
@abstractmethod
end

function get_dirichlet_dof_values(f::FEFunction)
get_dirichlet_dof_values(get_fe_space(f))
end

function get_cell_is_dirichlet(f::FEFunction)
get_cell_is_dirichlet(get_fe_space(f))
end
Expand Down
2 changes: 2 additions & 0 deletions test/FESpacesTests/TrialFESpacesTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ e = u - uh
trian = Triangulation(model)
quad = CellQuadrature(trian,order)

@test get_dirichlet_dof_values(uh) ≈ [0.0, 1/3, 2/3, 1/6, 0.5, 5/6]

el2 = sqrt(sum(integrate(inner(e,e),quad)))
@test el2 < 1.0e-10

Expand Down
Loading