Added Schedule code to load Completions - with integrationTest

This commit is contained in:
Joakim Hove
2013-11-09 13:17:42 +01:00
parent 7d015772ee
commit 0f09746143
6 changed files with 97 additions and 56 deletions

View File

@@ -73,6 +73,9 @@ namespace Opm {
handleWCONPROD(keyword, currentStep);
if (keyword->name() == "COMPDAT")
handleCOMPDAT( keyword , currentStep );
deckIndex++;
}
}
@@ -118,6 +121,18 @@ namespace Opm {
handleWCON(keyword, currentStep, true);
}
void Schedule::handleCOMPDAT(DeckKeywordConstPtr keyword , size_t currentStep) {
std::map<std::string , std::vector< CompletionConstPtr> > completionMapList = Completion::completionsFromCOMPDATKeyword( keyword );
std::map<std::string , std::vector< CompletionConstPtr> >::iterator iter;
for( iter= completionMapList.begin(); iter != completionMapList.end(); iter++) {
const std::string wellName = iter->first;
WellPtr well = getWell( wellName );
well->addCompletions( currentStep , iter->second );
}
}
boost::gregorian::date Schedule::getStartDate() const {
return m_timeMap->getStartDate();
}