Skip to content

Commit

Permalink
Merge pull request #964 from gridap/dof-to-node-and-comp
Browse files Browse the repository at this point in the history
Added missing methods for LagrangianDofBasis
  • Loading branch information
JordiManyer committed Dec 8, 2023
2 parents 5d369ef + 3e86ff7 commit 10d0b59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Added

- Added `get_dof_to_node` and `get_dof_to_comp` for `LagrangianDofBasis`. Since PR[#964](https://github.com/gridap/Gridap.jl/pull/964).

### Changed

- Changed how `allocate_vector` works. Now it only allocates, instead of allocating+initialising to zero. Since PR[#963](https://github.com/gridap/Gridap.jl/pull/963).
Expand Down
2 changes: 2 additions & 0 deletions src/ReferenceFEs/LagrangianDofBases.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ function LagrangianDofBasis(::Type{T},nodes::Vector{<:Point}) where T
end

get_nodes(b::LagrangianDofBasis) = b.nodes
get_dof_to_node(b::LagrangianDofBasis) = b.dof_to_node
get_dof_to_comp(b::LagrangianDofBasis) = b.dof_to_comp

function _generate_dof_layout_node_major(::Type{<:Real},nnodes::Integer)
ndofs = nnodes
Expand Down

0 comments on commit 10d0b59

Please sign in to comment.