From e31c269e91030fbab920744d0ab846cdfe6c535b Mon Sep 17 00:00:00 2001 From: Bruno Turcksin Date: Mon, 28 Oct 2013 14:21:21 +0000 Subject: [PATCH] Use TaskGroup instead of ThreadGroup in step-9. git-svn-id: https://svn.dealii.org/trunk@31466 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-9/step-9.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/deal.II/examples/step-9/step-9.cc b/deal.II/examples/step-9/step-9.cc index f81f6ac395..445d5e3e1a 100644 --- a/deal.II/examples/step-9/step-9.cc +++ b/deal.II/examples/step-9/step-9.cc @@ -56,6 +56,7 @@ // how many threads to start in parallel. #include #include +#include // The next new include file declares a base class TensorFunction // not unlike the Function class, but with the difference that @@ -964,20 +965,20 @@ namespace Step9 // or the other compiler, but have to take a temporary variable for that // purpose. Here, in this case, Compaq's cxx compiler choked // on the code so we use this workaround with the function pointer: - Threads::ThreadGroup<> threads; + Threads::TaskGroup<> tasks; void (*estimate_interval_ptr) (const DoFHandler &, const Vector &, const IndexInterval &, Vector &) = &GradientEstimation::template estimate_interval; for (unsigned int i=0; imultithread_info.n_threads() was one, or if the // library was not configured to use threads, then the sequence of -- 2.39.5