G+Smo  24.08.0
Geometry + Simulation Modules
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AbstractSolver Class Referenceabstract

Detailed Description

Abstract solver base class.

This abstract base class defines the set of attributes and methods that must be implemented by all solvers.

+ Inheritance diagram for AbstractSolver:

Public Member Functions

 AbstractSolver ()
 Constructors. More...
 
 AbstractSolver (const SparseMatrix &A)
 Constructor (sparse matrix)
 
virtual std::string currentParams () const =0
 Returns information about current parameters.
 
void getSolution (gsVector< real_t > &sol, const int rank=0) const
 Returns solution vector.
 
virtual void set (const std::string &name, const int &value)=0
 Sets parameters.
 
void setOptions (const gsOptionList &opt)
 Set parameters from option list. More...
 
const Vector & solve (const Vector &b)
 Solves problem for the given a right-hand side vector.
 
virtual std::string status () const =0
 Returns status of the solver.
 
virtual std::string timing () const =0
 Returns timing of the solver.
 
virtual std::string validParams () const =0
 Returns information about valid parameters.
 
 ~AbstractSolver ()
 Destructor.
 

Protected Member Functions

virtual void solveProblem ()=0
 Solves problem. More...
 

Constructor & Destructor Documentation

Constructors.

Constructor (default)

Member Function Documentation

void setOptions ( const gsOptionList opt)

Set parameters from option list.

Sets parameters from option list.

virtual void solveProblem ( )
protectedpure virtual

Solves problem.

Get parameters into option list void getOptions(const gsOptionList & opt);

Implemented in MLSolver, BelosSolver, AztecSolver, and AmesosSolver.