Skip to content

Commit

Permalink
Add info message when repeating flux calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Feb 24, 2025
1 parent 1cce496 commit 34225b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/holeEtching/holeEtching.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) {
Process<NumericType, D> process;
process.setDomain(geometry);
process.setProcessModel(model);
process.setMaxCoverageInitIterations(20);
process.setCoverageDeltaThreshold(1e-4);
process.setNumberOfRaysPerPoint(params.get("raysPerPoint"));
process.setProcessDuration(params.get("processTime"));
process.setIntegrationScheme(
Expand Down
5 changes: 5 additions & 0 deletions include/viennaps/psProcess.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,11 @@ template <typename NumericType, int D> class Process {
auto metric =
calculateCoverageDeltaMetric(coverages, prevStepCoverages);
while (!checkCoveragesConvergence(metric)) {
Logger::getInstance()
.addInfo("Coverages did not converge. Repeating flux "
"calculation.")
.print();

prevStepCoverages =
SmartPointer<viennals::PointData<NumericType>>::New(*coverages);

Expand Down

0 comments on commit 34225b2

Please sign in to comment.