fix issue when switching from injection to/from production

This commit is contained in:
Tor Harald Sandve 2021-03-08 11:13:34 +01:00
parent f861188d60
commit a098d76c19

View File

@ -206,6 +206,11 @@ namespace Opm
continue;
}
if (is_producer_[newIndex] != prevState->is_producer_[oldIndex]) {
// Well changed from injector from/to producer, do not use its privious values.
continue;
}
// bhp
bhp()[ newIndex ] = prevState->bhp()[ oldIndex ];