mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Changed open / close behaviour of well_controls: 1) well_controls has an explicit open_close flag. 2) Will NOT flip current value to change open|close status
This commit is contained in:
parent
25750c693e
commit
890cc8a188
@ -310,7 +310,7 @@ namespace Opm
|
||||
const int nw = wells->number_of_wells;
|
||||
for (int w = 0; w < nw; ++w) {
|
||||
const WellControls* wc = wells->ctrls[w];
|
||||
if (well_controls_get_current(wc) >= 0) {
|
||||
if (well_controls_well_is_open( wc )) {
|
||||
if (well_controls_get_current_type(wc) == BHP) {
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user