From 8040f32db96b9fcfd98a54f5cc0c1787d02f0a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Petter=20=C3=98ren=20Hauge?= Date: Thu, 22 Mar 2018 15:58:55 +0100 Subject: [PATCH] Add eff_fac for historic volumes --- src/opm/output/eclipse/Summary.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/opm/output/eclipse/Summary.cpp b/src/opm/output/eclipse/Summary.cpp index 9adf08008..bc99a3725 100644 --- a/src/opm/output/eclipse/Summary.cpp +++ b/src/opm/output/eclipse/Summary.cpp @@ -329,8 +329,12 @@ inline quantity production_history( const fn_args& args ) { */ double sum = 0.0; - for( const Well* sched_well : args.schedule_wells ) - sum += sched_well->production_rate( phase, args.sim_step ); + for( const Well* sched_well : args.schedule_wells ){ + + double eff_fac = efac( args.eff_factors, sched_well->name() ); + sum += sched_well->production_rate( phase, args.sim_step ) * eff_fac; + } + return { sum, rate_unit< phase >() }; } @@ -339,8 +343,12 @@ template< Phase phase > inline quantity injection_history( const fn_args& args ) { double sum = 0.0; - for( const Well* sched_well : args.schedule_wells ) - sum += sched_well->injection_rate( phase, args.sim_step ); + for( const Well* sched_well : args.schedule_wells ){ + + double eff_fac = efac( args.eff_factors, sched_well->name() ); + sum += sched_well->injection_rate( phase, args.sim_step ) * eff_fac; + } + return { sum, rate_unit< phase >() }; }