changed return type to reference-to-const

This commit is contained in:
Paul
2023-05-30 10:49:52 +02:00
parent 7a8fb7b832
commit 4d5b4aba2b
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ namespace Opm {
int getHeadI() const;
int getHeadJ() const;
std::vector<double> getMD() const;
const std::vector<double>& getMD() const;
void add(Connection);
std::size_t size() const;
bool empty() const;

View File

@@ -937,7 +937,7 @@ namespace Opm {
return this->headJ;
}
std::vector<double> WellConnections::getMD() const {
const std::vector<double>& WellConnections::getMD() const {
return this->md;
}