]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Step-76: remove redundant for loop 17061/head
authorPeter Munch <peterrmuench@gmail.com>
Wed, 22 May 2024 13:45:28 +0000 (15:45 +0200)
committerPeter Munch <peterrmuench@gmail.com>
Wed, 22 May 2024 13:45:28 +0000 (15:45 +0200)
examples/step-76/step-76.cc

index 90f67c66e019011629701fa49a09945187d32db5..fd0d69bcb93081803c8953038640e9dc042b367b 100644 (file)
@@ -1170,8 +1170,7 @@ namespace Euler_DG
 
         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.