mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Add error message if user tries WMP + photon transport
This commit is contained in:
parent
ec0b9bbd01
commit
ee5697e858
1 changed files with 6 additions and 0 deletions
|
|
@ -802,6 +802,12 @@ void read_settings_xml()
|
|||
}
|
||||
if (check_for_node(root, "temperature_multipole")) {
|
||||
temperature_multipole = get_node_value_bool(root, "temperature_multipole");
|
||||
|
||||
// Multipole currently doesn't work with photon transport
|
||||
if (temperature_multipole && photon_transport) {
|
||||
fatal_error("Multipole data cannot currently be used in conjunction with "
|
||||
"photon transport.");
|
||||
}
|
||||
}
|
||||
if (check_for_node(root, "temperature_range")) {
|
||||
auto range = get_node_array<double>(root, "temperature_range");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue