Merge pull request #6433 from akva2/janitoring_lto

initialize variables
This commit is contained in:
Bård Skaflestad authored and GitHub committed 2025-08-29 14:09:48 +02:00
commit d843cd54d9
1 file changed
+1 -1
@@ -903,7 +903,7 @@ getRateWithGroupLimit_(Rate rate_type,
// if delta_rate > 0
const auto& pairs = this->group_info_.getWellGroups(this->well_name_);
Scalar limited_rate = new_rate;
Scalar gr_target, new_gr_rate, efficiency;
Scalar gr_target{}, new_gr_rate{}, efficiency{};
const std::string* group_name = nullptr;
for (const auto& [group_name_temp, efficiency_temp] : pairs) {
// in stage 2 we don't want to limit the rate to the group