]> https://gitweb.dealii.org/ - dealii.git/commitdiff
change variable name 7468/head
authorTimo Heister <timo.heister@gmail.com>
Sat, 24 Nov 2018 03:15:41 +0000 (22:15 -0500)
committerTimo Heister <timo.heister@gmail.com>
Sat, 24 Nov 2018 03:15:41 +0000 (22:15 -0500)
source/dofs/dof_renumbering.cc

index c201cec5d206d30f5f492193d239ab0812aae18f..4cc48a8f55d5bc6b538964b153786148fb7e41a9 100644 (file)
@@ -716,7 +716,7 @@ namespace DoFRenumbering
     // Get a reference to the set of dofs. Note that we assume that all cells
     // are assumed to be on the same level, otherwise the operation doesn't make
     // much sense (we will assert this below).
-    const IndexSet &dofset =
+    const IndexSet &locally_owned_dofs =
       is_level_operation ?
         start->get_dof_handler().locally_owned_mg_dofs(start->level()) :
         start->get_dof_handler().locally_owned_dofs();
@@ -823,7 +823,7 @@ namespace DoFRenumbering
         cell->get_active_or_mg_dof_indices(local_dof_indices);
 
         for (unsigned int i = 0; i < dofs_per_cell; ++i)
-          if (dofset.is_element(local_dof_indices[i]))
+          if (locally_owned_dofs.is_element(local_dof_indices[i]))
             component_to_dof_map[component_list[fe_index][i]].push_back(
               local_dof_indices[i]);
       }
@@ -943,9 +943,10 @@ namespace DoFRenumbering
              dof_index != end_of_component;
              ++dof_index)
           {
-            Assert(dofset.index_within_set(*dof_index) < new_indices.size(),
+            Assert(locally_owned_dofs.index_within_set(*dof_index) <
+                     new_indices.size(),
                    ExcInternalError());
-            new_indices[dofset.index_within_set(*dof_index)] =
+            new_indices[locally_owned_dofs.index_within_set(*dof_index)] =
               next_free_index++;
           }
       }
@@ -1083,7 +1084,7 @@ namespace DoFRenumbering
     // Get a reference to the set of dofs. Note that we assume that all cells
     // are assumed to be on the same level, otherwise the operation doesn't make
     // much sense (we will assert this below).
-    const IndexSet &dofset =
+    const IndexSet &locally_owned_dofs =
       is_level_operation ?
         start->get_dof_handler().locally_owned_mg_dofs(start->level()) :
         start->get_dof_handler().locally_owned_dofs();
@@ -1150,7 +1151,7 @@ namespace DoFRenumbering
         cell->get_active_or_mg_dof_indices(local_dof_indices);
 
         for (unsigned int i = 0; i < dofs_per_cell; ++i)
-          if (dofset.is_element(local_dof_indices[i]))
+          if (locally_owned_dofs.is_element(local_dof_indices[i]))
             block_to_dof_map[block_list[fe_index][i]].push_back(
               local_dof_indices[i]);
       }
@@ -1257,9 +1258,10 @@ namespace DoFRenumbering
              dof_index != end_of_component;
              ++dof_index)
           {
-            Assert(dofset.index_within_set(*dof_index) < new_indices.size(),
+            Assert(locally_owned_dofs.index_within_set(*dof_index) <
+                     new_indices.size(),
                    ExcInternalError());
-            new_indices[dofset.index_within_set(*dof_index)] =
+            new_indices[locally_owned_dofs.index_within_set(*dof_index)] =
               next_free_index++;
           }
       }

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.