]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix clang-4 warnings 8063/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 10 May 2019 04:51:44 +0000 (06:51 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 10 May 2019 04:51:44 +0000 (06:51 +0200)
examples/step-24/step-24.cc
examples/step-53/step-53.cc
source/distributed/cell_weights.cc

index 7a29714488c62e684e54729a23e3fd68a0ac1204..daceb1ae3e00d0fd5ab88a72bf04d8b05fdf20c2 100644 (file)
@@ -143,11 +143,11 @@ namespace Step24
                          const unsigned int /*component*/ = 0) const override
     {
       static const std::array<Source, 5> sources{
-        Source(Point<dim>(0, 0), 0.025),
-        Source(Point<dim>(-0.135, 0), 0.05),
-        Source(Point<dim>(0.17, 0), 0.03),
-        Source(Point<dim>(-0.25, 0), 0.02),
-        Source(Point<dim>(-0.05, -0.15), 0.015)};
+        {Source(Point<dim>(0, 0), 0.025),
+         Source(Point<dim>(-0.135, 0), 0.05),
+         Source(Point<dim>(0.17, 0), 0.03),
+         Source(Point<dim>(-0.25, 0), 0.02),
+         Source(Point<dim>(-0.05, -0.15), 0.015)}};
 
       for (const auto &source : sources)
         if (p.distance(source.location) < source.radius)
index b76e5108106f09b62c9897303fa4d36b3230d452..f26f2408d5976f8ec713c4277ef492821e6dfabe 100644 (file)
@@ -110,9 +110,9 @@ namespace Step53
   // access any member variables of the class, and (ii) because they are
   // called at a time when the object is not initialized fully anyway.
   AfricaTopography::AfricaTopography()
-    : topography_data({std::make_pair(-6.983333, 11.966667),
-                       std::make_pair(25, 35.95)},
-                      {379, 219},
+    : topography_data({{std::make_pair(-6.983333, 11.966667),
+                        std::make_pair(25, 35.95)}},
+                      {{379, 219}},
                       Table<2, double>(380, 220, get_data().begin()))
   {}
 
index 4e9f9989ad9f3bea088f2ba7a55409eaa42edce6..d8c18121e4444aa12ae8fb853ad8215d48bf90ac 100644 (file)
@@ -149,11 +149,9 @@ namespace parallel
               fe_indices_children.insert(
                 cell->child(child_index)->active_fe_index());
 
-            unsigned int fe_index =
-              dof_handler->get_fe_collection().find_dominating_fe_extended(
-                fe_indices_children, /*codim=*/0);
-
-            Assert(fe_index != numbers::invalid_unsigned_int,
+            Assert(dof_handler->get_fe_collection().find_dominating_fe_extended(
+                     fe_indices_children, /*codim=*/0) !=
+                     numbers::invalid_unsigned_int,
                    ExcMessage(
                      "No FiniteElement has been found in your FECollection "
                      "that dominates all children of a cell you are trying "

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.