From 186d77867a8fe3ee5148b264cdf4c2fc0cac14e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 14 Dec 2015 15:25:27 +0100 Subject: [PATCH] Silence warnings in test programs. --- tests/test_pinchprocessor.cpp | 12 ++++++------ tests/test_relpermdiagnostics.cpp | 4 ++++ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/tests/test_pinchprocessor.cpp b/tests/test_pinchprocessor.cpp index ce459e72e..64deaabfb 100644 --- a/tests/test_pinchprocessor.cpp +++ b/tests/test_pinchprocessor.cpp @@ -106,12 +106,12 @@ BOOST_AUTO_TEST_CASE(Processing) auto nnc2_index = 1 + cart_dims[0] * (0 + cart_dims[1] * 3); BOOST_CHECK_EQUAL(nncdata[0].cell1, nnc1_index); BOOST_CHECK_EQUAL(nncdata[0].cell2, nnc2_index); - double factor = Opm::prefix::centi*Opm::unit::Poise - * Opm::unit::cubic(Opm::unit::meter) - / Opm::unit::day - / Opm::unit::barsa; - double trans = unit::convert::to(nncdata[0].trans,factor); std::cout << "WARNING. The opmfil option is hardcoded i.e. the calculated transmissibility is wrong"; - //BOOST_CHECK(std::fabs(trans-4.26350022) < 1e-3); + // double factor = Opm::prefix::centi*Opm::unit::Poise + // * Opm::unit::cubic(Opm::unit::meter) + // / Opm::unit::day + // / Opm::unit::barsa; + // double trans = unit::convert::to(nncdata[0].trans, factor); + //BOOST_CHECK(std::fabs(trans - 4.26350022) < 1e-3); } diff --git a/tests/test_relpermdiagnostics.cpp b/tests/test_relpermdiagnostics.cpp index 63e2ed4aa..f83c0be06 100644 --- a/tests/test_relpermdiagnostics.cpp +++ b/tests/test_relpermdiagnostics.cpp @@ -27,8 +27,12 @@ #define NVERBOSE // Suppress own messages when throw()ing #define BOOST_TEST_MODULE RelpermDiagnostics + + +#include #include #include +#include #include #include