WellTestState::hasCompletion -> WellTestState::completion_is_closed

This commit is contained in:
Joakim Hove committed 2021-10-08 09:06:21 +02:00
1 parent e0ea090960
commit feaaebf3fc
3 files changed
+3 -3

No files matched your search

@@ -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;
}
}
@@ -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++;
+1 -1
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);
}
}