diff --git a/openmc/deplete/operator.py b/openmc/deplete/operator.py index d8aeb33fd2..5ce725a67b 100644 --- a/openmc/deplete/operator.py +++ b/openmc/deplete/operator.py @@ -309,7 +309,12 @@ class Operator(TransportOperator): # Assign distribmats to cells for cell in self.geometry.get_all_material_cells().values(): if cell.fill in distribmats and cell.num_instances > 1: - cell.fill = [cell.fill.clone() + mat = cell.fill + if mat.volume is None: + raise RuntimeError("Volume not specified for depletable " + "material with ID={}.".format(mat.id)) + mat.volume /= mat.num_instances + cell.fill = [mat.clone() for i in range(cell.num_instances)] def _get_burnable_mats(self): @@ -341,7 +346,7 @@ class Operator(TransportOperator): if mat.volume is None: raise RuntimeError("Volume not specified for depletable " "material with ID={}.".format(mat.id)) - volume[str(mat.id)] = mat.volume/mat.num_instances + volume[str(mat.id)] = mat.volume self.heavy_metal += mat.fissionable_mass # Make sure there are burnable materials