1. Added well collection to Schedule object.

2. Adding wells from Welspecs and setting Oilrate from WCONHIST
This commit is contained in:
Joakim Hove
2013-11-05 15:25:47 +01:00
parent 6d30a6a7fa
commit ffc5dc3c53
8 changed files with 269 additions and 52 deletions

View File

@@ -39,6 +39,25 @@ BOOST_AUTO_TEST_CASE( CreateSchedule ) {
ScheduleConstPtr sched( new Schedule(deck));
TimeMapConstPtr timeMap = sched->getTimeMap();
BOOST_CHECK_EQUAL( boost::gregorian::date( 2007 , boost::gregorian::May , 10 ) , sched->getStartDate());
BOOST_CHECK_EQUAL( 9U , timeMap->size());
}
BOOST_AUTO_TEST_CASE( WellTesting ) {
ParserPtr parser(new Parser());
boost::filesystem::path scheduleFile("testdata/integration_tests/SCHEDULE/SCHEDULE_WELLS2");
DeckPtr deck = parser->parse(scheduleFile.string());
ScheduleConstPtr sched( new Schedule(deck));
BOOST_CHECK_EQUAL( 3U , sched->numWells());
BOOST_CHECK( sched->hasWell("OP_1"));
BOOST_CHECK( sched->hasWell("OP_2"));
BOOST_CHECK( sched->hasWell("OP_3"));
{
WellPtr well1 = sched->getWell("OP_1");
BOOST_CHECK_EQUAL( 14000 , well1->getOilRate( 8 ));
}
}