Skip to content

Commit

Permalink
fix weights in ring benchmark (#620)
Browse files Browse the repository at this point in the history
Fix potential numeric instabilities in the ring benchmark caused by passing arguments to an event generator in the wrong order.
  • Loading branch information
bcumming authored and Sam Yates committed Oct 11, 2018
1 parent 7ade5c2 commit 51fb4f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/ring/ring.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ring_recipe: public arb::recipe {
std::vector<arb::event_generator> event_generators(cell_gid_type gid) const override {
std::vector<arb::event_generator> gens;
if (!gid) {
gens.push_back(arb::explicit_generator(arb::pse_vector{{{0, 0}, event_weight_, 1.0}}));
gens.push_back(arb::explicit_generator(arb::pse_vector{{{0, 0}, 1.0, event_weight_}}));
}
return gens;
}
Expand Down

0 comments on commit 51fb4f3

Please sign in to comment.