From: Martin Kronbichler Date: Sat, 11 May 2019 10:04:24 +0000 (+0200) Subject: step-31: Fix compilation with clang X-Git-Tag: v9.1.0-rc1~65^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8090%2Fhead;p=dealii.git step-31: Fix compilation with clang --- 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) {