Skip to content
Snippets Groups Projects
Commit d39cc9ca authored by Ben Cumming's avatar Ben Cumming Committed by Sam Yates
Browse files

Set a default binning policy in mc_cell_group (#384)

Fixes #383 (segfault owing to empty vector of binners).

* Add call to `set_binning_policy` in `mc_cell_group` constructor with default `binning_kind::none` policy.
parent 97cef8e8
No related branches found
No related tags found
No related merge requests found
......@@ -40,6 +40,9 @@ public:
mc_cell_group(std::vector<cell_gid_type> gids, const recipe& rec):
gids_(std::move(gids))
{
// Default to no binning of events
set_binning_policy(binning_kind::none, 0);
// Build lookup table for gid to local index.
for (auto i: util::make_span(0, gids_.size())) {
gid_index_map_[gids_[i]] = i;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment