Skip to content

Commit

Permalink
Merge pull request #1062 from janmodderman/master
Browse files Browse the repository at this point in the history
add get_dof_value_type to FESpacesWithLinearConstraints
  • Loading branch information
JordiManyer authored Dec 2, 2024
2 parents b05bebc + 7a8e05d commit 2c5e688
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Added get_dof_value_type for FESpacesWithLinearConstraints. Since PR[#1062](https://github.com/gridap/Gridap.jl/pull/1062).
- Added Xiao-Gimbutas quadratures for simplices. Since PR[#1058](https://github.com/gridap/Gridap.jl/pull/1058).
- Small improvements of the documentation of `Gridap.TensorValues`. Since PR[#1051](https://github.com/gridap/Gridap.jl/pull/1051).

Expand Down
2 changes: 2 additions & 0 deletions src/FESpaces/FESpacesWithLinearConstraints.jl
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ function get_fe_dof_basis(f::FESpaceWithLinearConstraints)
get_fe_dof_basis(f.space)
end

get_dof_value_type(f::FESpaceWithLinearConstraints) = get_dof_value_type(f.space)

get_dirichlet_dof_ids(f::FESpaceWithLinearConstraints) = Base.OneTo(length(f.mDOF_to_DOF) - f.n_fmdofs)

num_dirichlet_tags(f::FESpaceWithLinearConstraints) = num_dirichlet_tags(f.space)
Expand Down
11 changes: 11 additions & 0 deletions test/FESpacesTests/FESpacesWithLinearConstraintsTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,15 @@ tol = 1.e-9
@test e_l2 < tol
@test e_h1 < tol

V2 = FESpace(
model,ReferenceFE(lagrangian,Float64,1), conformity=:H1, dirichlet_tags="dirichlet", vector_type=ComplexF64)

Vc2 = FESpaceWithLinearConstraints(
sDOF_to_dof,
sDOF_to_dofs,
sDOF_to_coeffs,
V2)

@test get_dof_value_type(Vc2) <: ComplexF64

end # module

0 comments on commit 2c5e688

Please sign in to comment.