Annndddd that made it segfault

This commit is contained in:
Gavin Ridley 2020-01-16 22:12:42 -05:00
parent 9d90b09bad
commit e258093d08

View file

@ -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: