]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix quicktest 15610/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 3 Jul 2023 20:38:01 +0000 (16:38 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 3 Jul 2023 20:38:01 +0000 (16:38 -0400)
tests/quick_tests/taskflow.cc

index 19a91f7b3368ae2c894f40a1c6ed5fea3e136744..967e4e9b01aec9e9a530d52d3475cc773285e8e3 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <deal.II/base/thread_management.h>
 
+#include <taskflow/algorithm/for_each.hpp>
 #include <taskflow/taskflow.hpp>
 
 #include <iostream>
@@ -47,9 +48,9 @@ test1()
   B.precede(C);
 
   auto p =
-    taskflow.parallel_for(1, 11, 1, [&](int idx) { counter.fetch_add(idx); });
+    taskflow.for_each_index(1, 11, 1, [&](int idx) { counter.fetch_add(idx); });
 
-  C.precede(p.first);
+  C.precede(p);
 
   executor.run(taskflow).wait();
 

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.