]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-31: Fix compilation with clang 8090/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 11 May 2019 10:04:24 +0000 (12:04 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 11 May 2019 11:52:00 +0000 (13:52 +0200)
examples/step-31/step-31.cc

index 6f559434a6cd788582b34292077422efc2f01dbb..76209c0505a5d74094e7ffab8711ee6943996d01 100644 (file)
@@ -1294,9 +1294,9 @@ namespace Step31
     // the update flags, zeroing out the local arrays and getting the values
     // of the old solution at the quadrature points. Then we are ready to loop
     // over the quadrature points on the cell.
-    auto cell             = stokes_dof_handler.begin_active(),
-         endc             = stokes_dof_handler.end();
-    auto temperature_cell = temperature_dof_handler.begin_active();
+    auto       cell             = stokes_dof_handler.begin_active();
+    const auto endc             = stokes_dof_handler.end();
+    auto       temperature_cell = temperature_dof_handler.begin_active();
 
     for (; cell != endc; ++cell, ++temperature_cell)
       {
@@ -1573,9 +1573,9 @@ namespace Step31
     // Stokes part we restrict ourselves to extracting the velocity part (and
     // ignoring the pressure part) by using
     // <code>stokes_fe_values[velocities].get_function_values</code>.
-    auto cell        = temperature_dof_handler.begin_active(),
-         endc        = temperature_dof_handler.end();
-    auto stokes_cell = stokes_dof_handler.begin_active();
+    auto       cell        = temperature_dof_handler.begin_active();
+    const auto endc        = temperature_dof_handler.end();
+    auto       stokes_cell = stokes_dof_handler.begin_active();
 
     for (; cell != endc; ++cell, ++stokes_cell)
       {

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.