small fixes and cosmetic changes

This commit is contained in:
2024-09-05 09:33:12 +02:00
parent 9c45fce644
commit 75bb2e4d85
11 changed files with 69 additions and 131 deletions
+4 -2
View File
@@ -128,7 +128,10 @@ void Simulation::start() {
const double delta_t = time_resolution_events*injector_->timePassed();
if(delta_t != timer_->getDeltaT()) {
// if delta_t of the timer after creation and potential restart is 0, then
// it's indicative of no restart having occured (a simulation with a delta_t
// of 0 would not be sensible)
if(timer_->getDeltaT() != 0 && delta_t != timer_->getDeltaT()) {
std::stringstream out;
out << "Old delta t: " << timer_->getDeltaT();
out << "; new delta t: " << delta_t;
@@ -448,7 +451,6 @@ std::vector<particle::Particle> Simulation::determineInjectedDensityParticles(
}
if (current == 0) {
DEBUG_LEVEL_0("particle number " + pair.second->name() + ": " + std::to_string(particleNumberDensity));
// DEBUG_LEVEL_0("weight: " + std::to_string(particleNumberDensity/numberParticlesToDraw));
}
injector_->rollNewParticleFromDensityField(random->engine(),
pair.second,