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:
parent
c4f0539534
commit
21de431eb1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user