(1) Made OpenMC load plots.xml upon initialization even if not in the plot runmode; (2) Made the finalize method clear plotting data; (3) allowed the openmc.lib and openmc.model package to call plot_geometry now that plots.xml would have been loaded

This commit is contained in:
agnelson 2021-09-30 15:15:58 -05:00
parent b335f82792
commit 20c8043c1c
5 changed files with 26 additions and 18 deletions

View file

@ -305,9 +305,11 @@ void read_input_xml()
// Initialize distribcell_filters
prepare_distribcell();
// Read the plots.xml regardless of plot mode in case plots are requested
// via the API
read_plots_xml();
if (settings::run_mode == RunMode::PLOTTING) {
// Read plots.xml if it exists
read_plots_xml();
if (mpi::master && settings::verbosity >= 5)
print_plot();