WellTestState::hasCompletion -> WellTestState::completion_is_closed

This commit is contained in:
Joakim Hove 2021-10-07 15:10:00 +02:00
parent e0ea090960
commit feaaebf3fc
3 changed files with 3 additions and 3 deletions

View File

@ -757,7 +757,7 @@ updateWellTestStateEconomic(const SingleWellState& ws,
const auto& connections = well_ecl_.getConnections();
for (const auto& connection : connections) {
if (connection.state() == Connection::State::OPEN
&& !well_test_state.hasCompletion(name(), connection.complnum())) {
&& !well_test_state.completion_is_closed(name(), connection.complnum())) {
allCompletionsClosed = false;
}
}

View File

@ -233,7 +233,7 @@ void WellInterfaceGeneric::closeCompletions(WellTestState& wellTestState)
int perfIdx = 0;
for (const auto& connection : connections) {
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;
}
perfIdx++;

View File

@ -306,7 +306,7 @@ namespace Opm
// also reopen completions
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);
}
}