14#ifndef dealii_sundials_sunlinsol_wrapper_h
15#define dealii_sundials_sunlinsol_wrapper_h
19#ifdef DEAL_II_WITH_SUNDIALS
21# include <sundials/sundials_linearsolver.h>
31#ifdef DEAL_II_WITH_SUNDIALS
38 template <
typename VectorType>
39 struct LinearSolverContent;
46 template <
typename VectorType>
53 vmult(VectorType &dst,
const VectorType &src)
const;
55# if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
82# if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
109 template <
typename VectorType>
120 vmult(VectorType &dst,
const VectorType &src)
const;
122# if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
162# if DEAL_II_SUNDIALS_VERSION_GTE(6, 0, 0)
214 template <
typename VectorType>
230 template <
typename VectorType>
236 std::exception_ptr &pending_exception
252 std::unique_ptr<LinearSolverContent<VectorType>>
content;
std::unique_ptr< LinearSolverContent< VectorType > > content
SUNLinearSolver sun_linear_solver
LinearSolverWrapper(const LinearSolveFunction< VectorType > &lsolve, std::exception_ptr &pending_exception, SUNContext linsol_ctx)
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_SUNDIALS_VERSION_GTE(major, minor, patch)
#define DEAL_II_NAMESPACE_CLOSE
std::function< void(SundialsOperator< VectorType > &op, SundialsPreconditioner< VectorType > &prec, VectorType &x, const VectorType &b, double tol)> LinearSolveFunction
SundialsOperator(void *A_data, SUNATimesFn a_times_fn, SUNContext linsol_ctx)
void vmult(VectorType &dst, const VectorType &src) const
SundialsPreconditioner(void *P_data, SUNPSolveFn p_solve_fn, SUNContext linsol_ctx, double tol)
void vmult(VectorType &dst, const VectorType &src) const