Commit including most of the sampling work in distribution_spatial.cpp and testing

This commit is contained in:
NybergWISC 2022-07-06 08:59:12 -05:00 committed by Patrick Shriwise
parent 80077ed3fd
commit 9f6d536959
18 changed files with 4669 additions and 39 deletions

View file

@ -279,6 +279,9 @@ void read_settings_xml(pugi::xml_node root)
}
}
// Check for user meshes and allocate
read_meshes(root);
// Look for deprecated cross_sections.xml file in settings.xml
if (check_for_node(root, "cross_sections")) {
warning(
@ -368,7 +371,6 @@ void read_settings_xml(pugi::xml_node root)
}
}
}
if (run_mode == RunMode::EIGENVALUE || run_mode == RunMode::FIXED_SOURCE) {
// Read run parameters
get_run_parameters(node_mode);
@ -432,7 +434,6 @@ void read_settings_xml(pugi::xml_node root)
"the OMP_NUM_THREADS environment variable to set the number of "
"threads.");
}
// ==========================================================================
// EXTERNAL SOURCE
@ -461,7 +462,6 @@ void read_settings_xml(pugi::xml_node root)
model::external_sources.push_back(make_unique<IndependentSource>(node));
}
}
// Check if the user has specified to read surface source
if (check_for_node(root, "surf_source_read")) {
surf_source_read = true;
@ -532,7 +532,6 @@ void read_settings_xml(pugi::xml_node root)
std::stod(get_node_value(node_cutoff, "energy_positron"));
}
}
// Particle trace
if (check_for_node(root, "trace")) {
auto temp = get_node_array<int64_t>(root, "trace");
@ -564,9 +563,6 @@ void read_settings_xml(pugi::xml_node root)
}
}
// Read meshes
read_meshes(root);
// Shannon Entropy mesh
if (check_for_node(root, "entropy_mesh")) {
int temp = std::stoi(get_node_value(root, "entropy_mesh"));