Don't Initialize Well State for Shut Wells

This commit is contained in:
Joakim Hove
2021-02-04 14:42:18 +01:00
committed by Bård Skaflestad
parent 4fd5d52f2f
commit 44eb07e621

View File

@@ -213,6 +213,10 @@ namespace Opm
auto end = prevState->wellMap().end();
for (int w = 0; w < nw; ++w) {
const Well& well = wells_ecl[w];
if (well.getStatus() == Well::Status::SHUT) {
continue;
}
auto it = prevState->wellMap().find(well.name());
if ( it != end )
{