#include <trilinos_solver.h>
An implementation of the Trilinos KLU direct solver (using the Amesos package).
- Author
- Martin Kronbichler, 2009
Definition at line 584 of file trilinos_solver.h.
Constructor. Takes the solver control object and creates the solver.
virtual TrilinosWrappers::SolverDirect::~SolverDirect |
( |
| ) |
|
|
virtual |
Solve the linear system Ax=b
. Creates a KLU factorization of the matrix and performs the solve. Note that there is no need for a preconditioner here.
Solve the linear system Ax=b
. Depending on the information provided by derived classes and the object passed as a preconditioner, one of the linear solvers and preconditioners of Trilinos is chosen. This class works with matrices according to the TrilinosWrappers format, but can take deal.II vectors as argument. Since deal.II are serial vectors (not distributed), this function does only what you expect in case the matrix is locally owned. Otherwise, an exception will be thrown.
Access to object that controls convergence.
TrilinosWrappers::SolverDirect::DeclException1 |
( |
ExcTrilinosError |
, |
|
|
int |
, |
|
|
<< "An error with error number "<< arg1<< " occurred while calling a Trilinos function" |
|
|
) |
| |
Reference to the object that controls convergence of the iterative solver. In fact, for these Trilinos wrappers, Trilinos does so itself, but we copy the data from this object before starting the solution process, and copy the data back into it afterwards.
Definition at line 687 of file trilinos_solver.h.
std_cxx1x::shared_ptr<Epetra_LinearProblem> TrilinosWrappers::SolverDirect::linear_problem |
|
private |
A structure that collects the Trilinos sparse matrix, the right hand side vector and the solution vector, which is passed down to the Trilinos solver.
Definition at line 697 of file trilinos_solver.h.
std_cxx1x::shared_ptr<Amesos_BaseSolver> TrilinosWrappers::SolverDirect::solver |
|
private |
A structure that contains the Trilinos solver and preconditioner objects.
Definition at line 704 of file trilinos_solver.h.
Store a copy of the flags for this particular solver.
Definition at line 710 of file trilinos_solver.h.
The documentation for this class was generated from the following file: