mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Fixing custom plot naming.
This commit is contained in:
parent
daffe0923d
commit
f52664b29f
1 changed files with 2 additions and 1 deletions
|
|
@ -192,10 +192,11 @@ Plot::set_output_path(pugi::xml_node plot_node)
|
|||
{
|
||||
// Set output file path
|
||||
std::stringstream filename;
|
||||
filename << "plot_" << id_;
|
||||
|
||||
if (check_for_node(plot_node, "filename")) {
|
||||
filename << get_node_value(plot_node, "filename");
|
||||
} else {
|
||||
filename << "plot_" << id_;
|
||||
}
|
||||
// add appropriate file extension to name
|
||||
switch(type_) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue