preprocessor now filters debug output

This commit is contained in:
2025-05-28 15:27:00 +02:00
parent e2167fb75b
commit f510d0a39a
39 changed files with 375 additions and 14 deletions
+4 -2
View File
@@ -71,8 +71,10 @@ std::vector<particle::Particle> Injector::rollNewParticles(
for (auto& injector_info : injector_infos_) {
CylinderCoordinate position = position_distribution_->rollPosition(engine);
#ifdef debug_level3
DEBUG_LEVEL_3("Injected z position: " +
std::to_string(position.cylinderEntries()(2)));
#endif
// for (int i = 0; i < injector_info.multiplicity; i++) {
new_particles.push_back(
@@ -102,12 +104,12 @@ void Injector::drawNewParticleFromDensityField(std::mt19937* engine,
CylinderCoordinate position =
specie->positionDistributionFromDensity()->drawPosition(engine,
index(0), index(1), index(2));
#ifdef debug_level3
DEBUG_LEVEL_3("Injected z position: " +
std::to_string(position.cylinderEntries()(2)));
DEBUG_LEVEL_3("Injected r position: " +
std::to_string(position.cylinderEntries()(0)));
#endif
// draw the velocity
CartesianVector velocity(blitz::TinyVector<double, 3>(0,0,0));