Skip to content

Commit

Permalink
Add timer for additional flux calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Feb 24, 2025
1 parent 34225b2 commit d866c0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/viennaps/psProcess.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,9 @@ template <typename NumericType, int D> class Process {
prevStepCoverages =
SmartPointer<viennals::PointData<NumericType>>::New(*coverages);

rtTimer.start();
fluxes = calculateFluxes(rayTracer, useCoverages, useProcessParams);
rtTimer.finish();
model->getSurfaceModel()->updateCoverages(fluxes, materialIds);

coverages = model->getSurfaceModel()->getCoverages();
Expand All @@ -528,6 +530,10 @@ template <typename NumericType, int D> class Process {
}
covMetricFile << "\n";
}

Logger::getInstance()
.addTiming("Top-down flux calculation", rtTimer)
.print();
}
}
}
Expand Down

0 comments on commit d866c0b

Please sign in to comment.