mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Make sure weight window lower/upper bounds are flattened before writing to XML
This commit is contained in:
parent
a3bbd84692
commit
8e4ce676ff
1 changed files with 2 additions and 2 deletions
|
|
@ -291,10 +291,10 @@ class WeightWindows(IDManagerMixin):
|
|||
subelement.text = ' '.join(str(e) for e in self.energy_bounds)
|
||||
|
||||
subelement = ET.SubElement(element, 'lower_ww_bounds')
|
||||
subelement.text = ' '.join(str(b) for b in self.lower_ww_bounds)
|
||||
subelement.text = ' '.join(str(b) for b in self.lower_ww_bounds.ravel())
|
||||
|
||||
subelement = ET.SubElement(element, 'upper_ww_bounds')
|
||||
subelement.text = ' '.join(str(b) for b in self.upper_ww_bounds)
|
||||
subelement.text = ' '.join(str(b) for b in self.upper_ww_bounds.ravel())
|
||||
|
||||
subelement = ET.SubElement(element, 'survival_ratio')
|
||||
subelement.text = str(self.survival_ratio)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue