mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
have collision filter use particle accessors
This commit is contained in:
parent
d5d2072266
commit
5cf8482d9a
2 changed files with 2 additions and 1 deletions
|
|
@ -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]; }
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue