Skip to content

Commit

Permalink
Start loop with i = 0, improve name in log
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Oct 25, 2023
1 parent 577d88e commit 51b4418
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/calculation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,11 +854,11 @@ void Calculation::logResults(

logVariable("in.mainArea", results.mainArea);

logVariable("bagrov_roof", results.runoffSealed.roof);
logVariable("runoffSealed.roof", results.runoffSealed.roof);

for (int i = 1; i < results.runoffSealed.surface.size(); i++) {
for (int i = 0; i < results.runoffSealed.surface.size(); i++) {
logVariable(
QString("bagrov_surface[%1]").arg(i),
QString("runoffSealed.surface[%1]").arg(i),
results.runoffSealed.surface[i]
);
}
Expand Down

0 comments on commit 51b4418

Please sign in to comment.