diff --git a/opm/input/eclipse/Schedule/UDQ/UDQContext.cpp b/opm/input/eclipse/Schedule/UDQ/UDQContext.cpp index 7ec0f1b4f28..6d176940efd 100644 --- a/opm/input/eclipse/Schedule/UDQ/UDQContext.cpp +++ b/opm/input/eclipse/Schedule/UDQ/UDQContext.cpp @@ -207,7 +207,7 @@ namespace Opm { return it->second; } - std::vector UDQContext::wells() const + const std::vector& UDQContext::wells() const { return this->well_matcher.wells(); } @@ -217,7 +217,7 @@ namespace Opm { return this->well_matcher.wells(pattern); } - std::vector UDQContext::groups() const + const std::vector& UDQContext::groups() const { return this->summary_state.groups(); } diff --git a/opm/input/eclipse/Schedule/UDQ/UDQContext.hpp b/opm/input/eclipse/Schedule/UDQ/UDQContext.hpp index 93c95a130d4..71581afeae0 100644 --- a/opm/input/eclipse/Schedule/UDQ/UDQContext.hpp +++ b/opm/input/eclipse/Schedule/UDQ/UDQContext.hpp @@ -89,9 +89,9 @@ namespace Opm { const UDQFunctionTable& function_table() const; - std::vector wells() const; + const std::vector& wells() const; std::vector wells(const std::string& pattern) const; - std::vector groups() const; + const std::vector& groups() const; SegmentSet segments() const; SegmentSet segments(const std::vector& set_descriptor) const;