diff --git a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp index 89b8bf2ac..83193fdfe 100644 --- a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp +++ b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp @@ -644,7 +644,6 @@ namespace detail { // taking std::vector arguments, and not Eigen objects. const int nperf = wells().well_connpos[wells().number_of_wells]; const int nw = wells().number_of_wells; - const int np = wells().number_of_phases; const std::vector well_cells(wells().well_cells, wells().well_cells + nperf); // Compute the average pressure in each well block