Increased tolerance when testing TEMP in restart test.

This commit is contained in:
Joakim Hove
2018-02-01 08:14:32 +01:00
parent d39ad3a865
commit 6a7412af7e

View File

@@ -378,12 +378,15 @@ void compare( const RestartValue& fst,
const std::map<std::string, RestartKey>& keys) {
for (const auto& pair : keys) {
double tol = 0.00001;
auto first = fst.solution.data( pair.first ).begin();
auto second = snd.solution.data( pair.first ).begin();
if (pair.first == "TEMP")
tol *= 10;
for( ; first != fst.solution.data( pair.first ).end(); ++first, ++second )
BOOST_CHECK_CLOSE( *first, *second, 0.00001 );
BOOST_CHECK_CLOSE( *first, *second, tol );
}
BOOST_CHECK_EQUAL( fst.wells, snd.wells );