From bfca7c9fe864314336675fa946d98451da338db2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torbj=C3=B8rn=20Skille?= Date: Fri, 7 Feb 2020 12:41:14 +0100 Subject: [PATCH] Disable checking of DOUBHEAD[1] with compareECL --- test_util/EclRegressionTest.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test_util/EclRegressionTest.cpp b/test_util/EclRegressionTest.cpp index 2e2c40e76..23da4fc73 100644 --- a/test_util/EclRegressionTest.cpp +++ b/test_util/EclRegressionTest.cpp @@ -817,6 +817,12 @@ void ECLRegressionTest::results_rst() } else if (arrayType1[i] == DOUB) { auto vect1 = rst1.getRst(keywords1[i], seqn, 0); auto vect2 = rst2.getRst(keywords2[ind2], seqn, 0); + + // hack in order to not test doubhead[1], dependent on simulation results + // All ohter items in DOUBHEAD are tested with strict tolerances + if (keywords1[i]=="DOUBHEAD"){ + vect2[1] = vect1[1]; + } compareFloatingPointVectors(vect1, vect2, keywords1[i], reference); } else if (arrayType1[i] == LOGI) { auto vect1 = rst1.getRst(keywords1[i], seqn, 0);