Minor changes in debug output, added information

to error messages
This commit is contained in:
2024-03-15 15:49:40 +01:00
parent 55c51f8434
commit 2fccef7132
19 changed files with 41 additions and 32 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ Excitation::Excitation(std::function<double(double)> cross_section,
: Interaction(cross_section, target),
excitation_energy_eV_(excitation_energy_eV) {
ASSERT_POSITIVE(&excitation_energy_eV_,
"The exitationenergy must be positive.");
"The exitation energy must be positive.");
}
InteractionOutput Excitation::performInteraction(particle::Particle& particle,
+3 -2
View File
@@ -65,8 +65,9 @@ InteractionOutput Recombination::performInteraction(
macroscopic_bin_cross_sections_m.end(), 0.0);
if(total_macroscopic_cross_section_m <= 0.) {
ERROR("Total cross section is " + std::to_string(total_macroscopic_cross_section_m) +
". But recombination was chosen.");
ERROR("Total cross section is " +
std::to_string(total_macroscopic_cross_section_m) +
". But recombination was chosen.");
}
std::discrete_distribution<int> energy_bin_decider(