Added test for SHUT well

This commit is contained in:
Joakim Hove 2014-10-07 12:12:15 +02:00
parent 73b82ed188
commit 0657cc4deb
2 changed files with 24 additions and 0 deletions

View File

@ -236,6 +236,19 @@ BOOST_AUTO_TEST_CASE(ControlsEqual) {
BOOST_AUTO_TEST_CASE(WellShutOK) {
const std::string filename = "wells_manager_data.data";
Opm::ParserPtr parser(new Opm::Parser());
Opm::DeckConstPtr deck(parser->parseFile(filename));
Opm::EclipseStateConstPtr eclipseState(new Opm::EclipseState(deck));
Opm::GridManager gridManager(deck);
BOOST_CHECK_NO_THROW( Opm::WellsManager wellsManager2(eclipseState , 2 , *gridManager.c_grid(), NULL));
}
BOOST_AUTO_TEST_CASE(WellHasSTOP_ExceptionIsThrown) {
const std::string filename = "wells_manager_data_wellSTOP.data";
Opm::ParserPtr parser(new Opm::Parser());

View File

@ -55,5 +55,16 @@ WCONINJE
'INJ1' 'WATER' 'OPEN' 'RESV' 10 20 40 /
/
DATES
1 'MAR' 2000 /
/
WCONPROD
'PROD1' 'SHUT' 15* /
/
END