mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
expose a python function to check for mcpl
This commit is contained in:
parent
be09b442fb
commit
4e5ba4b460
2 changed files with 9 additions and 0 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue