Skip to content

Commit

Permalink
Merge pull request #443 from JiakunYan/improve-form_tree
Browse files Browse the repository at this point in the history
Greatly improve the performance of form_tree when regridding.
  • Loading branch information
G-071 committed May 19, 2023
2 parents 0aa7abb + 519227b commit 50f1325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_server_actions_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ int node_server::form_tree(hpx::id_type self_gid, hpx::id_type parent_gid, std::
}
}
}
cfuts[index++] = hpx::dataflow(hpx::launch::sync, [this, ci](std::array<future<hpx::id_type>, geo::direction::count()> &&cns) {
cfuts[index++] = hpx::dataflow(hpx::launch::async, [this, ci](std::array<future<hpx::id_type>, geo::direction::count()> &&cns) {
std::vector<hpx::id_type> child_neighbors(geo::direction::count());
for (auto dir : geo::direction::full_set()) {
child_neighbors[dir] = GET(cns[dir]);
Expand Down

0 comments on commit 50f1325

Please sign in to comment.