24 template<
class MV,
class OP,
class NormType>
27 std::string
name ()
const {
35 std::cout << this->
name () <<
"::solve START" << std::endl;
36 std::cout << this->
name () <<
"::solve END" << std::endl;
43 template<
class MV,
class OP,
class NormType>
46 std::string
name ()
const {
54 std::cout << this->
name () <<
"::solve START" << std::endl;
55 std::cout << this->
name () <<
"::solve END" << std::endl;
62 template<
class MV,
class OP,
class NormType>
70 if (solverName ==
"5") {
73 else if (solverName ==
"6") {
77 std::ostringstream err;
78 err <<
"C::FactoryC::getLinearSolver: Invalid solver name \""
79 << solverName <<
"\"";
80 throw std::invalid_argument (err.str ());
87 #endif // PACKAGE_C_HPP
void solve(MV &, const MV &)
Solve the linear system(s) AX=B.
Interface for a method for solving linear system(s) AX=B.
void solve(MV &, const MV &)
Solve the linear system(s) AX=B.
Teuchos::RCP< Trilinos::Details::LinearSolver< MV, OP, NormType > > getLinearSolver(const std::string &solverName)
Get an instance of a solver from a particular package.
Interface for a "factory" that creates solvers.
Smart reference counting pointer class for automatic garbage collection.