Minor changes in debug output, added information
to error messages
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user