Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
SUNDIALS::internal::LinearSolverWrapper< VectorType > Class Template Reference

#include <deal.II/sundials/sunlinsol_wrapper.h>

Inheritance diagram for SUNDIALS::internal::LinearSolverWrapper< VectorType >:
[legend]

Public Member Functions

 LinearSolverWrapper (const LinearSolveFunction< VectorType > &lsolve, std::exception_ptr &pending_exception, SUNContext linsol_ctx)
 
 ~LinearSolverWrapper ()
 
 operator SUNLinearSolver ()
 

Private Attributes

SUNLinearSolver sun_linear_solver
 
std::unique_ptr< LinearSolverContent< VectorType > > content
 

Detailed Description

template<typename VectorType>
class SUNDIALS::internal::LinearSolverWrapper< VectorType >

Attach wrapper functions to SUNDIALS' linear solver interface. We pretend that the user-supplied linear solver is matrix-free, even though it can be matrix-based. This way SUNDIALS does not need to understand our matrix types.

Definition at line 217 of file sunlinsol_wrapper.h.

Constructor & Destructor Documentation

◆ LinearSolverWrapper()

template<typename VectorType >
SUNDIALS::internal::LinearSolverWrapper< VectorType >::LinearSolverWrapper ( const LinearSolveFunction< VectorType > &  lsolve,
std::exception_ptr &  pending_exception,
SUNContext  linsol_ctx 
)
explicit

Definition at line 288 of file sunlinsol_wrapper.cc.

◆ ~LinearSolverWrapper()

template<typename VectorType >
SUNDIALS::internal::LinearSolverWrapper< VectorType >::~LinearSolverWrapper

Definition at line 325 of file sunlinsol_wrapper.cc.

Member Function Documentation

◆ operator SUNLinearSolver()

template<typename VectorType >
SUNDIALS::internal::LinearSolverWrapper< VectorType >::operator SUNLinearSolver

Implicit conversion to SUNLinearSolver.

Definition at line 333 of file sunlinsol_wrapper.cc.

Member Data Documentation

◆ sun_linear_solver

template<typename VectorType >
SUNLinearSolver SUNDIALS::internal::LinearSolverWrapper< VectorType >::sun_linear_solver
private

Definition at line 237 of file sunlinsol_wrapper.h.

◆ content

template<typename VectorType >
std::unique_ptr<LinearSolverContent<VectorType> > SUNDIALS::internal::LinearSolverWrapper< VectorType >::content
private

Definition at line 238 of file sunlinsol_wrapper.h.


The documentation for this class was generated from the following files: