From 0944cbbed99931118e24635e861bbb6cea1b4072 Mon Sep 17 00:00:00 2001 From: Vegard Kippe Date: Fri, 25 Aug 2023 14:13:04 +0200 Subject: [PATCH] fixing indent --- tests/test_tuning_TSINIT_NEXTSTEP.cpp | 60 +++++++++++++-------------- 1 file changed, 28 insertions(+), 32 deletions(-) diff --git a/tests/test_tuning_TSINIT_NEXTSTEP.cpp b/tests/test_tuning_TSINIT_NEXTSTEP.cpp index ec3c4f8db..8aab51442 100644 --- a/tests/test_tuning_TSINIT_NEXTSTEP.cpp +++ b/tests/test_tuning_TSINIT_NEXTSTEP.cpp @@ -15,38 +15,34 @@ inline bool is_close(double a, double b, double tol = TOLERANCE) { BOOST_AUTO_TEST_CASE(CheckTSINITAndNEXTSTEP) { - //std::string case_name(boost::unit_test::framework::master_test_suite().argv[1]); - std::string case_name("02_TUNING_TSINIT_NEXTSTEP"); - - BOOST_TEST_MESSAGE("---------------------------------------------------------------------------"); - BOOST_TEST_MESSAGE("Checking TSINIT and NEXTSTEP, see file " + case_name + ".DATA"); - BOOST_TEST_MESSAGE("---------------------------------------------------------------------------"); - - - Opm::EclIO::ESmry smry(case_name, false); - smry.loadData({"TIME"}); - const auto& time = smry.get("TIME"); - - // First time step 1 day - BOOST_CHECK_CLOSE(time[0], 1.0, TOLERANCE); + //std::string case_name(boost::unit_test::framework::master_test_suite().argv[1]); std::string case_name("02_TUNING_TSINIT_NEXTSTEP"); + BOOST_TEST_MESSAGE("---------------------------------------------------------------------------"); + BOOST_TEST_MESSAGE("Checking TSINIT and NEXTSTEP, see file " + case_name + ".DATA"); + BOOST_TEST_MESSAGE("---------------------------------------------------------------------------"); + Opm::EclIO::ESmry smry(case_name, false); + smry.loadData({"TIME"}); + const auto& time = smry.get("TIME"); - for (size_t i=0; i 15.1); - // Persistent NEXTSTEP=0.5 - if (is_close(time[i], 31.0)) BOOST_CHECK_CLOSE(time[i+1], 31.5, TOLERANCE); - if (is_close(time[i], 45.0)) BOOST_CHECK_CLOSE(time[i+1], 45.5, TOLERANCE); - // Non-persistent NEXTSTEP=1.0 - if (is_close(time[i], 60.0)) BOOST_CHECK_CLOSE(time[i+1], 61.0, TOLERANCE); - if (is_close(time[i], 74.0)) BOOST_CHECK(time[i+1] > 75.1); - // TSINIT=0.5 - if (is_close(time[i], 91.0)) BOOST_CHECK_CLOSE(time[i+1], 91.5, TOLERANCE); - if (is_close(time[i], 105.0)) BOOST_CHECK(time[i+1] > 105.6); - } + // First time step 1 day + BOOST_CHECK_CLOSE(time[0], 1.0, TOLERANCE); + + for (size_t i=0; i 15.1); + // Persistent NEXTSTEP=0.5 + if (is_close(time[i], 31.0)) BOOST_CHECK_CLOSE(time[i+1], 31.5, TOLERANCE); + if (is_close(time[i], 45.0)) BOOST_CHECK_CLOSE(time[i+1], 45.5, TOLERANCE); + // Non-persistent NEXTSTEP=1.0 + if (is_close(time[i], 60.0)) BOOST_CHECK_CLOSE(time[i+1], 61.0, TOLERANCE); + if (is_close(time[i], 74.0)) BOOST_CHECK(time[i+1] > 75.1); + // TSINIT=0.5 + if (is_close(time[i], 91.0)) BOOST_CHECK_CLOSE(time[i+1], 91.5, TOLERANCE); + if (is_close(time[i], 105.0)) BOOST_CHECK(time[i+1] > 105.6); + } }