mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-13 09:51:57 -06:00
WellTestState::hasCompletion -> WellTestState::completion_is_closed
This commit is contained in:
parent
e0ea090960
commit
feaaebf3fc
@ -757,7 +757,7 @@ updateWellTestStateEconomic(const SingleWellState& ws,
|
|||||||
const auto& connections = well_ecl_.getConnections();
|
const auto& connections = well_ecl_.getConnections();
|
||||||
for (const auto& connection : connections) {
|
for (const auto& connection : connections) {
|
||||||
if (connection.state() == Connection::State::OPEN
|
if (connection.state() == Connection::State::OPEN
|
||||||
&& !well_test_state.hasCompletion(name(), connection.complnum())) {
|
&& !well_test_state.completion_is_closed(name(), connection.complnum())) {
|
||||||
allCompletionsClosed = false;
|
allCompletionsClosed = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -233,7 +233,7 @@ void WellInterfaceGeneric::closeCompletions(WellTestState& wellTestState)
|
|||||||
int perfIdx = 0;
|
int perfIdx = 0;
|
||||||
for (const auto& connection : connections) {
|
for (const auto& connection : connections) {
|
||||||
if (connection.state() == Connection::State::OPEN) {
|
if (connection.state() == Connection::State::OPEN) {
|
||||||
if (wellTestState.hasCompletion(name(), connection.complnum())) {
|
if (wellTestState.completion_is_closed(name(), connection.complnum())) {
|
||||||
well_index_[perfIdx] = 0.0;
|
well_index_[perfIdx] = 0.0;
|
||||||
}
|
}
|
||||||
perfIdx++;
|
perfIdx++;
|
||||||
|
@ -306,7 +306,7 @@ namespace Opm
|
|||||||
|
|
||||||
// also reopen completions
|
// also reopen completions
|
||||||
for (auto& completion : this->well_ecl_.getCompletions()) {
|
for (auto& completion : this->well_ecl_.getCompletions()) {
|
||||||
if (!welltest_state_temp.hasCompletion(this->name(), completion.first)) {
|
if (!welltest_state_temp.completion_is_closed(this->name(), completion.first)) {
|
||||||
well_test_state.dropCompletion(this->name(), completion.first);
|
well_test_state.dropCompletion(this->name(), completion.first);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user