Skip to content

Commit

Permalink
Merge pull request #4311 from bska/dont-needlessly-copy-name-vectors
Browse files Browse the repository at this point in the history
Don't Needlessly Copy Well/Group Names
  • Loading branch information
bska authored Nov 5, 2024
2 parents 9dcad9a + 63d7733 commit c0f2302
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions opm/input/eclipse/Schedule/UDQ/UDQContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ namespace Opm {
return it->second;
}

std::vector<std::string> UDQContext::wells() const
const std::vector<std::string>& UDQContext::wells() const
{
return this->well_matcher.wells();
}
Expand All @@ -217,7 +217,7 @@ namespace Opm {
return this->well_matcher.wells(pattern);
}

std::vector<std::string> UDQContext::groups() const
const std::vector<std::string>& UDQContext::groups() const
{
return this->summary_state.groups();
}
Expand Down
4 changes: 2 additions & 2 deletions opm/input/eclipse/Schedule/UDQ/UDQContext.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ namespace Opm {

const UDQFunctionTable& function_table() const;

std::vector<std::string> wells() const;
const std::vector<std::string>& wells() const;
std::vector<std::string> wells(const std::string& pattern) const;
std::vector<std::string> groups() const;
const std::vector<std::string>& groups() const;
SegmentSet segments() const;
SegmentSet segments(const std::vector<std::string>& set_descriptor) const;

Expand Down

0 comments on commit c0f2302

Please sign in to comment.