mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Adding signatures for reading information from an XML node where necessary.
This commit is contained in:
parent
7a9d8c95af
commit
040965245d
13 changed files with 127 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue