From 739419b8b737e8cf0e058d31e91505670e87367d Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 28 Oct 2019 13:23:58 -0500 Subject: [PATCH] Exposing write summary settings option to CAPI. --- include/openmc/settings.h | 2 +- openmc/lib/settings.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/openmc/settings.h b/include/openmc/settings.h index 8f43767171..45cb7394c8 100644 --- a/include/openmc/settings.h +++ b/include/openmc/settings.h @@ -31,7 +31,7 @@ extern "C" bool cmfd_run; //!< is a CMFD run? extern "C" bool dagmc; //!< indicator of DAGMC geometry extern "C" bool entropy_on; //!< calculate Shannon entropy? extern bool legendre_to_tabular; //!< convert Legendre distributions to tabular? -extern bool output_summary; //!< write summary.h5? +extern "C" bool output_summary; //!< write summary.h5? extern bool output_tallies; //!< write tallies.out? extern bool particle_restart_run; //!< particle restart run? extern "C" bool photon_transport; //!< photon transport turned on? diff --git a/openmc/lib/settings.py b/openmc/lib/settings.py index 78794d8563..275c73a934 100644 --- a/openmc/lib/settings.py +++ b/openmc/lib/settings.py @@ -26,6 +26,7 @@ class _Settings(object): restart_run = _DLLGlobal(c_bool, 'restart_run') run_CE = _DLLGlobal(c_bool, 'run_CE') verbosity = _DLLGlobal(c_int, 'verbosity') + output_summary = _DLLGlobal(c_bool, 'output_summary') @property def run_mode(self):