Do exclude SHUT wells from lookup of deactivated wells.

This should be prevent some unnecessary find calls in the set.
This commit is contained in:
Markus Blatt 2016-09-12 12:02:20 +02:00
parent 2875b64faf
commit 60ba51aea0

View File

@ -142,12 +142,12 @@ void WellsManager::createWellsFromSpecs(std::vector<const Well*>& wells, size_t
for (auto wellIter= wells.begin(); wellIter != wells.end(); ++wellIter) {
const auto* well = (*wellIter);
if ( ignored_wells.find(well->name()) != ignored_wells.end() ) {
wells_on_proc[ wellIter - wells.begin() ] = 0;
if (well->getStatus(timeStep) == WellCommon::SHUT) {
continue;
}
if (well->getStatus(timeStep) == WellCommon::SHUT) {
if ( ignored_wells.find(well->name()) != ignored_wells.end() ) {
wells_on_proc[ wellIter - wells.begin() ] = 0;
continue;
}