]> https://gitweb.dealii.org/ - dealii.git/commitdiff
apply suggestion 10788/head
authorTimo Heister <timo.heister@gmail.com>
Sat, 1 Aug 2020 20:37:04 +0000 (16:37 -0400)
committerTimo Heister <timo.heister@gmail.com>
Sun, 2 Aug 2020 01:48:41 +0000 (21:48 -0400)
include/deal.II/dofs/dof_accessor.templates.h

index 8229ac7fd7b98748e81d660709e294383254a95c..c7c9cc567f480ce54e67be27ab716f91a6b1f34c 100644 (file)
@@ -281,29 +281,26 @@ namespace internal
         AssertIndexRange(obj_level, dof_handler.object_dof_indices.size());
         AssertIndexRange(d, dof_handler.object_dof_indices[obj_level].size());
 
-        unsigned int fe_index_;
         Assert(dof_handler.hp_capability_enabled, ExcInternalError());
 
-        {
-          AssertIndexRange(d, dof_handler.hp_object_fe_ptr.size());
-          AssertIndexRange(obj_index, dof_handler.hp_object_fe_ptr[d].size());
+        AssertIndexRange(d, dof_handler.hp_object_fe_ptr.size());
+        AssertIndexRange(obj_index, dof_handler.hp_object_fe_ptr[d].size());
 
-          const auto ptr =
-            std::find(dof_handler.hp_object_fe_indices[d].begin() +
-                        dof_handler.hp_object_fe_ptr[d][obj_index],
-                      dof_handler.hp_object_fe_indices[d].begin() +
-                        dof_handler.hp_object_fe_ptr[d][obj_index + 1],
-                      fe_index);
+        const auto ptr =
+          std::find(dof_handler.hp_object_fe_indices[d].begin() +
+                      dof_handler.hp_object_fe_ptr[d][obj_index],
+                    dof_handler.hp_object_fe_indices[d].begin() +
+                      dof_handler.hp_object_fe_ptr[d][obj_index + 1],
+                    fe_index);
 
-          Assert(ptr != dof_handler.hp_object_fe_indices[d].begin() +
-                          dof_handler.hp_object_fe_ptr[d][obj_index + 1],
-                 ExcNotImplemented());
+        Assert(ptr != dof_handler.hp_object_fe_indices[d].begin() +
+                        dof_handler.hp_object_fe_ptr[d][obj_index + 1],
+               ExcNotImplemented());
 
-          fe_index_ =
-            std::distance(dof_handler.hp_object_fe_indices[d].begin() +
-                            dof_handler.hp_object_fe_ptr[d][obj_index],
-                          ptr);
-        }
+        const unsigned int fe_index_ =
+          std::distance(dof_handler.hp_object_fe_indices[d].begin() +
+                          dof_handler.hp_object_fe_ptr[d][obj_index],
+                        ptr);
 
         AssertIndexRange(dof_handler.hp_capability_enabled ?
                            (dof_handler.hp_object_fe_ptr[d][obj_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.