Merge pull request #102 from joakim-hove/well-injection-phase

Well injection phase
This commit is contained in:
Kristian Flikka
2014-01-28 11:37:49 -08:00
14 changed files with 176 additions and 72 deletions

View File

@@ -29,6 +29,7 @@
#include <opm/parser/eclipse/Deck/DeckRecord.hpp>
#include <opm/parser/eclipse/Deck/DeckStringItem.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/ScheduleEnums.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/Well.hpp>
#include <opm/parser/eclipse/EclipseState/Schedule/TimeMap.hpp>
@@ -253,3 +254,13 @@ BOOST_AUTO_TEST_CASE(XHPLimitDefault) {
BOOST_CHECK_EQUAL( 200 , well.getTHPLimit( 5 ));
}
BOOST_AUTO_TEST_CASE(InjectorType) {
Opm::TimeMapPtr timeMap = createXDaysTimeMap(10);
Opm::Well well("WELL1", 1, 2, 2334.32, timeMap, 0);
well.setInjectorType( 1 , Opm::InjectorType::WATER );
BOOST_CHECK_EQUAL( Opm::InjectorType::WATER , well.getInjectorType( 5 ));
}