Bug fixes and formatting

This commit is contained in:
2025-02-18 11:17:24 +01:00
parent 24b2c2f2ed
commit 9cd7db4e05
6 changed files with 48 additions and 31 deletions
+4 -1
View File
@@ -35,7 +35,10 @@ VelocityDistributionFromDensityField::VelocityDistributionFromDensityField(
energyBinBorders_(density_field->energyBinning()->binBorders()),
pitchAngleBinBorders_(density_field->pitchAngleBinning()->binBorders()),
theta_distribution_(std::uniform_real_distribution<double>(0.,1.)),
mass_kg_(mass_kg) {}
mass_kg_(mass_kg) {
// necessary to include the underflow bin in the energy domain
energyBinBorders_.insert(energyBinBorders_.begin(), 0);
}
// not important as of now since it's meant for drawing a velocity from the
// pitch angle distribution and not to be used in an interaction context in which