From e258093d08a4c3abb8a746c0f5bd2935b1007744 Mon Sep 17 00:00:00 2001 From: Gavin Ridley Date: Thu, 16 Jan 2020 22:12:42 -0500 Subject: [PATCH] Annndddd that made it segfault --- openmc/lib/cell.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/lib/cell.py b/openmc/lib/cell.py index c4fc43a5b..6ed4bca1e 100644 --- a/openmc/lib/cell.py +++ b/openmc/lib/cell.py @@ -133,7 +133,7 @@ class Cell(_FortranObjectWithID): n = c_int32() _dll.openmc_cell_get_fill(self._index, fill_type, indices, n) - if fill_type.value == 0: + if fill_type.value == 1: if n.value > 1: return [Material(index=i) for i in indices[:n.value]] else: