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) |
Factory for creating Thyra-based Piro solvers.
Piro::Epetra::SolverFactory is the counterpart for Epetra-based models.
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):
"NOX"
)"LOCA"
)"Velocity Verlet"
)"Trapezoid Rule"
)"Tempus"
)For Epetra-based models, additional options are available in Piro::Epetra::SolverFactory.