From 266a4906455c8d6eff253f1d898feeaa16fe89d1 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 22 Sep 2011 23:42:56 +0000 Subject: [PATCH] Simplify code since we know that it runs under MPI. git-svn-id: https://svn.dealii.org/trunk@24375 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-32/step-32.cc | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index c71f5da0e8..6dec1fb27b 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -2209,26 +2209,9 @@ void BoussinesqFlowProblem::setup_dofs () temperature_constraints.close (); } - if (Utilities::System::job_supports_mpi() == false) - { - Threads::TaskGroup<> tasks; - tasks += Threads::new_task (&BoussinesqFlowProblem::setup_stokes_matrix, - *this, - stokes_partitioning); - tasks += Threads::new_task (&BoussinesqFlowProblem::setup_stokes_preconditioner, - *this, - stokes_partitioning); - tasks += Threads::new_task (&BoussinesqFlowProblem::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); -- 2.39.5