Bridge++  Version 1.5.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Solver Class Referenceabstract

Base class for linear solver class family. More...

#include <solver.h>

Inheritance diagram for Solver:
Solver_BiCGStab_Cmplx Solver_BiCGStab_DS_L_Cmplx Solver_BiCGStab_IDS_L_Cmplx Solver_BiCGStab_L_Cmplx Solver_CG Solver_GMRES_m_Cmplx Solver_CGNE Solver_CGNR

Public Member Functions

 Solver ()
 
virtual ~Solver ()
 
virtual void set_parameters (const Parameters &params)=0
 
virtual void set_parameters (const int Niter, const int Nrestart, const double Stop_cond)=0
 
virtual void set_parameters (const int Niter, const int Nrestart, const double Stop_cond, const bool use_init_guess)=0
 
void set_parameter_verboselevel (const Bridge::VerboseLevel vl)
 
virtual void solve (Field &solution, const Field &source, int &Nconv, double &diff)=0
 
virtual Foprget_fopr ()=0
 
virtual double flop_count ()=0
 

Protected Attributes

Bridge::VerboseLevel m_vl
 

Private Member Functions

 Solver (const Solver &)
 
Solveroperator= (const Solver &)
 

Detailed Description

Base class for linear solver class family.

[28 Dec 2011 H.Matsufuru] Introduce unique_ptr to avoid memory leaks. [21 Mar 2015 Y.Namekawa] Add restart. [22 Feb 2016 Y.Namekawa] Add flop_count. [ 8 Aug 2016 Y.Namekawa] Add use_init_guess. [ 7 Jul 2017 Y.Namekawa]

Definition at line 36 of file solver.h.

Constructor & Destructor Documentation

Solver::Solver ( )
inline

Definition at line 39 of file solver.h.

virtual Solver::~Solver ( )
inlinevirtual

Definition at line 42 of file solver.h.

Solver::Solver ( const Solver )
private

Member Function Documentation

Solver& Solver::operator= ( const Solver )
private
void Solver::set_parameter_verboselevel ( const Bridge::VerboseLevel  vl)
inline

Definition at line 53 of file solver.h.

virtual void Solver::set_parameters ( const Parameters params)
pure virtual
virtual void Solver::set_parameters ( const int  Niter,
const int  Nrestart,
const double  Stop_cond 
)
pure virtual
virtual void Solver::set_parameters ( const int  Niter,
const int  Nrestart,
const double  Stop_cond,
const bool  use_init_guess 
)
pure virtual
virtual void Solver::solve ( Field solution,
const Field source,
int &  Nconv,
double &  diff 
)
pure virtual

Member Data Documentation

Bridge::VerboseLevel Solver::m_vl
protected

Definition at line 63 of file solver.h.


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