From 1a2c33748fb795a93b1c9d53d27434b0079cd4e3 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Thu, 13 Nov 2025 15:01:39 +0100 Subject: [PATCH] m_efficiency_scaling_factors default to be 1 in GlobalWellInfo as a efficiency factor, it is more reasonable to default it be 1. otherwise, it can be 0 when WCYCLE is not around. --- opm/simulators/wells/GlobalWellInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/simulators/wells/GlobalWellInfo.cpp b/opm/simulators/wells/GlobalWellInfo.cpp index 0509c7fa433..1366562973d 100644 --- a/opm/simulators/wells/GlobalWellInfo.cpp +++ b/opm/simulators/wells/GlobalWellInfo.cpp @@ -39,7 +39,7 @@ GlobalWellInfo(const Schedule& sched, this->m_in_injecting_group.resize(num_wells); this->m_in_producing_group.resize(num_wells); this->m_is_open.resize(num_wells); - this->m_efficiency_scaling_factors.resize(num_wells); + this->m_efficiency_scaling_factors.resize(num_wells, static_cast(1.0)); for (const auto& wname : sched.wellNames(report_step)) { const auto& well = sched.getWell(wname, report_step); auto global_well_index = well.seqIndex();