diff --git a/opm/simulators/linalg/bda/amgclSolverBackend.cpp b/opm/simulators/linalg/bda/amgclSolverBackend.cpp index bb34de881..19204bcd6 100644 --- a/opm/simulators/linalg/bda/amgclSolverBackend.cpp +++ b/opm/simulators/linalg/bda/amgclSolverBackend.cpp @@ -245,16 +245,13 @@ void amgclSolverBackend::solve_system(double *b, WellContributions & vex::scoped_program_header h1(ctx, amgcl::backend::vexcl_static_matrix_declaration()); typedef amgcl::backend::vexcl Backend; - - typedef amgcl::make_block_solver< - amgcl::relaxation::as_preconditioner, - amgcl::solver::bicgstab - > Solver; + typedef amgcl::make_solver, amgcl::runtime::solver::wrapper > Solver; typename Backend::params bprm; bprm.q = ctx; // set vexcl context - auto A = std::tie(N, A_rows, A_cols, A_vals); + auto Atmp = std::tie(N, A_rows, A_cols, A_vals); + auto A = amgcl::adapter::block_matrix(Atmp); Solver solve(A, prm, bprm);