G+Smo  25.01.0
Geometry + Simulation Modules
 
Loading...
Searching...
No Matches
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 bool &value)
 Sets bool parameters.
 
void set (const std::string &name, const double &value)
 Sets double parameters.
 
void set (const std::string &name, const int &value)
 Sets parameters.
 
void set (const std::string &name, const std::string &value)
 Sets string parameters.
 
void setOptions (const gsOptionList &opt)
 Set parameters from option list.
 
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.
 
std::string timing () const
 Returns timing of the solver.
 
std::string validParams () const
 Returns information about parameters.
 
 ~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

◆ set()

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

Sets parameters.

Sets integer parameters.

Implements AbstractSolver.

◆ setOptions()

void setOptions ( const gsOptionList opt)
inherited

Set parameters from option list.

Sets parameters from option list.

◆ status()

std::string status ( ) const
virtual

Returns status and timing of solver.

Returns status of the solver.

Implements AbstractSolver.

◆ validParams()

std::string validParams ( ) const
virtual

Returns information about parameters.

Returns valid parameters.

Implements AbstractSolver.