From d958b57563aef2541184b7f958d63a4b5b84cd8b Mon Sep 17 00:00:00 2001 From: Mathias Anselmann Date: Wed, 11 Nov 2020 10:33:42 +0100 Subject: [PATCH] save a copy of the locally owned DoFs IndexSet and use a reference instead --- source/dofs/dof_renumbering.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dofs/dof_renumbering.cc b/source/dofs/dof_renumbering.cc index 03a4f8bd35..9ea1a95e33 100644 --- a/source/dofs/dof_renumbering.cc +++ b/source/dofs/dof_renumbering.cc @@ -410,8 +410,8 @@ namespace DoFRenumbering // // note that if constraints are not requested, then the 'constraints' // object will be empty and using it has no effect - IndexSet locally_relevant_dofs; - const IndexSet locally_owned_dofs = [&]() { + IndexSet locally_relevant_dofs; + const IndexSet &locally_owned_dofs = [&]() -> const IndexSet & { if (reorder_level_dofs == false) { DoFTools::extract_locally_relevant_dofs(dof_handler, -- 2.39.5