Don't Initialize Well State for Shut Wells

This commit is contained in:
Joakim Hove authored and Bård Skaflestad committed 2021-03-20 20:33:28 +01:00
1 parent 4fd5d52f2f
commit 44eb07e621
1 file changed
+4
@@ -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 )
{