expose a python function to check for mcpl

This commit is contained in:
Erik B Knudsen 2022-09-06 09:12:01 +02:00
parent be09b442fb
commit 4e5ba4b460
2 changed files with 9 additions and 0 deletions

View file

@ -48,6 +48,9 @@ def _coord_levels():
def _libmesh_enabled():
return c_bool.in_dll(_dll, "LIBMESH_ENABLED").value
def _mcpl_enabled():
return c_bool.in_dll(_dll, "MCPL_ENABLED").value
from .error import *
from .core import *
from .nuclide import *

View file

@ -41,6 +41,12 @@ namespace openmc {
// Global variables
//==============================================================================
#ifdef OPENMC_MCPL
const bool MCPL_ENABLED = true;
#else
const bool MCPL_ENABLED = false;
#endif
namespace model {
vector<unique_ptr<Source>> external_sources;