reduction of std::pow calls; stronger usage of

Cartesian- and CylinderCoordinate objects
This commit is contained in:
2025-06-02 11:09:57 +02:00
parent f510d0a39a
commit d6578e540d
19 changed files with 120 additions and 77 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ InteractionOutput Recombination::performInteraction(
if (particle.specie()->deletionLogger()) {
particle.specie()->deletionLogger()->logDeletion(
particle.position(), DeletionType::recombination);
particle.cartesianPosition(), DeletionType::recombination);
}
return output;
@@ -128,7 +128,7 @@ double Recombination::macroscopicCrossSection(particle::Particle& particle) {
const int numBins = recombination_target_->dynamicDensityField()->
energyBinning()->binIndexMax();
double macroscopic_cross_section = 0.;
const auto position = particle.position();
const auto position = particle.cylinderPosition();
for (int bin = 0; bin < numBins - 1; ++bin) {
macroscopic_cross_section += macroscopicCrossSection(position, bin);
}