Move mesh C API functions to C++

This commit is contained in:
Paul Romano 2018-08-29 14:33:05 -05:00
parent fe76ad695f
commit fb22413e8d
6 changed files with 213 additions and 216 deletions

View file

@ -501,7 +501,7 @@ read_settings_xml()
int temp = std::stoi(get_node_value(root, "entropy_mesh"));
try {
index_entropy_mesh = mesh_map.at(temp);
} catch (std::out_of_range) {
} catch (const std::out_of_range& e) {
std::stringstream msg;
msg << "Mesh " << temp << " specified for Shannon entropy does not exist.";
fatal_error(msg);
@ -550,7 +550,7 @@ read_settings_xml()
auto temp = std::stoi(get_node_value(root, "ufs_mesh"));
try {
index_ufs_mesh = mesh_map.at(temp);
} catch (std::out_of_range) {
} catch (const std::out_of_range& e) {
std::stringstream msg;
msg << "Mesh " << temp << " specified for uniform fission site method "
"does not exist.";