From f9162cbb72d6707c8b2cfb45e94f14db166759c2 Mon Sep 17 00:00:00 2001 From: Elias Date: Thu, 19 Aug 2021 22:16:33 +0200 Subject: [PATCH] remove unused type args that cause allocations --- src/Dofs/MixedDofHandler.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dofs/MixedDofHandler.jl b/src/Dofs/MixedDofHandler.jl index a83568fb2b..6091ebd29c 100644 --- a/src/Dofs/MixedDofHandler.jl +++ b/src/Dofs/MixedDofHandler.jl @@ -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))