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

Detailed Description

Amesos solver class.

This class warps the Trilinos Amesos package

+ Inheritance diagram for AmesosSolver:
+ Collaboration diagram for AmesosSolver:

Public Member Functions

 AmesosSolver (const SparseMatrix &A, const int solver=AmesosSolvers::KLU)
 Constructor (sparse matrix)
 
std::string currentParams () const
 Returns current parameters.
 
void getSolution (gsVector< real_t > &sol, const int rank=0) const
 Returns solution vector.
 
void set (const std::string &name, const int &value)
 Sets parameters. More...
 
void set (const std::string &name, const bool &value)
 Sets bool parameters.
 
void set (const std::string &name, const double &value)
 Sets double parameters.
 
void set (const std::string &name, const std::string &value)
 Sets string 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.
 
std::string status () const
 Returns status and timing of solver. More...
 
std::string timing () const
 Returns timing of the solver.
 
std::string validParams () const
 Returns information about parameters. More...
 
 ~AmesosSolver ()
 Destructor.
 

Private Member Functions

void solveProblem ()
 Solves problem.
 
void solveProblem (const bool noSymbolicFactorization, const bool noNumericFactorization)
 Solves problem (overwrite default behaviour of factorization)
 

Member Function Documentation

void set ( const std::string &  name,
const int &  value 
)
virtual

Sets parameters.

Sets integer parameters.

Implements AbstractSolver.

void setOptions ( const gsOptionList opt)
inherited

Set parameters from option list.

Sets parameters from option list.

std::string status ( ) const
virtual

Returns status and timing of solver.

Returns status of the solver.

Implements AbstractSolver.

std::string validParams ( ) const
virtual

Returns information about parameters.

Returns valid parameters.

Implements AbstractSolver.