Skip to content

Commit 878bd54

Browse files
committed
stdpar Tutorial/Lab 2: Change the deprecated exec::on to stdexec::on.
1 parent 5d83a6b commit 878bd54

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/stdpar/notebooks/cpp/lab2_heat/solutions/exercise3.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ double next (double* u_new, double* u_old, parameters p);
6565

6666
stde::sender auto iteration_step(stde::scheduler auto&& sch, parameters& p, long& it, std::vector<double>& u_new, std::vector<double>& u_old) {
6767
// DONE: create task for prev, next, inner
68-
auto prev_task = stde::just() | exec::on(sch, stde::then([&] {
68+
auto prev_task = stde::just() | stde::on(sch, stde::then([&] {
6969
return prev(u_new.data(), u_old.data(), p);
7070
}));
71-
auto next_task = stde::just() | exec::on(sch, stde::then([&] {
71+
auto next_task = stde::just() | stde::on(sch, stde::then([&] {
7272
return next(u_new.data(), u_old.data(), p);
7373
}));
74-
auto inner_task = stde::just() | exec::on(sch, stde::then([&] {
74+
auto inner_task = stde::just() | stde::on(sch, stde::then([&] {
7575
return inner(u_new.data(), u_old.data(), p);
7676
}));
7777

0 commit comments

Comments
 (0)