10 #ifndef THYRA_DEFAULT_NONLINEAR_SOLVER_BUILDER_HPP
11 #define THYRA_DEFAULT_NONLINEAR_SOLVER_BUILDER_HPP
13 #include "Thyra_NonlinearSolverBuilderBase.hpp"
14 #include "Teuchos_AbstractFactory.hpp"
30 :
public Thyra::NonlinearSolverBuilderBase<double>
46 &nonlinearSolverFactory,
47 const std::string &nonlinearSolverTypeName
97 std::string defaultNonlinearSolverName_;
102 void initializeDefaults();
113 template<
class NonlinearSolverType,
class Scalar>
114 void setNonlinearSolverFactory(
115 const std::string &nonlinearSolverTypeName,
116 const Ptr<DefaultNonlinearSolverBuilder<Scalar> > &defaultNonlinearSolverBuilder
123 #endif // THYRA_DEFAULT_NONLINEAR_SOLVER_BUILDER_HPP
RCP< ParameterList > getNonconstParameterList()
std::string getNonlinearSolverName() const
Get the name of the NonlinearSolver type that will be created on the next call to this->createNonline...
RCP< const ParameterList > getValidParameters() const
RCP< const ParameterList > getParameterList() const
DefaultNonlinearSolverBuilder()
Base class for all nonlinear equation solvers.
RCP< ParameterList > unsetParameterList()
void setParameterList(RCP< ParameterList > const ¶mList)
Concrete subclass of Thyra::NonlinearSolverBuilderBase for creating NonlinearSolverBase objects and P...
~DefaultNonlinearSolverBuilder()
virtual Teuchos::RCP< NonlinearSolverBase< Scalar > > createNonlinearSolver(const std::string &nonlinearSolverTypeName) const
void setNonlinearSolverFactory(const RCP< const AbstractFactory< Thyra::NonlinearSolverBase< double > > > &nonlinearSolverFactory, const std::string &nonlinearSolverTypeName)
Set a new NonlinearSolverBase factory object.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)