]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Use TaskGroup instead of ThreadGroup in step-14.
authorturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Oct 2013 14:13:09 +0000 (14:13 +0000)
committerturcksin <turcksin@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 28 Oct 2013 14:13:09 +0000 (14:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@31465 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 16ab472c9e4a4a356906ff9f059ac96e148c1587..ee642a556445dc2db70a542054dc09d470ccdd10 100644 (file)
@@ -2409,16 +2409,16 @@ namespace Step14
       // parts of all the cells, and once they are all started wait until they
       // have all finished:
       const unsigned int n_threads = multithread_info.n_threads();
-      Threads::ThreadGroup<> threads;
+      Threads::TaskGroup<> tasks;
       for (unsigned int i=0; i<n_threads; ++i)
-        threads += Threads::new_thread (&WeightedResidual<dim>::estimate_some,
+        tasks += Threads::new_task<> (&WeightedResidual<dim>::estimate_some,
                                         *this,
                                         primal_solution,
                                         dual_weights,
                                         n_threads, i,
                                         error_indicators,
                                         face_integrals);
-      threads.join_all();
+      tasks.join_all();
 
       // Once the error contributions are computed, sum them up. For this,
       // note that the cell terms are already set, and that only the edge

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.