From ee5697e8585700771c1e9e05994dfccd13d20df7 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Thu, 5 May 2022 22:11:29 -0500 Subject: [PATCH] Add error message if user tries WMP + photon transport --- src/settings.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/settings.cpp b/src/settings.cpp index 795b164ec4..e2bce94d71 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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(root, "temperature_range");