From 4195d1e8ca464aa5435f9376ac70d1ead190d7eb Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 12 Jan 2023 23:18:25 -0600 Subject: [PATCH] Restoring blank lines in settings.cpp and source.cpp --- src/settings.cpp | 4 ++++ src/source.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/settings.cpp b/src/settings.cpp index c3ecd46b4..310378517 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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(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(root, "trace"); diff --git a/src/source.cpp b/src/source.cpp index 2fdcc319f..2cb5632b3 100644 --- a/src/source.cpp +++ b/src/source.cpp @@ -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");