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
@@ -10,8 +10,10 @@ std::shared_ptr<VelocityDistribution> buildVelocityDistribution(
const json_path& path_to_distribution) {
if (parameter.jsonObjectFromBase(json_path_append(
path_to_distribution, {"VelocityDistributionFromFunction"}))) {
#ifdef debug_level2
DEBUG_LEVEL_2(
"Creating velocity distribution: VelocityDistributionFromFunction");
#endif
std::shared_ptr<VelocityDistributionFunction> v =
buildVelocityDistributionFunction(
parameter, json_path_append(path_to_distribution,
@@ -21,7 +23,9 @@ std::shared_ptr<VelocityDistribution> buildVelocityDistribution(
new VelocityDistributionFromFunction(v));
} else if (parameter.jsonObjectFromBase(
json_path_append(path_to_distribution, {"null"}))) {
#ifdef debug_level2
DEBUG_LEVEL_2("Creating velocity distribution: null");
#endif
return nullptr;
} else {
ERROR("This velocity distribution is not implemented.");