From 4241e169fcbb89d530c7ca46bb5d2c0dd5854fe5 Mon Sep 17 00:00:00 2001 From: Fredrik Gundersen Date: Thu, 12 Feb 2015 10:29:21 +0100 Subject: [PATCH] Fix test after update of rules for OPEN well status --- .../EclipseState/Schedule/tests/WellTests.cpp | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/opm/parser/eclipse/EclipseState/Schedule/tests/WellTests.cpp b/opm/parser/eclipse/EclipseState/Schedule/tests/WellTests.cpp index 900a5e0e7..5149600ee 100644 --- a/opm/parser/eclipse/EclipseState/Schedule/tests/WellTests.cpp +++ b/opm/parser/eclipse/EclipseState/Schedule/tests/WellTests.cpp @@ -475,10 +475,18 @@ BOOST_AUTO_TEST_CASE(InjectorType) { BOOST_AUTO_TEST_CASE(WellStatus) { Opm::TimeMapPtr timeMap = createXDaysTimeMap(10); - std::shared_ptr grid = std::make_shared(10,10,10); - Opm::Well well("WELL1", grid , 1, 2, Opm::Value("REF_DEPTH" , 2334.32), Opm::Phase::WATER, timeMap, 0); + Opm::EclipseGridConstPtr grid = std::make_shared(20, 20, 20); - well.setStatus( 1 , Opm::WellCommon::OPEN ); + Opm::Well well("WELL1" , grid , 0, 0, Opm::Value("REF_DEPTH"), Opm::Phase::OIL, timeMap , 0); + + std::vector newCompletions; + Opm::CompletionPtr comp1(new Opm::Completion( 10 , 10 , 10 , Opm::WellCompletion::OPEN , Opm::Value("ConnectionTransmissibilityFactor",99.88), Opm::Value("D",22.33), Opm::Value("SKIN",33.22))); + + newCompletions.push_back( comp1 ); + + well.addCompletions( 2 , newCompletions ); + + well.setStatus( 3 , Opm::WellCommon::OPEN ); BOOST_CHECK_EQUAL( Opm::WellCommon::OPEN , well.getStatus( 5 )); }