Skip to content
Snippets Groups Projects
Commit 037c1146 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Make FPI tolerance configurable

parent e4479b29
No related branches found
No related tags found
No related merge requests found
...@@ -275,7 +275,8 @@ int main(int argc, char *argv[]) { ...@@ -275,7 +275,8 @@ int main(int argc, char *argv[]) {
std::cout << '.'; std::cout << '.';
std::cout.flush(); std::cout.flush();
} }
if (energyNorm.diff(u4_diff_old, u4_diff) < 1e-14) // TODO if (energyNorm.diff(u4_diff_old, u4_diff) <
parset.get<double>("solver.tnnmg.fixed_point_tolerance"))
break; break;
} }
......
...@@ -27,6 +27,7 @@ tolerance = 1e-14 ...@@ -27,6 +27,7 @@ tolerance = 1e-14
use = true use = true
maxiterations = 1000000 maxiterations = 1000000
fixed_point_iterations = 20 fixed_point_iterations = 20
fixed_point_tolerance = 1e-14
[solver.tnnmg.linear] [solver.tnnmg.linear]
maxiterations = 1000000 maxiterations = 1000000
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment