mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-24 20:15:26 -04:00
Moving error message block into if-else.
This commit is contained in:
parent
66bdf04511
commit
cd3b05a3f6
1 changed files with 2 additions and 3 deletions
|
|
@ -183,17 +183,16 @@ Plot::set_type(pugi::xml_node plot_node)
|
|||
// set type using node value
|
||||
if (type_str == "slice") {
|
||||
type_ = PlotType::slice;
|
||||
return;
|
||||
}
|
||||
else if (type_str == "voxel") {
|
||||
type_ = PlotType::voxel;
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
// if we're here, something is wrong
|
||||
std::stringstream err_msg;
|
||||
err_msg << "Unsupported plot type '" << type_str
|
||||
<< "' in plot " << id_;
|
||||
fatal_error(err_msg.str());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue