Skip to content

Commit c8a1505

Browse files
committed
Renaming longer find parent search method
1 parent c148683 commit c8a1505

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/openmc/cell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ class Cell {
193193
//! Determine the path to this cell instance in the geometry hierarchy
194194
//! \param[in] instance of the cell to find parent cells for
195195
//! \return parent cells
196-
vector<ParentCell> find_parent_cells_exhaustive(
196+
vector<ParentCell> exhaustive_find_parent_cells(
197197
int32_t instance) const;
198198

199199
//! Inner function for retrieving contained cells

src/cell.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,11 +1364,11 @@ vector<ParentCell> Cell::find_parent_cells(
13641364
}
13651365

13661366
// fall back on an exhaustive search for the cell's parents
1367-
return find_parent_cells_exhaustive(instance);
1367+
return exhaustive_find_parent_cells(instance);
13681368
}
13691369

13701370

1371-
vector<ParentCell> Cell::find_parent_cells_exhaustive(
1371+
vector<ParentCell> Cell::exhaustive_find_parent_cells(
13721372
int32_t instance) const
13731373
{
13741374
ParentCellStack stack;
@@ -1472,7 +1472,7 @@ std::unordered_map<int32_t, vector<int32_t>> Cell::get_contained_cells(
14721472
if (hint)
14731473
parent_cells = find_parent_cells(instance, *hint);
14741474
else
1475-
parent_cells = find_parent_cells_exhaustive(instance);
1475+
parent_cells = exhaustive_find_parent_cells(instance);
14761476

14771477
// if this cell is filled w/ a material, it contains no other cells
14781478
if (type_ != Fill::MATERIAL) {

0 commit comments

Comments
 (0)