Belos
Version of the Day
|
#include <Belos_Details_LinearSolverFactory.hpp>
Public Member Functions | |
virtual Teuchos::RCP < Trilinos::Details::LinearSolver < MV, OP, NormType > > | getLinearSolver (const std::string &solverName) |
Get an instance of a Belos solver. More... | |
Static Public Member Functions | |
static void | registerLinearSolverFactory () |
Register this LinearSolverFactory with the central registry. More... | |
Definition at line 26 of file Belos_Details_LinearSolverFactory.hpp.
|
inlinevirtual |
Get an instance of a Belos solver.
The solver is wrapped in a Trilinos::Details::LinearSolver interface.
solverName | [in] The solver's name. Names are case sensitive. |
Implements Trilinos::Details::LinearSolverFactory< MV, OP, NormType >.
Definition at line 40 of file Belos_Details_LinearSolverFactory.hpp.
|
inlinestatic |
Register this LinearSolverFactory with the central registry.
Register this LinearSolverFactory with the central registry, for the given SC, LO, GO, NT template parameters. This will let any clients of Trilinos::Details::getLinearSolver create Belos solvers with those template parameters.
You may call this function multiple times; it will only have an effect the first time (it is idempotent).
Users do not normally have to call this function. Belos automatically registers its LinearSolverFactory with the central repository, for all enabled template parameter combinations.
Definition at line 59 of file Belos_Details_LinearSolverFactory.hpp.