Merge pull request #1964 from wito/iterator-reference-fix

Range Variable Correction
This commit is contained in:
Bård Skaflestad
2020-09-25 18:22:44 +02:00
committed by GitHub

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