]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use const refs on cell_iterators instead of copying them in hp::DoFHandler. 7490/head
authorMarc Fehling <marc.fehling@gmx.net>
Fri, 30 Nov 2018 12:01:44 +0000 (13:01 +0100)
committerMarc Fehling <marc.fehling@gmx.net>
Fri, 30 Nov 2018 12:01:44 +0000 (13:01 +0100)
source/hp/dof_handler.cc

index 8d790c9a88870606ccdd1342e2e4cdc40386cd49..d304971601ab7beb0846d7301aa889bd9225afed 100644 (file)
@@ -1839,7 +1839,7 @@ namespace hp
         // respective children.
         for (const auto &pair : refined_cells_fe_index)
           {
-            const cell_iterator parent(*(pair.first), this);
+            const cell_iterator &parent = pair.first;
 
             for (unsigned int child_index = 0;
                  child_index < parent->n_children();
@@ -1859,7 +1859,7 @@ namespace hp
         // before the actual coarsening happened.
         for (const auto &pair : coarsened_cells_fe_index)
           {
-            const cell_iterator cell(*(pair.first), this);
+            const cell_iterator &cell = pair.first;
 
             if (cell->is_locally_owned())
               {

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.