Wraps a CUDA solver to work with CPU data.
More...
#include <SolverAdapter.hpp>
|
using | XGPU = Opm::cuistl::CuVector< real_type > |
|
|
| SolverAdapter (Operator &op, Dune::ScalarProduct< X > &sp, std::shared_ptr< Dune::Preconditioner< X, X > > prec, scalar_real_type reduction, int maxit, int verbose) |
|
virtual void | apply (X &x, X &b, double reduction, Dune::InverseOperatorResult &res) override |
|
virtual void | apply (X &x, X &b, Dune::InverseOperatorResult &res) override |
|
|
static constexpr auto | block_size = domain_type::block_type::dimension |
|
template<class Operator, template< class > class UnderlyingSolver, class X>
class Opm::cuistl::SolverAdapter< Operator, UnderlyingSolver, X >
Wraps a CUDA solver to work with CPU data.
- Template Parameters
-
Operator | the Dune::LinearOperator to use |
UnderlyingSolver | a Dune solver like class, eg Dune::BiCGSTABSolver |
X | the outer type to use (eg. Dune::BlockVector<Dune::FieldVector<...>>) |
The documentation for this class was generated from the following file: