From 6a8f3e16c0616306929c83386461e43a33b19d16 Mon Sep 17 00:00:00 2001 From: Williham Williham Totland Date: Fri, 25 Sep 2020 16:20:22 +0200 Subject: [PATCH] Corrects range variable to a reference. --- src/opm/output/eclipse/Summary.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opm/output/eclipse/Summary.cpp b/src/opm/output/eclipse/Summary.cpp index cc2f13caf..18dee0bee 100644 --- a/src/opm/output/eclipse/Summary.cpp +++ b/src/opm/output/eclipse/Summary.cpp @@ -704,7 +704,7 @@ inline quantity injection_history( const fn_args& args ) { inline quantity abondoned_wells( const fn_args& args ) { std::size_t count = 0; - for (const auto sched_well : args.schedule_wells) { + for (const auto& sched_well : args.schedule_wells) { if (sched_well.hasProduced()) { const auto& well_name = sched_well.name(); auto well_iter = args.wells.find( well_name );