From 4b4c38909382fc6fc696c2398c79b622e1239703 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Sat, 11 May 2019 12:04:24 +0200 Subject: [PATCH] step-31: Fix compilation with clang --- examples/step-31/step-31.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/step-31/step-31.cc b/examples/step-31/step-31.cc index 6f559434a6..76209c0505 100644 --- a/examples/step-31/step-31.cc +++ b/examples/step-31/step-31.cc @@ -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 // stokes_fe_values[velocities].get_function_values. - 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) { -- 2.39.5