From: Mathias Anselmann Date: Wed, 11 Nov 2020 09:33:42 +0000 (+0100) Subject: save a copy of the locally owned DoFs IndexSet and use a reference instead X-Git-Tag: v9.3.0-rc1~910^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d958b57563aef2541184b7f958d63a4b5b84cd8b;p=dealii.git save a copy of the locally owned DoFs IndexSet and use a reference instead --- 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,