Added Schedule code to load Completions - with integrationTest
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user