mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Updating openmc.Materials object used in _generate_materials_xml.
This commit is contained in:
parent
f1234a38b0
commit
e6cd4449e1
1 changed files with 2 additions and 4 deletions
|
|
@ -618,8 +618,6 @@ class Operator(TransportOperator):
|
|||
through direct memory writing.
|
||||
|
||||
"""
|
||||
materials = openmc.Materials(self.materials)
|
||||
|
||||
# Sort nuclides according to order in AtomNumber object
|
||||
nuclides = list(self.number.nuclides)
|
||||
for mat in self.materials:
|
||||
|
|
@ -631,9 +629,9 @@ class Operator(TransportOperator):
|
|||
tree = ET.parse(str(mfile))
|
||||
xs = tree.find('cross_sections')
|
||||
if xs is not None:
|
||||
materials.cross_sections = xs.text
|
||||
self.materials.cross_sections = xs.text
|
||||
|
||||
materials.export_to_xml()
|
||||
self.materials.export_to_xml()
|
||||
|
||||
def _get_tally_nuclides(self):
|
||||
"""Determine nuclides that should be tallied for reaction rates.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue