Corrects range variable to a reference.

This commit is contained in:
Williham Williham Totland
2020-09-25 16:20:22 +02:00
parent fbe723a874
commit 6a8f3e16c0

View File

@@ -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 );