disable cross section loading on plot mode (#2690)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Baptiste Mouginot 2023-10-07 16:11:03 +02:00 committed by GitHub
parent 61c43527e6
commit ca49d8167f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 15 deletions

View file

@ -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();