mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Restoring blank lines in settings.cpp and source.cpp
This commit is contained in:
parent
d4cbcd12fc
commit
4195d1e8ca
2 changed files with 8 additions and 0 deletions
|
|
@ -371,6 +371,7 @@ 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);
|
||||
|
|
@ -434,6 +435,7 @@ void read_settings_xml(pugi::xml_node root)
|
|||
"the OMP_NUM_THREADS environment variable to set the number of "
|
||||
"threads.");
|
||||
}
|
||||
|
||||
// ==========================================================================
|
||||
// EXTERNAL SOURCE
|
||||
|
||||
|
|
@ -462,6 +464,7 @@ 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,6 +535,7 @@ 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");
|
||||
|
|
|
|||
|
|
@ -111,6 +111,7 @@ IndependentSource::IndependentSource(pugi::xml_node node)
|
|||
// If no spatial distribution specified, make it a point source
|
||||
space_ = UPtrSpace {new SpatialPoint()};
|
||||
}
|
||||
|
||||
// Determine external source angular distribution
|
||||
if (check_for_node(node, "angle")) {
|
||||
// Get pointer to angular distribution
|
||||
|
|
@ -130,9 +131,11 @@ IndependentSource::IndependentSource(pugi::xml_node node)
|
|||
fatal_error(fmt::format(
|
||||
"Invalid angular distribution for external source: {}", type));
|
||||
}
|
||||
|
||||
} else {
|
||||
angle_ = UPtrAngle {new Isotropic()};
|
||||
}
|
||||
|
||||
// Determine external source energy distribution
|
||||
if (check_for_node(node, "energy")) {
|
||||
pugi::xml_node node_dist = node.child("energy");
|
||||
|
|
@ -141,6 +144,7 @@ IndependentSource::IndependentSource(pugi::xml_node node)
|
|||
// Default to a Watt spectrum with parameters 0.988 MeV and 2.249 MeV^-1
|
||||
energy_ = UPtrDist {new Watt(0.988e6, 2.249e-6)};
|
||||
}
|
||||
|
||||
// Determine external source time distribution
|
||||
if (check_for_node(node, "time")) {
|
||||
pugi::xml_node node_dist = node.child("time");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue