mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
round and change default to True
This commit is contained in:
parent
97f1e2fdd7
commit
a67b330d8f
2 changed files with 4 additions and 3 deletions
|
|
@ -75,7 +75,7 @@ class Geometry:
|
|||
if universe.id in volume_calc.volumes:
|
||||
universe.add_volume_information(volume_calc)
|
||||
|
||||
def export_to_xml(self, path='geometry.xml', remove_surfs=False):
|
||||
def export_to_xml(self, path='geometry.xml', remove_surfs=True):
|
||||
"""Export geometry to an XML file.
|
||||
|
||||
Parameters
|
||||
|
|
@ -411,7 +411,8 @@ class Geometry:
|
|||
"""
|
||||
tally = defaultdict(list)
|
||||
for surf in self.get_all_surfaces().values():
|
||||
coeffs = tuple(surf._coefficients[k] for k in surf._coeff_keys)
|
||||
coeffs = tuple(round(surf._coefficients[k], 10)
|
||||
for k in surf._coeff_keys)
|
||||
key = (surf._type,) + coeffs
|
||||
tally[key].append(surf)
|
||||
return {replace.id: keep
|
||||
|
|
|
|||
|
|
@ -397,7 +397,7 @@ class Model:
|
|||
depletion_operator.cleanup_when_done = True
|
||||
depletion_operator.finalize()
|
||||
|
||||
def export_to_xml(self, directory='.', remove_surfs=False):
|
||||
def export_to_xml(self, directory='.', remove_surfs=True):
|
||||
"""Export model to XML files.
|
||||
|
||||
Parameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue