preprocessor now filters debug output
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user