From 532667fba54f060a08aad6fe34f2be55898a5e1c Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Wed, 7 Nov 2018 15:15:49 -0600 Subject: [PATCH] Adding a check for dagmc when exporting an OpenMC model. --- openmc/model/model.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openmc/model/model.py b/openmc/model/model.py index 7a81292c1a..47c43fb832 100644 --- a/openmc/model/model.py +++ b/openmc/model/model.py @@ -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