mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Address #1210 comments
This commit is contained in:
parent
5d5b82f0ae
commit
d0a0d34b89
3 changed files with 76 additions and 62 deletions
|
|
@ -139,14 +139,13 @@ partition_universes()
|
|||
}
|
||||
|
||||
// Partition the universe if there are more than 5 z-planes. (Fewer than
|
||||
// five is likely no worth it.)
|
||||
// 5 is likely not worth it.)
|
||||
int n_zplanes = 0;
|
||||
for (auto i_surf : surf_inds) {
|
||||
if (dynamic_cast<const SurfaceZPlane*>(model::surfaces[i_surf].get())) {
|
||||
++n_zplanes;
|
||||
if (n_zplanes > 5) {
|
||||
univ->partitioner_ = std::make_unique<UniversePartitioner>(
|
||||
UniversePartitioner(*univ));
|
||||
univ->partitioner_ = std::make_unique<UniversePartitioner>(*univ);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue