]> https://gitweb.dealii.org/ - dealii.git/commitdiff
save a copy of the locally owned DoFs IndexSet and use a reference instead
authorMathias Anselmann <mathias.anselmann@posteo.de>
Wed, 11 Nov 2020 09:33:42 +0000 (10:33 +0100)
committerMathias Anselmann <mathias.anselmann@posteo.de>
Wed, 11 Nov 2020 09:33:42 +0000 (10:33 +0100)
source/dofs/dof_renumbering.cc

index 03a4f8bd3575b738e2bfd5d238d1a3afd4f6acfd..9ea1a95e33b1e04e558584f4251d0ed6bfb0dde1 100644 (file)
@@ -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,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.