]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify code since we know that it runs under MPI.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Sep 2011 23:42:56 +0000 (23:42 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 22 Sep 2011 23:42:56 +0000 (23:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@24375 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-32/step-32.cc

index c71f5da0e8ddc4391fc8b63a050b01b9e57d7e78..6dec1fb27b5cf8191497a34d0aff7a4e76411af9 100644 (file)
@@ -2209,26 +2209,9 @@ void BoussinesqFlowProblem<dim>::setup_dofs ()
     temperature_constraints.close ();
   }
 
-  if (Utilities::System::job_supports_mpi() == false)
-    {
-      Threads::TaskGroup<> tasks;
-      tasks += Threads::new_task (&BoussinesqFlowProblem<dim>::setup_stokes_matrix,
-                                  *this,
-                                  stokes_partitioning);
-      tasks += Threads::new_task (&BoussinesqFlowProblem<dim>::setup_stokes_preconditioner,
-                                  *this,
-                                  stokes_partitioning);
-      tasks += Threads::new_task (&BoussinesqFlowProblem<dim>::setup_temperature_matrices,
-                                  *this,
-                                  temperature_partitioning);
-      tasks.join_all ();
-    }
-  else
-    {
-      setup_stokes_matrix (stokes_partitioning);
-      setup_stokes_preconditioner (stokes_partitioning);
-      setup_temperature_matrices (temperature_partitioning);
-    }
+  setup_stokes_matrix (stokes_partitioning);
+  setup_stokes_preconditioner (stokes_partitioning);
+  setup_temperature_matrices (temperature_partitioning);
 
   stokes_rhs.reinit (stokes_partitioning, MPI_COMM_WORLD);
   stokes_solution.reinit (stokes_relevant_partitioning, 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.