Restoring blank lines in settings.cpp and source.cpp

This commit is contained in:
Patrick Shriwise 2023-01-12 23:18:25 -06:00
parent d4cbcd12fc
commit 4195d1e8ca
2 changed files with 8 additions and 0 deletions

View file

@ -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");