diff --git a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp index 2a68f2328..4dd01c49a 100644 --- a/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp +++ b/opm/autodiff/FullyImplicitBlackoilSolver_impl.hpp @@ -233,18 +233,6 @@ namespace { std::vector> residual_history; - - // do a zero update once to switch to the right primary - // variables. this is a bit hacky, but it is by far the - // easiest thing to do... - int numCells = Opm::AutoDiffGrid::numCells(grid_); - int numPhases = x.numPhases(); - int numWells = xw.basicWellState().bhp().size(); - int numDofs = numPhases * (numCells + numWells) + numWells; - V zero = V::Zero(numDofs); - updateState(zero, x, xw); - - assemble(pvdt, x, xw);