Skip to content

Commit

Permalink
disable parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
district10 committed Nov 30, 2023
1 parent 8b8e936 commit 15d2caa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/nano_fmm/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "nano_fmm/rapidjson_helpers.hpp"

#include <execution>
// #include <execution>

namespace nano_fmm
{
Expand Down Expand Up @@ -222,6 +222,9 @@ MatchResult Network::match(const RowVectors &trajectory) const

void Network::build(int execution_polylicy) const
{
std::for_each(roads_.begin(), roads_.end(),
[](auto &pair) { pair.second.build(); });
/*
if (execution_polylicy == 1) {
std::for_each(std::execution::par, roads_.begin(), roads_.end(),
[](auto &pair) { pair.second.build(); });
Expand All @@ -232,6 +235,7 @@ void Network::build(int execution_polylicy) const
std::for_each(std::execution::seq, roads_.begin(), roads_.end(),
[](auto &pair) { pair.second.build(); });
}
*/
rtree();
}

Expand Down

0 comments on commit 15d2caa

Please sign in to comment.