42 #ifndef THYRA_DEFAULT_NONLINEAR_SOLVER_BUILDER_HPP
43 #define THYRA_DEFAULT_NONLINEAR_SOLVER_BUILDER_HPP
45 #include "Thyra_NonlinearSolverBuilderBase.hpp"
46 #include "Teuchos_AbstractFactory.hpp"
62 :
public Thyra::NonlinearSolverBuilderBase<double>
78 &nonlinearSolverFactory,
79 const std::string &nonlinearSolverTypeName
129 std::string defaultNonlinearSolverName_;
134 void initializeDefaults();
145 template<
class NonlinearSolverType,
class Scalar>
146 void setNonlinearSolverFactory(
147 const std::string &nonlinearSolverTypeName,
148 const Ptr<DefaultNonlinearSolverBuilder<Scalar> > &defaultNonlinearSolverBuilder
155 #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)