GEOSX
Public Member Functions | List of all members
geosx::TrilinosSolver Class Reference

This class creates and provides basic support for AztecOO, Amesos and ML libraries. More...

#include <TrilinosSolver.hpp>

Public Member Functions

 TrilinosSolver (LinearSolverParameters parameters)
 Solver constructor, with parameter list reference. More...
 
 ~TrilinosSolver ()
 Virtual destructor.
 
void solve (EpetraMatrix &mat, EpetraVector &sol, EpetraVector &rhs, DofManager const *const dofManager=nullptr)
 Solve system with an iterative solver. More...
 
LinearSolverResult const & result ()
 Get the result of previous solve. More...
 

Detailed Description

This class creates and provides basic support for AztecOO, Amesos and ML libraries.

Definition at line 35 of file TrilinosSolver.hpp.

Constructor & Destructor Documentation

◆ TrilinosSolver()

geosx::TrilinosSolver::TrilinosSolver ( LinearSolverParameters  parameters)

Solver constructor, with parameter list reference.

Parameters
[in]parametersstructure containing linear solver parameters

Member Function Documentation

◆ result()

LinearSolverResult const& geosx::TrilinosSolver::result ( )
inline

Get the result of previous solve.

Returns
struct with last solve stats

Definition at line 70 of file TrilinosSolver.hpp.

◆ solve()

void geosx::TrilinosSolver::solve ( EpetraMatrix mat,
EpetraVector sol,
EpetraVector rhs,
DofManager const *const  dofManager = nullptr 
)

Solve system with an iterative solver.

Parameters
[in,out]matthe matrix
[in,out]solthe solution
[in,out]rhsthe right-hand side
dofManagerthe Degree-of-Freedom manager associated with matrix

Solve Ax=b with A an EpetraMatrix, x and b EpetraVector.


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