diff --git a/opm/autodiff/VFPInjProperties.cpp b/opm/autodiff/VFPInjProperties.cpp index 698b9983d..814ba00e2 100644 --- a/opm/autodiff/VFPInjProperties.cpp +++ b/opm/autodiff/VFPInjProperties.cpp @@ -75,12 +75,11 @@ VFPInjProperties::ADB VFPInjProperties::bhp(const std::vector& table_id, const Wells& wells, const ADB& qs, const ADB& thp) const { - const int np = wells.number_of_phases; const int nw = wells.number_of_wells; //Short-hands for water / oil / gas phases //TODO enable support for two-phase. - assert(np == 3); + assert(wells.number_of_phases == 3); const ADB& w = subset(qs, Span(nw, 1, BlackoilPhases::Aqua*nw)); const ADB& o = subset(qs, Span(nw, 1, BlackoilPhases::Liquid*nw)); const ADB& g = subset(qs, Span(nw, 1, BlackoilPhases::Vapour*nw)); diff --git a/opm/autodiff/VFPProdProperties.cpp b/opm/autodiff/VFPProdProperties.cpp index 6c39eef77..84d4b2601 100644 --- a/opm/autodiff/VFPProdProperties.cpp +++ b/opm/autodiff/VFPProdProperties.cpp @@ -61,12 +61,11 @@ VFPProdProperties::ADB VFPProdProperties::bhp(const std::vector& table_id, const ADB& qs, const ADB& thp, const ADB& alq) const { - const int np = wells.number_of_phases; const int nw = wells.number_of_wells; //Short-hands for water / oil / gas phases //TODO enable support for two-phase. - assert(np == 3); + assert(wells.number_of_phases == 3); const ADB& w = subset(qs, Span(nw, 1, BlackoilPhases::Aqua*nw)); const ADB& o = subset(qs, Span(nw, 1, BlackoilPhases::Liquid*nw)); const ADB& g = subset(qs, Span(nw, 1, BlackoilPhases::Vapour*nw));