mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
reset coordinates in exhaustive cell search for track output
This commit is contained in:
parent
5f5420a0a9
commit
40ec743caf
1 changed files with 4 additions and 0 deletions
|
|
@ -275,6 +275,10 @@ bool brute_force_find_cell(Particle& p)
|
|||
p.n_coord_ = 1;
|
||||
i_universe = model::root_universe;
|
||||
}
|
||||
// Reset all the deeper coordinate levels.
|
||||
for (int i = p.n_coord_; i < p.coord_.size(); i++) {
|
||||
p.coord_[i].reset();
|
||||
}
|
||||
return find_cell_inner(p, nullptr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue