From 141a32487a64d9b49097ad31ee4b567106fa7769 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Sun, 9 Jan 2022 13:16:02 -0600 Subject: [PATCH] Don't overwrite Operator.materials.cross_sections if already defined --- openmc/deplete/operator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openmc/deplete/operator.py b/openmc/deplete/operator.py index fce0670e51..7e3b34d0c1 100644 --- a/openmc/deplete/operator.py +++ b/openmc/deplete/operator.py @@ -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()