mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Made error tolerances stricter.
This commit is contained in:
parent
63fb363a83
commit
dfa7034f1b
@ -236,7 +236,7 @@ BOOST_AUTO_TEST_CASE(RandomVectors)
|
|||||||
aGPU.axpy(scalar, bGPU);
|
aGPU.axpy(scalar, bGPU);
|
||||||
auto aOutputSaxypy = aGPU.asStdVector();
|
auto aOutputSaxypy = aGPU.asStdVector();
|
||||||
for (size_t i = 0; i < N; ++i) {
|
for (size_t i = 0; i < N; ++i) {
|
||||||
BOOST_CHECK_CLOSE(aOutputSaxypy[i], a[i] + scalar * b[i], 1e-7);
|
BOOST_CHECK_CLOSE(aOutputSaxypy[i], a[i] + scalar * b[i], 1e-10);
|
||||||
}
|
}
|
||||||
|
|
||||||
aGPU = GVector(a);
|
aGPU = GVector(a);
|
||||||
@ -246,7 +246,7 @@ BOOST_AUTO_TEST_CASE(RandomVectors)
|
|||||||
correct += a[i] * b[i];
|
correct += a[i] * b[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOST_CHECK_CLOSE(dotted, correct, 1e-7);
|
BOOST_CHECK_CLOSE(dotted, correct, 1e-10);
|
||||||
|
|
||||||
aGPU = GVector(a);
|
aGPU = GVector(a);
|
||||||
auto twoNorm = aGPU.two_norm();
|
auto twoNorm = aGPU.two_norm();
|
||||||
@ -256,7 +256,7 @@ BOOST_AUTO_TEST_CASE(RandomVectors)
|
|||||||
}
|
}
|
||||||
correctTwoNorm = std::sqrt(correctTwoNorm);
|
correctTwoNorm = std::sqrt(correctTwoNorm);
|
||||||
|
|
||||||
BOOST_CHECK_CLOSE(twoNorm, correctTwoNorm, 1e-7);
|
BOOST_CHECK_CLOSE(twoNorm, correctTwoNorm, 1e-12);
|
||||||
|
|
||||||
aGPU = GVector(a);
|
aGPU = GVector(a);
|
||||||
std::vector<int> indexSet;
|
std::vector<int> indexSet;
|
||||||
@ -290,6 +290,6 @@ BOOST_AUTO_TEST_CASE(RandomVectors)
|
|||||||
}
|
}
|
||||||
correctTwoNormAtIndices = std::sqrt(correctTwoNormAtIndices);
|
correctTwoNormAtIndices = std::sqrt(correctTwoNormAtIndices);
|
||||||
|
|
||||||
BOOST_CHECK_CLOSE(correctTwoNormAtIndices, twoNormAtIndices, 1e-7);
|
BOOST_CHECK_CLOSE(correctTwoNormAtIndices, twoNormAtIndices, 1e-13);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user