Piro  Development
 All Classes Namespaces Functions Variables Groups
Public Member Functions | List of all members
Piro::SolverFactory Class Reference

Factory for creating Thyra-based Piro solvers. More...

#include <Piro_SolverFactory.hpp>

Public Member Functions

template<typename Scalar >
Teuchos::RCP
< Thyra::ResponseOnlyModelEvaluatorBase
< Scalar > > 
createSolverAdaptive (const Teuchos::RCP< Teuchos::ParameterList > &piroParams, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &model, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &adjointModel=Teuchos::null, const Teuchos::RCP< Thyra::AdaptiveSolutionManager > &solMgr=Teuchos::null, const Teuchos::RCP< Piro::ObserverBase< Scalar > > &observer=Teuchos::null)
 Create a solved model. More...
 
template<typename Scalar >
Teuchos::RCP
< Thyra::ResponseOnlyModelEvaluatorBase
< Scalar > > 
createSolver (const Teuchos::RCP< Teuchos::ParameterList > &piroParams, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &model, const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &adjointModel=Teuchos::null, const Teuchos::RCP< Piro::ObserverBase< Scalar > > &observer=Teuchos::null)
 

Detailed Description

Factory for creating Thyra-based Piro solvers.

Piro::Epetra::SolverFactory is the counterpart for Epetra-based models.

Member Function Documentation

template<typename Scalar >
Teuchos::RCP<Thyra::ResponseOnlyModelEvaluatorBase<Scalar> > Piro::SolverFactory::createSolverAdaptive ( const Teuchos::RCP< Teuchos::ParameterList > &  piroParams,
const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &  model,
const Teuchos::RCP< Thyra::ModelEvaluator< Scalar > > &  adjointModel = Teuchos::null,
const Teuchos::RCP< Thyra::AdaptiveSolutionManager > &  solMgr = Teuchos::null,
const Teuchos::RCP< Piro::ObserverBase< Scalar > > &  observer = Teuchos::null 
)

Create a solved model.

The type of Piro solver to instantiate is determined by the value of the string entry labeled "Solver Type" and located at the top level of parameter list piroParams.

Currently, the following solver types are available (each accompanied by the corresponding token value):

For Epetra-based models, additional options are available in Piro::Epetra::SolverFactory.


The documentation for this class was generated from the following file: