![]() |
deal.II version GIT relicensing-2799-g04c52848fb 2025-03-11 09:50:01+00:00
|
#include <deal.II/lac/trilinos_solver.h>
Public Types | |
enum | SolverName { cg , cgs , gmres , bicgstab , tfqmr } |
Static Public Member Functions | |
static ::ExceptionBase & | ExcTrilinosError (int arg1) |
Public Attributes | |
enum TrilinosWrappers::SolverBase::SolverName | solver_name |
Protected Attributes | |
SolverControl & | solver_control |
Private Member Functions | |
template<typename Preconditioner > | |
void | do_solve (const Preconditioner &preconditioner) |
template<typename Preconditioner > | |
void | set_preconditioner (AztecOO &solver, const Preconditioner &preconditioner) |
Private Attributes | |
std::unique_ptr< Epetra_LinearProblem > | linear_problem |
std::unique_ptr< AztecOO_StatusTest > | status_test |
AztecOO | solver |
const AdditionalData | additional_data |
An implementation of the solver interface using the Trilinos CGS solver.
Definition at line 394 of file trilinos_solver.h.
|
inherited |
Enumeration object that is set in the constructor of the derived classes and tells Trilinos which solver to use. This option can also be set in the user program, so one might use this base class instead of one of the specialized derived classes when the solver should be set at runtime. Currently enabled options are:
Definition at line 89 of file trilinos_solver.h.
TrilinosWrappers::SolverCGS::SolverCGS | ( | SolverControl & | cn, |
const AdditionalData & | data = AdditionalData() |
||
) |
Constructor. In contrast to deal.II's own solvers, there is no need to give a vector memory object.
The last argument takes a structure with additional, solver dependent flags for tuning.
Definition at line 616 of file trilinos_solver.cc.
|
inherited |
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.
Definition at line 75 of file trilinos_solver.cc.
|
inherited |
Solve the linear system Ax=b
where A
is an operator. This function can be used for matrix free computation. 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.
Definition at line 95 of file trilinos_solver.cc.
|
inherited |
Solve the linear system Ax=b
where both A
and its preconditioner
are an operator. This function can be used when both A
and the preconditioner
are LinearOperators derived from a TrilinosPayload. 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.
Definition at line 116 of file trilinos_solver.cc.
|
inherited |
Solve the linear system Ax=b
where A
is an operator, and the vectors x
and b
are native Trilinos vector types. This function can be used when A
is a LinearOperators derived from a TrilinosPayload. 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.
Definition at line 137 of file trilinos_solver.cc.
|
inherited |
Solve the linear system Ax=b
where both A
and its preconditioner
are an operator, and the vectors x
and b
are native Trilinos vector types. This function can be used when both A
and the preconditioner
are LinearOperators derived from a TrilinosPayload. 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.
Definition at line 158 of file trilinos_solver.cc.
|
inherited |
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.
Definition at line 177 of file trilinos_solver.cc.
|
inherited |
Solve the linear system Ax=b
where A
is an operator. This function can be used for matrix free computations. 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.
Definition at line 207 of file trilinos_solver.cc.
|
inherited |
Solve the linear system Ax=b
for deal.II's parallel distributed vectors. 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.
|
inherited |
Solve the linear system Ax=b
where A
is an operator. This function can be used for matrix free computation. 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.
|
inherited |
Access to object that controls convergence.
Definition at line 67 of file trilinos_solver.cc.
|
privateinherited |
The solve function is used to set properly the Epetra_LinearProblem, once it is done this function solves the linear problem.
Definition at line 416 of file trilinos_solver.cc.
|
privateinherited |
A function that sets the preconditioner that the solver will apply
|
inherited |
|
inherited |
|
inherited |
Definition at line 566 of file trilinos_solver.cc.
|
inherited |
Definition at line 584 of file trilinos_solver.cc.
|
inherited |
|
protectedinherited |
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 313 of file trilinos_solver.h.
|
privateinherited |
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 336 of file trilinos_solver.h.
|
privateinherited |
A structure that contains a Trilinos object that can query the linear solver and determine whether the convergence criterion have been met.
Definition at line 342 of file trilinos_solver.h.
|
privateinherited |
A structure that contains the Trilinos solver and preconditioner objects.
Definition at line 348 of file trilinos_solver.h.
|
privateinherited |
Store a copy of the flags for this particular solver.
Definition at line 353 of file trilinos_solver.h.