AMDiS 2.10
The Adaptive Multi-Dimensional Simulation Toolbox
PCGSolverCreator< Solver, Traits > Struct Template Reference

Solver creator for iterative CG-like solvers. More...

#include <ISTLSolverCreator.hpp>

Inherits ISTLIterativeSolverCreatorBase< Traits >.

Public Types

using Super = ISTLIterativeSolverCreatorBase< Traits >
 
using Interface = typename Traits::Solver
 

Public Member Functions

void init (std::string const &prefix) override
 Prepare the solver for the creation. More...
 
std::unique_ptr< Interface > createSolver (typename Traits::M const &mat, typename Traits::Comm const &comm) const override
 
void init (std::string const &prefix) override
 Prepare the solver for the creation. More...
 
virtual void init (std::string const &prefix)
 Prepare the solver for the creation. More...
 
virtual std::unique_ptr< Dune::InverseOperator< X, Y > > createSolver (typename Traits::M const &A, typename Traits::Comm const &comm) const =0
 
virtual std::unique_ptr< tag::solver< Traits > > create ()=0
 Must be implemented by sub classes of CreatorInterface. Creates a new instance of the sub class of BaseClass.
 

Additional Inherited Members

- Protected Member Functions inherited from ISTLIterativeSolverCreatorBase< Traits >
template<class Solver , class... Args>
auto create_impl (typename Traits::M const &mat, typename Traits::Comm const &comm, Args &&... args) const
 
- Protected Attributes inherited from ISTLIterativeSolverCreatorBase< Traits >
int maxIter_ = 500
 
real_type rTol_ = 1.e-6
 
ISTLPreconCreatorBase< Traits > * preconCreator_ = nullptr
 
- Protected Attributes inherited from ISTLSolverCreatorBase< Traits >
int info_ = 0
 

Detailed Description

template<class Solver, class Traits>
struct AMDiS::PCGSolverCreator< Solver, Traits >

Solver creator for iterative CG-like solvers.

Constructs a linear solver, using the constructor signature Solver(LinOp, ScalarProd, Precon, rTol, maxIter, info, restart)

Initfile parameters:

  • [SOLVER]->restart: Restart parameter for restarted CG solvers [30]

Member Function Documentation

◆ createSolver()

std::unique_ptr< Interface > createSolver ( typename Traits::M const &  mat,
typename Traits::Comm const &  comm 
) const
inlineoverridevirtual

◆ init()

void init ( std::string const &  prefix)
inlineoverridevirtual

Prepare the solver for the creation.

Reimplemented from ISTLIterativeSolverCreatorBase< Traits >.

References Initfile::get(), and ISTLIterativeSolverCreatorBase< Traits >::init().


The documentation for this struct was generated from the following file: