Add error message if user tries WMP + photon transport

This commit is contained in:
Paul Romano 2022-05-05 22:11:29 -05:00
parent ec0b9bbd01
commit ee5697e858

View file

@ -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");