44 #ifndef ROL_KRYLOVFACTORY_H 45 #define ROL_KRYLOVFACTORY_H 49 #include "Teuchos_ParameterList.hpp" 50 #include "Teuchos_RCP.hpp" 58 inline Teuchos::RCP<Krylov<Real> >
KrylovFactory( Teuchos::ParameterList &parlist ) {
60 parlist.sublist(
"General").sublist(
"Krylov").get(
"Type",
"Conjugate Gradients"));
61 Real absTol = parlist.sublist(
"General").sublist(
"Krylov").get(
"Absolute Tolerance", 1.e-4);
62 Real relTol = parlist.sublist(
"General").sublist(
"Krylov").get(
"Relative Tolerance", 1.e-2);
63 int maxit = parlist.sublist(
"General").sublist(
"Krylov").get(
"Iteration Limit", 20);
64 bool inexact = parlist.sublist(
"General").get(
"Inexact Hessian-Times-A-Vector",
false);
68 default:
return Teuchos::null;
Provides definition of the Conjugate Residual solver.
Contains definitions of custom data types in ROL.
EKrylov
Enumeration of Krylov methods.
EKrylov StringToEKrylov(std::string s)
Provides definitions of the Conjugate Gradient solver.
Teuchos::RCP< Krylov< Real > > KrylovFactory(Teuchos::ParameterList &parlist)