From 748440eea6460e2b7e19c0fe7c43862c05d32d7a Mon Sep 17 00:00:00 2001 From: babrodtk Date: Wed, 12 Aug 2015 15:15:33 +0200 Subject: [PATCH] Fixed bug with VFPPROD tables --- opm/autodiff/BlackoilModelBase_impl.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/opm/autodiff/BlackoilModelBase_impl.hpp b/opm/autodiff/BlackoilModelBase_impl.hpp index efb33beeb..d6bab10fb 100644 --- a/opm/autodiff/BlackoilModelBase_impl.hpp +++ b/opm/autodiff/BlackoilModelBase_impl.hpp @@ -1468,10 +1468,11 @@ namespace detail { } //Calculate BHP target from THP - const ADB thp = ADB::constant(thp_inj_v); + const ADB thp_inj = ADB::constant(thp_inj_v); + const ADB thp_prod = ADB::constant(thp_prod_v); const ADB alq = ADB::constant(alq_v); - const ADB thp_inj_targets = vfp_properties_->getInj()->bhp(inj_table_id, aqua, liquid, vapour, thp); - const ADB thp_prod_targets = vfp_properties_->getProd()->bhp(prod_table_id, aqua, liquid, vapour, thp, alq); + const ADB thp_inj_targets = vfp_properties_->getInj()->bhp(inj_table_id, aqua, liquid, vapour, thp_inj); + const ADB thp_prod_targets = vfp_properties_->getProd()->bhp(prod_table_id, aqua, liquid, vapour, thp_prod, alq); //Calculate residuals const ADB thp_inj_residual = state.bhp - thp_inj_targets;