From 5bc545ac9934ba20a6ea473cbe1f430c293ae919 Mon Sep 17 00:00:00 2001 From: csendlinger Date: Thu, 13 Mar 2025 15:20:56 +0100 Subject: [PATCH] hotfix: changed a <= b to !(a > b) --- src/simulation/scattering_angle_distribution.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simulation/scattering_angle_distribution.cpp b/src/simulation/scattering_angle_distribution.cpp index edbaffe..0da0809 100755 --- a/src/simulation/scattering_angle_distribution.cpp +++ b/src/simulation/scattering_angle_distribution.cpp @@ -58,7 +58,7 @@ CompositeAngleDistribution::CompositeAngleDistribution( double CompositeAngleDistribution::roll(std::mt19937* engine, double energy_eV) { - if (energy_eV <= decider_energy_) { + if (!(energy_eV > decider_energy_)) { return lower_distribution_->roll(engine, energy_eV); } else { return higher_distribution_->roll(engine, energy_eV);