Adding a check for dagmc when exporting an OpenMC model.

This commit is contained in:
Patrick Shriwise 2018-11-07 15:15:49 -06:00
parent 4c3ae5ee33
commit 532667fba5

View file

@ -181,7 +181,8 @@ class Model(object):
"""Export model to XML files."""
self.settings.export_to_xml()
self.geometry.export_to_xml()
if not settings.dagmc:
self.geometry.export_to_xml()
# If a materials collection was specified, export it. Otherwise, look
# for all materials in the geometry and use that to automatically build