mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Removing unused parameter in Cell::find_parent_cells
This commit is contained in:
parent
137abfeedc
commit
ed54e4df19
2 changed files with 3 additions and 5 deletions
|
|
@ -175,8 +175,7 @@ public:
|
|||
|
||||
protected:
|
||||
//! Determine the path to this cell instance in the geometry hierarchy
|
||||
vector<ParentCell>
|
||||
find_parent_cells(vector<ParentCell>& parent_cells, int32_t instance) const;
|
||||
vector<ParentCell> find_parent_cells(int32_t instance) const;
|
||||
|
||||
//! Inner function for retrieving contained cells
|
||||
void get_contained_cells_inner(
|
||||
|
|
|
|||
|
|
@ -1316,8 +1316,7 @@ struct ParentCellStack {
|
|||
visited_cells_;
|
||||
};
|
||||
|
||||
vector<ParentCell>
|
||||
Cell::find_parent_cells(vector<ParentCell>& parent_cells, int32_t instance) const
|
||||
vector<ParentCell> Cell::find_parent_cells(int32_t instance) const
|
||||
{
|
||||
ParentCellStack stack;
|
||||
// start with this cell's universe
|
||||
|
|
@ -1399,7 +1398,7 @@ std::unordered_map<int32_t, vector<int32_t>> Cell::get_contained_cells(int32_t i
|
|||
if (this->type_ == Fill::MATERIAL) return contained_cells;
|
||||
|
||||
// find the pathway through the geometry to this cell
|
||||
vector<ParentCell> parent_cells = this->find_parent_cells(parent_cells, instance);
|
||||
vector<ParentCell> parent_cells = this->find_parent_cells(instance);
|
||||
|
||||
// if this cell is filled w/ a material, it contains no other cells
|
||||
if (type_ != Fill::MATERIAL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue