reduction of std::pow calls; stronger usage of
Cartesian- and CylinderCoordinate objects
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user