"tests/run_mpi_tests.sh" did not exist on "49a198c99cdf61cf869ced2dc1e4e8b69926ceed"
Commit 599a67ee authored by Umang Yadav's avatar Umang Yadav
Browse files

rename to tols

parent 608e1ae0
...@@ -226,13 +226,13 @@ struct tolerance ...@@ -226,13 +226,13 @@ struct tolerance
}; };
template <class R1, class R2> template <class R1, class R2>
bool allclose(const R1& r1, const R2& r2, tolerance thres) bool allclose(const R1& r1, const R2& r2, tolerance tols)
{ {
std::size_t n = range_distance(r1); std::size_t n = range_distance(r1);
if(n == range_distance(r2)) if(n == range_distance(r2))
{ {
auto idx = mismatch_idx(r1, r2, [&](auto x, auto y) { auto idx = mismatch_idx(r1, r2, [&](auto x, auto y) {
return abs_diff(double(x), double(y)) > thres.atol + thres.rtol * std::abs(double(y)); return abs_diff(double(x), double(y)) > tols.atol + tols.rtol * std::abs(double(y));
}); });
if(idx < range_distance(r1)) if(idx < range_distance(r1))
{ {
......
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