mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Don't overwrite Operator.materials.cross_sections if already defined
This commit is contained in:
parent
66835f465f
commit
141a32487a
1 changed files with 1 additions and 1 deletions
|
|
@ -642,7 +642,7 @@ class Operator(TransportOperator):
|
|||
if mfile.exists():
|
||||
tree = ET.parse(str(mfile))
|
||||
xs = tree.find('cross_sections')
|
||||
if xs is not None:
|
||||
if xs is not None and self.materials.cross_sections is None:
|
||||
self.materials.cross_sections = xs.text
|
||||
|
||||
self.materials.export_to_xml()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue