mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix cell instance counting bug with same lattice in multiple cells
This commit is contained in:
parent
6cbd1ed288
commit
34a35d832a
3 changed files with 15 additions and 1 deletions
|
|
@ -86,6 +86,7 @@ int cell_instance_at_level(const Particle& p, int level)
|
|||
if (c_i.type_ == Fill::UNIVERSE) {
|
||||
instance += c_i.offset_[c.distribcell_index_];
|
||||
} else if (c_i.type_ == Fill::LATTICE) {
|
||||
instance += c_i.offset_[c.distribcell_index_];
|
||||
auto& lat {*model::lattices[p.coord(i + 1).lattice]};
|
||||
const auto& i_xyz {p.coord(i + 1).lattice_i};
|
||||
if (lat.are_valid_indices(i_xyz)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue