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
+2
View File
@@ -13,7 +13,9 @@ ChargeExchange::ChargeExchange(std::function<double(double)> cross_section,
InteractionOutput ChargeExchange::performInteraction(
particle::Particle& particle,
RandomNumbers* generator) {
#ifdef debug_level3
DEBUG_LEVEL_3("Perform charge exchange.");
#endif
// const auto x_impact = particle.position();
// const blitz::TinyVector<double, 3> v_target =
+2
View File
@@ -17,7 +17,9 @@ ClusterFormation::ClusterFormation(
InteractionOutput ClusterFormation::performInteraction(
particle::Particle& particle,
RandomNumbers* generator) {
#ifdef debug_level3
DEBUG_LEVEL_3("Perform cluster formation.");
#endif
const auto x_impact = particle.position();
// const blitz::TinyVector<double, 3> v_target =
// target_->driftVelocity()->driftVelocity(x_impact).cartesianEntries() +
+2
View File
@@ -18,7 +18,9 @@ ElasticScattering::ElasticScattering(
InteractionOutput ElasticScattering::performInteraction(
particle::Particle& particle,
RandomNumbers* generator) {
#ifdef debug_level3
DEBUG_LEVEL_3("Perform elastic scattering.");
#endif
const blitz::TinyVector<double, 3> v_impact =
particle.velocity().cartesianEntries();
// const auto x_impact = particle.position();
+2
View File
@@ -18,7 +18,9 @@ Excitation::Excitation(std::function<double(double)> cross_section,
InteractionOutput Excitation::performInteraction(particle::Particle& particle,
RandomNumbers* generator) {
#ifdef debug_level3
DEBUG_LEVEL_3("Perform excitation.");
#endif
const blitz::TinyVector<double, 3> v_impact =
particle.velocity().cartesianEntries();
const blitz::TinyVector<double, 3> n_impact =
+2
View File
@@ -10,7 +10,9 @@ FreeMovement::FreeMovement()
InteractionOutput FreeMovement::performInteraction(particle::Particle& particle,
RandomNumbers* generator) {
#ifdef debug_level3
DEBUG_LEVEL_3("Perform free movement.");
#endif
// do nothing
return InteractionOutput();
}
+2
View File
@@ -29,7 +29,9 @@ ElectronIonization::ElectronIonization(
InteractionOutput ElectronIonization::performInteraction(
particle::Particle& particle,
RandomNumbers* generator) {
#ifdef debug_level3
DEBUG_LEVEL_3("Perform ionization.");
#endif
const blitz::TinyVector<double, 3> v_impact =
particle.velocity().cartesianEntries();
+2
View File
@@ -17,7 +17,9 @@ Recombination::Recombination(std::function<double(double)> cross_section,
InteractionOutput Recombination::performInteraction(
particle::Particle& particle,
RandomNumbers* generator) {
#ifdef debug_level3
DEBUG_LEVEL_3("Perform recombination.");
#endif
// std::vector<double> macroscopic_bin_cross_sections_m;
// const int number_energy_bins = recombination_target_->dynamicDensityField()