Adding signatures for reading information from an XML node where necessary.

This commit is contained in:
Patrick Shriwise 2022-11-03 20:10:22 -05:00
parent 7a9d8c95af
commit 040965245d
13 changed files with 127 additions and 22 deletions

View file

@ -124,8 +124,7 @@ extern "C" int openmc_plot_geometry()
return 0;
}
void read_plots_xml()
{
void read_plots_xml() {
// Check if plots.xml exists; this is only necessary when the plot runmode is
// initiated. Otherwise, we want to read plots.xml because it may be called
// later via the API. In that case, its ok for a plots.xml to not exist
@ -141,6 +140,10 @@ void read_plots_xml()
doc.load_file(filename.c_str());
pugi::xml_node root = doc.document_element();
}
void read_plots_xml(pugi::xml_node root)
{
for (auto node : root.children("plot")) {
model::plots.emplace_back(node);
model::plot_map[model::plots.back().id_] = model::plots.size() - 1;