From 196f50c27f680b0866434edf75554b7572455d80 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 29 Nov 2022 08:43:48 -0700 Subject: [PATCH] Don't make copies of expensive objects. --- source/dofs/dof_renumbering.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/dofs/dof_renumbering.cc b/source/dofs/dof_renumbering.cc index 3486224312..c80b473594 100644 --- a/source/dofs/dof_renumbering.cc +++ b/source/dofs/dof_renumbering.cc @@ -759,8 +759,8 @@ namespace DoFRenumbering const std::vector &component_order_arg, const bool is_level_operation) { - const hp::FECollection fe_collection( - start->get_dof_handler().get_fe_collection()); + const hp::FECollection &fe_collection = + start->get_dof_handler().get_fe_collection(); // do nothing if the FE has only // one component @@ -1072,8 +1072,8 @@ namespace DoFRenumbering const ENDITERATOR & end, const bool is_level_operation) { - const hp::FECollection fe_collection( - start->get_dof_handler().get_fe_collection()); + const hp::FECollection &fe_collection = + start->get_dof_handler().get_fe_collection(); // do nothing if the FE has only // one component -- 2.39.5