minor bug fixes
This commit is contained in:
@@ -26,7 +26,7 @@ InteractionOutput ClusterFormation::performInteraction(
|
||||
const double energy_eV =
|
||||
kinematic::kineticEnergy(v_target, target_->mass_kg());
|
||||
const blitz::TinyVector<double, 3> v_cluster =
|
||||
kinematic::velocity(energy_eV, product_->mass_kg()) *
|
||||
kinematic::velocity(energy_eV, product_->mass_kg()) * v_target /
|
||||
kinematic::norm(v_target);
|
||||
particle::Particle cluster(product_, x_impact, CartesianVector(v_cluster));
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ void Simulation::processEvents(int events) {
|
||||
particle_queue.insert(particle_queue.end(), new_particles.begin(),
|
||||
new_particles.end());
|
||||
}
|
||||
DEBUG_LEVEL_2("Particles in queue: " + particle_queue.size());
|
||||
DEBUG_LEVEL_2("Particles in queue: " + std::to_string(particle_queue.size()));
|
||||
const int particle_number =
|
||||
particleNumberFromQueue(particle_queue.size(), random_.get());
|
||||
|
||||
@@ -188,7 +188,8 @@ void Simulation::processUntilTermination(
|
||||
}
|
||||
|
||||
if (particle.specie()->terminator()->reachedMaxInteractions(&particle)) {
|
||||
DEBUG_LEVEL_3("Terminate particle. Reached max interactions.");
|
||||
DEBUG_LEVEL_3("Terminate particle" + particle.specie()->name()
|
||||
+ ". Reached max interactions.");
|
||||
if (particle.specie()->deletionLogger()) {
|
||||
particle.specie()->deletionLogger()->logDeletion(
|
||||
particle.position(), DeletionType::max_interactions);
|
||||
|
||||
Reference in New Issue
Block a user