Use 0-based indexing for FilterMatch.i_bin_

This commit is contained in:
Sterling Harper 2019-02-11 15:59:36 -05:00
parent 8b3be55f0e
commit a8a7d9112f
5 changed files with 22 additions and 173 deletions

View file

@ -355,7 +355,8 @@ write_tallies()
const auto& filt {*model::tally_filters[i_filt]};
auto& match {simulation::filter_matches[i_filt]};
tallies_out << std::string(indent+1, ' ')
<< filt.text_label(match.i_bin_) << "\n";
// TODO: off-by-one
<< filt.text_label(match.i_bin_+1) << "\n";
}
indent += 2;
}