]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warnings + remove uncessary mpi call
authorBruno Blais <blais.bruno@gmail.com>
Tue, 11 Jul 2023 11:58:38 +0000 (07:58 -0400)
committerBruno Blais <blais.bruno@gmail.com>
Tue, 11 Jul 2023 11:58:38 +0000 (07:58 -0400)
tests/performance/timing_step_68.cc

index 2af9b2c200e676288cd96831fb809bf825195f55..b3f3edb734e481e6fdc3e80a982aef5ceb572887 100644 (file)
@@ -264,9 +264,6 @@ namespace Step68
     if (dim == 3)
       center[2] = 0.0;
 
-    const double outer_radius = 0.50;
-    const double inner_radius = 0.01;
-
     parallel::distributed::Triangulation<dim> particle_triangulation(
       MPI_COMM_WORLD);
 
@@ -328,6 +325,9 @@ namespace Step68
 
     FEPointEvaluation<dim, dim> evaluator(mapping, fluid_fe, update_values);
 
+    const double this_mpi_process =
+      (double)Utilities::MPI::this_mpi_process(mpi_communicator);
+
     auto particle = particle_handler.begin();
     while (particle != particle_handler.end())
       {
@@ -360,8 +360,7 @@ namespace Step68
             for (int d = 0; d < dim; ++d)
               properties[d] = particle_velocity[d];
 
-            properties[dim] =
-              Utilities::MPI::this_mpi_process(mpi_communicator);
+            properties[dim] = this_mpi_process;
           }
       }
   }

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.