From ea21b5590bd1359e045b6c0948589cabf88d2d19 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 11 May 2019 13:34:53 -0400 Subject: [PATCH] Use preincrement consistently --- examples/step-42/step-42.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/step-42/step-42.cc b/examples/step-42/step-42.cc index 23db5134cb..ad4b53b5a8 100644 --- a/examples/step-42/step-42.cc +++ b/examples/step-42/step-42.cc @@ -461,7 +461,7 @@ namespace Step42 AssertThrow(nx > 0 && ny > 0, ExcMessage("Invalid file format.")); - for (int k = 0; k < nx * ny; k++) + for (int k = 0; k < nx * ny; ++k) { double val; f >> val; @@ -1048,7 +1048,7 @@ namespace Step42 const unsigned int start = (newton_rhs.local_range().first), end = (newton_rhs.local_range().second); - for (unsigned int j = start; j < end; j++) + for (unsigned int j = start; j < end; ++j) diag_mass_matrix_vector(j) = mass_matrix.diag_element(j); diag_mass_matrix_vector.compress(VectorOperation::insert); @@ -1175,7 +1175,7 @@ namespace Step42 cell->get_dof_indices(local_dof_indices); - for (unsigned int i = 0; i < dofs_per_cell; i++) + for (unsigned int i = 0; i < dofs_per_cell; ++i) mass_matrix.add(local_dof_indices[i], local_dof_indices[i], cell_matrix(i, i)); @@ -1814,7 +1814,7 @@ namespace Step42 } else { - for (unsigned int i = 0; i < 5; i++) + for (unsigned int i = 0; i < 5; ++i) { distributed_solution = solution; -- 2.39.5