mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Merge pull request #1261 from smharper/geometry_partitioning
Fix complex cell geometry partitioning bug
This commit is contained in:
commit
7c1a5dbf11
1 changed files with 7 additions and 0 deletions
|
|
@ -701,6 +701,13 @@ UniversePartitioner::UniversePartitioner(const Universe& univ)
|
|||
// Populate the partition lists.
|
||||
partitions_.resize(surfs_.size() + 1);
|
||||
for (auto i_cell : univ.cells_) {
|
||||
// It is difficult to determine the bounds of a complex cell, so add complex
|
||||
// cells to all partitions.
|
||||
if (!model::cells[i_cell]->simple_) {
|
||||
for (auto& p : partitions_) p.push_back(i_cell);
|
||||
continue;
|
||||
}
|
||||
|
||||
// Find the tokens for bounding z-planes.
|
||||
int32_t lower_token = 0, upper_token = 0;
|
||||
double min_z, max_z;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue