mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Fix issue with Cell::get_contained_cells() utility function (#2873)
This commit is contained in:
parent
bf33a9e11b
commit
33c910ddd3
1 changed files with 3 additions and 0 deletions
|
|
@ -1272,6 +1272,9 @@ struct ParentCellStack {
|
|||
//! compute an instance for the provided distribcell index
|
||||
int32_t compute_instance(int32_t distribcell_index) const
|
||||
{
|
||||
if (distribcell_index == C_NONE)
|
||||
return 0;
|
||||
|
||||
int32_t instance = 0;
|
||||
for (const auto& parent_cell : this->parent_cells_) {
|
||||
auto& cell = model::cells[parent_cell.cell_index];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue