From a65aad2595ef08427ee6f7e241c02b1195e0e3bf Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Mon, 17 Jun 2019 09:45:38 -0400 Subject: [PATCH] Fix complex cell geometry partitioning bug --- src/cell.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cell.cpp b/src/cell.cpp index bf67036315..87b67ef856 100644 --- a/src/cell.cpp +++ b/src/cell.cpp @@ -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;