mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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
2875b64faf
commit
60ba51aea0
@ -142,12 +142,12 @@ void WellsManager::createWellsFromSpecs(std::vector<const Well*>& wells, size_t
|
|||||||
for (auto wellIter= wells.begin(); wellIter != wells.end(); ++wellIter) {
|
for (auto wellIter= wells.begin(); wellIter != wells.end(); ++wellIter) {
|
||||||
const auto* well = (*wellIter);
|
const auto* well = (*wellIter);
|
||||||
|
|
||||||
if ( ignored_wells.find(well->name()) != ignored_wells.end() ) {
|
if (well->getStatus(timeStep) == WellCommon::SHUT) {
|
||||||
wells_on_proc[ wellIter - wells.begin() ] = 0;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (well->getStatus(timeStep) == WellCommon::SHUT) {
|
if ( ignored_wells.find(well->name()) != ignored_wells.end() ) {
|
||||||
|
wells_on_proc[ wellIter - wells.begin() ] = 0;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user