mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Adding early return if the cell is filled with a material.
This commit is contained in:
parent
6cbf98962d
commit
db99148281
1 changed files with 4 additions and 1 deletions
|
|
@ -1180,7 +1180,10 @@ Cell::get_contained_cells() {
|
|||
std::unordered_map<int32_t, std::vector<int32_t>> contained_cells;
|
||||
std::vector<ParentCell> parent_cells;
|
||||
|
||||
this->get_contained_cells_inner(contained_cells, parent_cells);
|
||||
// if this cell is filled w/ a material, it contains no other cells
|
||||
if (type_ != Fill::MATERIAL) {
|
||||
this->get_contained_cells_inner(contained_cells, parent_cells);
|
||||
}
|
||||
|
||||
return contained_cells;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue