mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-02 12:36:54 -06:00
Merge pull request #3557 from joakim-hove/single-well-fixup
Use const reference
This commit is contained in:
commit
93a3e8bc1d
@ -68,7 +68,7 @@ void SingleWellState::open() {
|
||||
}
|
||||
|
||||
|
||||
double SingleWellState::sum_connection_rates(const std::vector<double> connection_rates) const {
|
||||
double SingleWellState::sum_connection_rates(const std::vector<double>& connection_rates) const {
|
||||
return this->parallel_info.get().sumPerfValues(connection_rates.begin(), connection_rates.end());
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ public:
|
||||
double sum_polymer_rates() const;
|
||||
double sum_brine_rates() const;
|
||||
private:
|
||||
double sum_connection_rates(const std::vector<double> connection_rates) const;
|
||||
double sum_connection_rates(const std::vector<double>& connection_rates) const;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user