mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Adding a check that material filled cells return an empty result.
This commit is contained in:
parent
db99148281
commit
59552944f5
1 changed files with 8 additions and 0 deletions
|
|
@ -37,6 +37,14 @@ int main(int argc, char** argv) {
|
|||
auto& lattice_cell = openmc::model::cells[root_univ->cells_[0]];
|
||||
lattice_cell->set_temperature(300, 1, true);
|
||||
|
||||
// check that material-filled cells return no contained cells
|
||||
for (auto& cell : openmc::model::cells) {
|
||||
if (cell->type_ == Fill::MATERIAL) {
|
||||
auto contained_cells = cell->get_contained_cells();
|
||||
assert(contained_cells.empty());
|
||||
}
|
||||
}
|
||||
|
||||
// the summary file will be used to check that
|
||||
// temperatures were set correctly so clear
|
||||
// error output can be provided
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue