16#ifndef dealii_sundials_sunlinsol_wrapper_h
17#define dealii_sundials_sunlinsol_wrapper_h
21#ifdef DEAL_II_WITH_SUNDIALS
22# if DEAL_II_SUNDIALS_VERSION_GTE(4, 0, 0)
24# include <sundials/sundials_linearsolver.h>
37 template <
typename VectorType>
38 struct LinearSolverContent;
45 template <
typename VectorType>
52 vmult(VectorType &dst,
const VectorType &src)
const;
82 template <
typename VectorType>
93 vmult(VectorType &dst,
const VectorType &src)
const;
149 template <
typename VectorType>
154 const VectorType &
b,
165 template <
typename VectorType>
180 std::unique_ptr<LinearSolverContent<VectorType>>
content;
LinearSolverWrapper(LinearSolveFunction< VectorType > lsolve)
std::unique_ptr< LinearSolverContent< VectorType > > content
SUNLinearSolver sun_linear_solver
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
SymmetricTensor< 2, dim, Number > b(const Tensor< 2, dim, Number > &F)
std::function< int(SundialsOperator< VectorType > &op, SundialsPreconditioner< VectorType > &prec, VectorType &x, const VectorType &b, double tol)> LinearSolveFunction
SundialsOperator(void *A_data, ATimesFn a_times_fn)
void vmult(VectorType &dst, const VectorType &src) const
SundialsPreconditioner(void *P_data, PSolveFn p_solve_fn, double tol)
void vmult(VectorType &dst, const VectorType &src) const