mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix issue when switching from injection to/from production
This commit is contained in:
parent
f861188d60
commit
a098d76c19
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user