Make MCPL a Runtime Optional Dependency (#3429)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Ahnaf Tahmid Chowdhury 2025-07-17 08:46:39 +06:00 committed by GitHub
parent 24f78e6e92
commit 5318ea6e2b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 438 additions and 203 deletions

View file

@ -844,12 +844,6 @@ void read_settings_xml(pugi::xml_node root)
}
if (check_for_node(node_sp, "mcpl")) {
source_mcpl_write = get_node_value_bool(node_sp, "mcpl");
// Make sure MCPL support is enabled
if (source_mcpl_write && !MCPL_ENABLED) {
fatal_error(
"Your build of OpenMC does not support writing MCPL source files.");
}
}
if (check_for_node(node_sp, "overwrite_latest")) {
source_latest = get_node_value_bool(node_sp, "overwrite_latest");
@ -902,12 +896,6 @@ void read_settings_xml(pugi::xml_node root)
if (check_for_node(node_ssw, "mcpl")) {
surf_mcpl_write = get_node_value_bool(node_ssw, "mcpl");
// Make sure MCPL support is enabled
if (surf_mcpl_write && !MCPL_ENABLED) {
fatal_error("Your build of OpenMC does not support writing MCPL "
"surface source files.");
}
}
// Get cell information
if (check_for_node(node_ssw, "cell")) {