From 7528eabeafc044c45a6b8df222a0a941a934dc68 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 22 Sep 2016 11:42:33 -0500 Subject: [PATCH] Fix bug in nuclide density retrieval from volume calculation --- openmc/cell.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openmc/cell.py b/openmc/cell.py index fe8b4a52cd..e8b9033a96 100644 --- a/openmc/cell.py +++ b/openmc/cell.py @@ -427,9 +427,8 @@ class Cell(object): else: if self.volume_information is not None: volume = self.volume_information['volume'][0] - for full_name, atoms in self.volume_information['atoms']: - name, xs = full_name.split('.') - nuclide = openmc.Nuclide(name, xs) + for name, atoms in self.volume_information['atoms']: + nuclide = openmc.Nuclide(name) density = 1.0e-24 * atoms[0]/volume # density in atoms/b-cm nuclides[name] = (nuclide, density) else: