have collision filter use particle accessors

This commit is contained in:
Gavin Ridley 2021-04-14 17:21:53 -04:00
parent d5d2072266
commit 5cf8482d9a
2 changed files with 2 additions and 1 deletions

View file

@ -460,6 +460,7 @@ public:
double& sqrtkT_last() { return sqrtkT_last_; }
int& n_collision() { return n_collision_; }
const int& n_collision() const { return n_collision_; }
bool& write_track() { return write_track_; }
uint64_t& seeds(const int& i) { return seeds_[i]; }

View file

@ -39,7 +39,7 @@ void CollisionFilter::get_all_bins(
const Particle& p, TallyEstimator estimator, FilterMatch& match) const
{
// Get the number of collisions for the particle
auto n = p.n_collision_;
auto n = p.n_collision();
// Bin the collision number. Must fit exactly the desired collision number.
auto search = map_.find(n);