15 template<
class MV,
class OP,
class NormType>
18 std::string
name ()
const {
26 std::cout << this->
name () <<
"::solve START" << std::endl;
27 std::cout << this->
name () <<
"::solve END" << std::endl;
34 template<
class MV,
class OP,
class NormType>
37 std::string
name ()
const {
45 std::cout << this->
name () <<
"::solve START" << std::endl;
46 std::cout << this->
name () <<
"::solve END" << std::endl;
53 template<
class MV,
class OP,
class NormType>
61 if (solverName ==
"5") {
64 else if (solverName ==
"6") {
68 std::ostringstream err;
69 err <<
"C::FactoryC::getLinearSolver: Invalid solver name \""
70 << solverName <<
"\"";
71 throw std::invalid_argument (err.str ());
78 #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.