mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-01 03:56:55 -06:00
Skip previously shut wells in WellState init
This commit is contained in:
parent
2673af7db5
commit
8c17172f08
@ -188,8 +188,12 @@ namespace Opm
|
||||
auto it = prevState->wellMap().find(well.name());
|
||||
if ( it != end )
|
||||
{
|
||||
const int oldIndex = (*it).second[ 0 ];
|
||||
const int newIndex = w;
|
||||
const int oldIndex = it->second[ 0 ];
|
||||
if (prevState->status_[oldIndex] == Well::Status::SHUT) {
|
||||
// Well was shut in previous state, do not use its values.
|
||||
continue;
|
||||
}
|
||||
|
||||
// bhp
|
||||
bhp()[ newIndex ] = prevState->bhp()[ oldIndex ];
|
||||
|
Loading…
Reference in New Issue
Block a user