Skip to content

Commit

Permalink
remove unused type args that cause allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
lijas committed Aug 19, 2021
1 parent de7567a commit f9162cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dofs/MixedDofHandler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function cellcoords!(global_coords::Vector{Vec{dim,T}}, dh::MixedDofHandler, i::
return global_coords
end

function cellnodes!(global_nodes::Vector{Int}, dh::MixedDofHandler, i::Int) where {dim,T}
function cellnodes!(global_nodes::Vector{Int}, dh::MixedDofHandler, i::Int)
@assert isclosed(dh)
@assert length(global_nodes) == nnodes_per_cell(dh, i)
unsafe_copyto!(global_nodes, 1, dh.cell_nodes.values, dh.cell_nodes.offset[i], length(global_nodes))
Expand Down

0 comments on commit f9162cb

Please sign in to comment.