Commit 81a0c3ef authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

improved tolerance in iterative implicit representation

parent c131e6d1
Pipeline #3856 passed with stage
in 10 minutes and 2 seconds
......@@ -42,7 +42,7 @@ public:
using T = typename Domain::value_type;
Domain x = x0;
T tol = sqrt(std::numeric_limits<T>::epsilon());
T tol = 2*std::numeric_limits<T>::epsilon();
auto phi = phi_(x);
auto sign = phi > 0 ? 1 : phi < 0 ? -1 : 0;
......@@ -115,7 +115,7 @@ public:
using std::sqrt;
using T = typename Domain::value_type;
T tol = sqrt(std::numeric_limits<T>::epsilon());
T tol = 2*std::numeric_limits<T>::epsilon();
for (int i = 0; i < maxIter_; ++i) {
auto phi_x = phi_(x);
......
foreach (geometry RANGE 1 3)
foreach (order RANGE 1 3)
foreach (order RANGE 1 4)
dune_add_test(NAME convergence-g${geometry}-p${order}
SOURCES convergence.cc
COMPILE_DEFINITIONS
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment