NOX
Development
|
Factory class for creating strategies More...
#include <LOCA_Factory.H>
Factory class for creating strategies
The Factory class provides a single location for instantiating various strategies based on parameter list choices. It provides a create() method for each type of strategy which instantiates strategy objects for that type. Each create method takes as arguments a ref-count pointer to a LOCA::Parameter::SublistParser and a parameter list. The parameter list determines which strategy to choose and also should provide any parameters the strategy requires. The sublist parser provides a parsed version of the top-level parameter list and allows strategies to easily obtain other sublists from the top-level list. A user-supplied factory may also be provided for instantiating user-defined strategies. If a user-defined factory is supplied, each create method will first attempt to instantiate the strategy using it, and then instantiate strategies itself if necessary.
LOCA::Factory::Factory | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data | ) |
Constructor.
global_data | [in] Global data object. The constructor sets the factory member of the global data to this. |
LOCA::Factory::Factory | ( | const Teuchos::RCP< LOCA::GlobalData > & | global_data, |
const Teuchos::RCP< LOCA::Abstract::Factory > & | userFactory | ||
) |
Constructor with user-supplied factory.
global_data | [in] Global data object. The constructor sets the factory member of the global data to this. |
userFactory | [in] A user-supplied factory for instantiating user-defined strategies. |
References factory, and globalData.
Teuchos::RCP< LOCA::AnasaziOperator::AbstractStrategy > LOCA::Factory::createAnasaziOperatorStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | eigenParams, | ||
const Teuchos::RCP< Teuchos::ParameterList > & | solverParams, | ||
const Teuchos::RCP< NOX::Abstract::Group > & | grp | ||
) |
Create Anasazi operator strategy.
Instantiates an Anasazi operator strategy based on the "Operator" parameter of the "Eigensolver" sublist. See LOCA::AnasaziOperator::Factory for a description of available strategies.
Teuchos::RCP< LOCA::MultiContinuation::AbstractGroup > LOCA::Factory::createBifurcationStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | bifurcationParams, | ||
const Teuchos::RCP< LOCA::MultiContinuation::AbstractGroup > & | grp | ||
) |
Create bifurcation strategy.
Instantiates a bifurcation strategy based on the "Method" parameter of the "Bifurcation" sublist. See LOCA::Bifurcation::Factory for a description of available strategies.
Teuchos::RCP< LOCA::BorderedSolver::AbstractStrategy > LOCA::Factory::createBorderedSolverStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | solverParams | ||
) |
Create bordered system solver strategy.
Instantiates an bordered system solver strategy based on the "Bordered Solver Method" parameter of the "Linear Solver" sublist. See LOCA::BorderedSolver::Factory for a description of available strategies.
Teuchos::RCP< LOCA::MultiContinuation::AbstractStrategy > LOCA::Factory::createContinuationStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | stepperParams, | ||
const Teuchos::RCP< LOCA::MultiContinuation::AbstractGroup > & | grp, | ||
const Teuchos::RCP< LOCA::MultiPredictor::AbstractStrategy > & | pred, | ||
const std::vector< int > & | paramIDs | ||
) |
Create continuation strategy.
Instantiates a continuation strategy based on the "Continuation Method" parameter of the "Stepper" sublist. See LOCA::MultiContinuation::Factory for a description of available strategies.
Teuchos::RCP< LOCA::Eigensolver::AbstractStrategy > LOCA::Factory::createEigensolverStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | eigenParams | ||
) |
Create eigensolver strategy.
Instantiates an eigensolver strategy based on the "Method" parameter of the "Eigensolver" sublist. See LOCA::Eigensolver::Factory for a description of available strategies.
Teuchos::RCP< LOCA::EigenvalueSort::AbstractStrategy > LOCA::Factory::createEigenvalueSortStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | eigenParams | ||
) |
Create eigenvalue sort strategy.
Instantiates an eigenvalue sorting strategy based on the "Sorting Method" parameter of the "Eigensolver" sublist. See LOCA::EigenvalueSort::Factory for a description of available strategies.
Teuchos::RCP< LOCA::Hopf::MooreSpence::SolverStrategy > LOCA::Factory::createMooreSpenceHopfSolverStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | solverParams | ||
) |
Create Moore-Spence Hopf solver strategy.
Instantiates a solver strategy based on the "Solver Method" parameter of the "Bifurcation" sublist. See LOCA::Hopf::MooreSpence::SolverFactory for a description of available strategies.
Teuchos::RCP< LOCA::Pitchfork::MooreSpence::SolverStrategy > LOCA::Factory::createMooreSpencePitchforkSolverStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | solverParams | ||
) |
Create Moore-Spence pitchfork solver strategy.
Instantiates a solver strategy based on the "Solver Method" parameter of the "Bifurcation" sublist. See LOCA::Pitchfork::MooreSpence::SolverFactory for a description of available strategies.
Teuchos::RCP< LOCA::TurningPoint::MooreSpence::SolverStrategy > LOCA::Factory::createMooreSpenceTurningPointSolverStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | solverParams | ||
) |
Create Moore-Spence turning point solver strategy.
Instantiates a solver strategy based on the "Solver Method" parameter of the "Bifurcation" sublist. See LOCA::TurningPoint::MooreSpence::SolverFactory for a description of available strategies.
Teuchos::RCP< LOCA::MultiPredictor::AbstractStrategy > LOCA::Factory::createPredictorStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | predictorParams | ||
) |
Create predictor strategy.
Instantiates a predictor strategy based on the "Method" parameter of the "Predictor" sublist. See LOCA::MultiPredictor::Factory for a description of available strategies.
Teuchos::RCP< LOCA::SaveEigenData::AbstractStrategy > LOCA::Factory::createSaveEigenDataStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | eigenParams | ||
) |
Create strategy to save eigenvector/value data.
Instantiates a strategy to save eigenvector/value data based on the "Save Eigen Data Method" parameter of the "Eigensolver" sublist. See LOCA::SaveEigenData::Factory for a description of available strategies.
Teuchos::RCP< LOCA::StepSize::AbstractStrategy > LOCA::Factory::createStepSizeStrategy | ( | const Teuchos::RCP< LOCA::Parameter::SublistParser > & | topParams, |
const Teuchos::RCP< Teuchos::ParameterList > & | stepsizeParams | ||
) |
Create step size control strategy.
Instantiates a step size control strategy based on the "Method" parameter of the "Step Size" sublist. See LOCA::StepSize::Factory for a description of available strategies.