mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add const
This commit is contained in:
@@ -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++;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user