GroupEconomicLimitsChecker::closeWellsRecursive: pass group as const ref

This commit is contained in:
Arne Morten Kvarving 2023-12-12 15:53:37 +01:00
parent 825b4b6677
commit d9cd6b51c3
2 changed files with 2 additions and 2 deletions

View File

@ -334,7 +334,7 @@ addPrintMessage(const std::string &msg, const double value, const double limit,
bool
GroupEconomicLimitsChecker::
closeWellsRecursive(Group group, int level)
closeWellsRecursive(const Group& group, int level)
{
bool wells_closed = false;

View File

@ -64,7 +64,7 @@ class WellTestState;
private:
void displayDebugMessage(const std::string &msg) const;
void addPrintMessage(const std::string &msg, const double value, const double limit, const UnitSystem::measure measure);
bool closeWellsRecursive(Group group, int level=0);
bool closeWellsRecursive(const Group& group, int level = 0);
void throwNotImplementedError(const std::string &error) const;
const BlackoilWellModelGeneric &well_model_;
const Group &group_;