Skip to content

Commit

Permalink
Log entry for auto scaling of point emissions
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed Mar 16, 2023
1 parent a06a47f commit d60cfe9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions logic/emissioninventory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,13 @@ static EmissionInventory create_emission_inventory_impl(const SingleEmissions& t
pointEmissionSum = diffuseEmission;
} else if (scalingFactor * 100 >= cfg.point_source_rescale_threshold()) {
pointEmissionAutoScale = scalingFactor;
Log::info("The sum of the point emissions ({}) for {} is bigger than the total emissions ({}) for sector {} and pollutant {} but is within the rescale threshold {} >= {}", pointEmissionSum,
em.country(),
diffuseEmission,
em.sector(),
em.pollutant(),
scalingFactor * 100,
cfg.point_source_rescale_threshold());
} else {
throw RuntimeError("The sum of the point emissions ({}) for {} is bigger than the total emissions ({}) for sector {} and pollutant {} and fails the rescale threshold {} < {}",
pointEmissionSum,
Expand Down

0 comments on commit d60cfe9

Please sign in to comment.