Skip to content
Snippets Groups Projects
Commit d90326e7 authored by Oliver Sander's avatar Oliver Sander Committed by sander@FU-BERLIN.DE
Browse files

try to make convergence rate averaging a bit more robust

[[Imported from SVN: r6922]]
parent 4d67e43f
No related branches found
No related tags found
No related merge requests found
...@@ -663,7 +663,7 @@ int main (int argc, char *argv[]) try ...@@ -663,7 +663,7 @@ int main (int argc, char *argv[]) try
// Only when we hit numerical dirt are they starting to wiggle around wildly. // Only when we hit numerical dirt are they starting to wiggle around wildly.
// We use this to detect 'the' convergence rate as the last averaged rate before // We use this to detect 'the' convergence rate as the last averaged rate before
// we hit the dirt. // we hit the dirt.
if (convRate > oldConvRate + 0.1 && i > 5 && firstTime) { if (convRate > oldConvRate + 0.15 && i > 5 && firstTime) {
std::cout << "Damping: " << damping std::cout << "Damping: " << damping
<< " convRate: " << std::pow(totalConvRate[i], 1/((double)i)) << " convRate: " << std::pow(totalConvRate[i], 1/((double)i))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment