Allow well operators with FlexibleSolver.

This commit is contained in:
Atgeirr Flø Rasmussen
2020-06-30 12:33:57 +02:00
parent 6d644da88e
commit c94eec872f
6 changed files with 225 additions and 146 deletions
+3 -1
View File
@@ -75,7 +75,9 @@ testSolver(const boost::property_tree::ptree& prm, const std::string& matrix_fil
prm.get<int>("preconditioner.pressure_var_index"),
transpose);
};
Dune::FlexibleSolver<Matrix, Vector> solver(matrix, prm, wc);
using SeqOperatorType = Dune::MatrixAdapter<Matrix, Vector, Vector>;
SeqOperatorType op(matrix);
Dune::FlexibleSolver<Matrix, Vector> solver(op, prm, wc);
Vector x(rhs.size());
Dune::InverseOperatorResult res;
solver.apply(x, rhs, res);