Merge pull request #512 from wbinventor/opencg-rots-hotfix

Hotfixes for MGXS and OpenCG compatibility modules
This commit is contained in:
Paul Romano 2015-11-25 07:33:05 -06:00
commit aee8970c69
2 changed files with 3 additions and 1 deletions

View file

@ -361,6 +361,8 @@ class Library(object):
raise ValueError(msg)
self._sp_filename = statepoint._f.filename
self._openmc_geometry = statepoint.summary.openmc_geometry
self._opencg_geometry = None
# Load tallies for each MGXS for each domain and mgxs type
for domain in self.domains:

View file

@ -726,7 +726,7 @@ def get_openmc_cell(opencg_cell):
openmc_cell.fill = get_openmc_material(fill)
if opencg_cell.rotation:
rotation = np.asarray(opencg_cell.rotation, dtype=np.int)
rotation = np.asarray(opencg_cell.rotation, dtype=np.float64)
openmc_cell.rotation = rotation
if opencg_cell.translation: