mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Some final changes to the recursive version. Time for testing.
This commit is contained in:
parent
c77eb71832
commit
c3cb0fca2c
1 changed files with 8 additions and 1 deletions
|
|
@ -273,7 +273,14 @@ Cell::set_temperature(double T, int32_t instance, bool set_contained_cells)
|
|||
std::vector<CellInstance> parent_cells;
|
||||
this->get_contained_cells(contained_cells, parent_cells);
|
||||
|
||||
std::cout << fmt::format("Found {} contained cells.", contained_cells.size()) << std::endl;
|
||||
for (const auto& entry : contained_cells) {
|
||||
auto& cell = model::cells[entry.first];
|
||||
auto& instances = entry.second;
|
||||
for (auto instance = instances.begin(); instance != instances.end(); ++instance) {
|
||||
Expects(cell->type_ == Fill::MATERIAL);
|
||||
cell->set_temperature(T, *instance);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue