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