21 #ifndef AMESOS2_SOLVER_H
22 #define AMESOS2_SOLVER_H
26 #include <Amesos2.hpp>
32 template <
class Level>
34 Teuchos::RCP<amr::multivector_t>,
41 typedef Amesos2::Solver<matrix_t, mv_t>
solver_t;
51 void solve(
const Teuchos::RCP<mv_t>& x,
52 const Teuchos::RCP<mv_t>& b);
55 Level* level_p =
nullptr);
Tpetra::MultiVector< scalar_t, local_ordinal_t, global_ordinal_t, node_t > multivector_t
Tpetra::CrsMatrix< scalar_t, local_ordinal_t, global_ordinal_t, node_t > matrix_t
Amesos2::Solver< matrix_t, mv_t > solver_t
void setOperator(const Teuchos::RCP< matrix_t > &A, Level *level_p=nullptr)
void solve(const Teuchos::RCP< mv_t > &x, const Teuchos::RCP< mv_t > &b)
std::string solvertype_m
kind of solver
std::size_t getNumIters()
Amesos2BottomSolver(std::string solvertype="klu2")
Teuchos::RCP< solver_t > solver_mp
solver instance