mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #512 from wbinventor/opencg-rots-hotfix
Hotfixes for MGXS and OpenCG compatibility modules
This commit is contained in:
commit
aee8970c69
2 changed files with 3 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue