Skip to content

Commit

Permalink
Don't hide local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alkino committed Dec 22, 2023
1 parent 6c34480 commit 58d4b7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nrniv/have2want.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ static std::tuple<Data<T>, Data<T>> rendezvous_rank_get(const std::vector<T>& da
// scatter data into sdata by recalculating s.cnt.
std::fill(s.cnt.begin(), s.cnt.end(), 0);
for (const auto& e: data) {
int r = rendezvous_rank<T>(e);
s.data[s.displ[r] + s.cnt[r]] = e;
s.cnt[r] += 1;
int rank = rendezvous_rank<T>(e);
s.data[s.displ[rank] + s.cnt[r]] = e;

Check failure on line 81 in src/nrniv/have2want.hpp

View workflow job for this annotation

GitHub Actions / ubuntu-22.04 - cmake (-DNRN_ENABLE_CORENEURON=ON -DNRN_ENABLE_INTERVIEWS=OFF -DNMODL_SANITIZERS=undefinedundefined)

no viable overloaded operator[] for type 'std::vector<int>'
s.cnt[rank] += 1;
}
alltoall_function(s, r);
return {s, r};
Expand Down

0 comments on commit 58d4b7a

Please sign in to comment.