]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-67: remove superfluous for loop 17060/head
authorMagdalena Schreter <magdalena.schreter@tum.de>
Wed, 22 May 2024 09:58:25 +0000 (11:58 +0200)
committerMagdalena Schreter <magdalena.schreter@tum.de>
Wed, 22 May 2024 09:58:25 +0000 (11:58 +0200)
examples/step-67/step-67.cc

index 54d9fad1f21308e344817c1bfc34930900f2fdf2..25840158801e9f14625eafc6bb0e0ab3dcc5932e 100644 (file)
@@ -1717,8 +1717,7 @@ namespace Euler_DG
         // speed only on the valid cells of a cell batch.
         for (unsigned int v = 0; v < data.n_active_entries_per_cell_batch(cell);
              ++v)
-          for (unsigned int d = 0; d < 3; ++d)
-            max_transport = std::max(max_transport, local_max[v]);
+          max_transport = std::max(max_transport, local_max[v]);
       }
 
     max_transport = Utilities::MPI::max(max_transport, MPI_COMM_WORLD);

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.