From: turcksin Date: Mon, 28 Oct 2013 14:21:21 +0000 (+0000) Subject: Use TaskGroup instead of ThreadGroup in step-9. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c5507dbffd2a4c5364195ae751ede49617f8f06;p=dealii-svn.git Use TaskGroup instead of ThreadGroup in step-9. git-svn-id: https://svn.dealii.org/trunk@31466 0785d39b-7218-0410-832d-ea1e28bc413d --- 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