From 034656b9fb4e816b5bcd93af5095a1cb47377951 Mon Sep 17 00:00:00 2001 From: Joakim Hove Date: Thu, 12 Mar 2020 17:41:08 +0100 Subject: [PATCH] Remove test application rst_load --- CMakeLists_files.cmake | 1 - ExtraTests.cmake | 2 -- tests/rst_load.cpp | 52 ------------------------------------------ 3 files changed, 55 deletions(-) delete mode 100644 tests/rst_load.cpp diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index 0a9737641..9f8e2baa5 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -442,7 +442,6 @@ if(ENABLE_ECL_INPUT) examples/opmi.cpp examples/opmpack.cpp examples/opmhash.cpp - tests/rst_load.cpp ) endif() diff --git a/ExtraTests.cmake b/ExtraTests.cmake index 2630d50c8..08e33cca0 100644 --- a/ExtraTests.cmake +++ b/ExtraTests.cmake @@ -105,8 +105,6 @@ if(HAVE_OPM_TESTS) opm_add_test("SPE9_CP_GROUP2" NO_COMPILE EXE_NAME parse_write TEST_ARGS "${OPM_TESTS_ROOT}/spe9group/SPE9_CP_GROUP.DATA") set_property(TEST NORNE_ATW2013 PROPERTY ENVIRONMENT "OPM_ERRORS_IGNORE=PARSE_RANDOM_SLASH") - - opm_add_test("RST_LOAD_MSW" NO_COMPILE EXE_NAME rst_load TEST_ARGS "${OPM_TESTS_ROOT}/msw_3d_hfa/opm-simulation-reference/flow/3D_MSW.UNRST") endif() # JSON tests diff --git a/tests/rst_load.cpp b/tests/rst_load.cpp deleted file mode 100644 index ceae034f5..000000000 --- a/tests/rst_load.cpp +++ /dev/null @@ -1,52 +0,0 @@ -/* - Copyright 2020 Equinor ASA - - This file is part of the Open Porous Media project (OPM). - - OPM is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OPM is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with OPM. If not, see . -*/ -#include - - -#include - -#include -#include -#include - - - - -int main(int argc, char ** argv) { - for (int iarg = 1; iarg < argc; iarg++) { - Opm::EclIO::ERst rst_file(argv[iarg]); - for (int report_step : rst_file.listOfReportStepNumbers()) { - if (report_step > 0) { - std::cout << "Loading restart step: " << report_step << std::endl; - const auto& state = Opm::RestartIO::RstState::load(rst_file, report_step); - static_cast(state); // Suppress unused variable warning. - - - - for (const auto& rst_well : state.wells) { - std::cout << "Loading well " << rst_well.name << std::endl; - for (const auto& rst_segment : rst_well.segments) { - std::cout << " Segment: " << rst_segment.segment << std::endl; - Opm::Segment segment(rst_segment); - } - } - } - } - } -}