Add const

This commit is contained in:
Joakim Hove
2021-10-08 20:58:49 +02:00
parent 0ca1f7a8b2
commit 4da52424c7
2 changed files with 3 additions and 3 deletions

View File

@@ -227,14 +227,14 @@ void WellInterfaceGeneric::initCompletions()
assert(my_next_perf == perf_data_->end()); assert(my_next_perf == perf_data_->end());
} }
void WellInterfaceGeneric::closeCompletions(WellTestState& wellTestState) void WellInterfaceGeneric::closeCompletions(const WellTestState& wellTestState)
{ {
const auto& connections = well_ecl_.getConnections(); const auto& connections = well_ecl_.getConnections();
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.completion_is_closed(name(), connection.complnum())) { if (wellTestState.completion_is_closed(name(), connection.complnum())) {
well_index_[perfIdx] = 0.0; this->well_index_[perfIdx] = 0.0;
} }
perfIdx++; perfIdx++;
} }

View File

@@ -85,7 +85,7 @@ public:
bool isOperableAndSolvable() const; bool isOperableAndSolvable() const;
void initCompletions(); void initCompletions();
void closeCompletions(WellTestState& wellTestState); void closeCompletions(const WellTestState& wellTestState);
void setVFPProperties(const VFPProperties* vfp_properties_arg); void setVFPProperties(const VFPProperties* vfp_properties_arg);
void setGuideRate(const GuideRate* guide_rate_arg); void setGuideRate(const GuideRate* guide_rate_arg);