mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
disable cross section loading on plot mode (#2690)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
61c43527e6
commit
ca49d8167f
2 changed files with 25 additions and 15 deletions
|
|
@ -372,7 +372,9 @@ bool read_model_xml()
|
|||
"No <materials> node present in the {} file.", model_filename));
|
||||
}
|
||||
|
||||
read_cross_sections_xml(root.child("materials"));
|
||||
if (settings::run_mode != RunMode::PLOTTING) {
|
||||
read_cross_sections_xml(root.child("materials"));
|
||||
}
|
||||
read_materials_xml(root.child("materials"));
|
||||
|
||||
// Read geometry
|
||||
|
|
@ -413,7 +415,9 @@ bool read_model_xml()
|
|||
void read_separate_xml_files()
|
||||
{
|
||||
read_settings_xml();
|
||||
read_cross_sections_xml();
|
||||
if (settings::run_mode != RunMode::PLOTTING) {
|
||||
read_cross_sections_xml();
|
||||
}
|
||||
read_materials_xml();
|
||||
read_geometry_xml();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue