Tempus Version of the Day
Time Integration
Loading...
Searching...
No Matches
Tempus_StepperFactory_decl.hpp
Go to the documentation of this file.
1// @HEADER
2// ****************************************************************************
3// Tempus: Copyright (2017) Sandia Corporation
4//
5// Distributed under BSD 3-clause license (See accompanying file Copyright.txt)
6// ****************************************************************************
7// @HEADER
8
9#ifndef Tempus_StepperFactory_decl_hpp
10#define Tempus_StepperFactory_decl_hpp
11
12#include "Teuchos_ParameterList.hpp"
13
14#include "Tempus_config.hpp"
15#include "Tempus_Stepper.hpp"
16
17
18namespace Tempus {
19
23template<class Scalar>
25{
26public:
27
30
32 virtual ~StepperFactory() {}
33
34
36
37
38 Teuchos::RCP<Stepper<Scalar> > createStepper(
39 std::string stepperType = "Forward Euler",
40 const Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >&
41 model = Teuchos::null);
42
44 Teuchos::RCP<Stepper<Scalar> > createStepper(
45 Teuchos::RCP<Teuchos::ParameterList> stepperPL,
46 const Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >&
47 model = Teuchos::null);
48
50 Teuchos::RCP<Stepper<Scalar> > createStepper(
51 Teuchos::RCP<Teuchos::ParameterList> stepperPL,
52 std::vector<Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> > > models);
54
55
56private:
57
59 Teuchos::RCP<Stepper<Scalar> > createStepper(
60 std::string stepperType,
61 Teuchos::RCP<Teuchos::ParameterList> stepperPL,
62 const Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >& model);
63
64};
65
66
67} // namespace Tempus
68#endif // Tempus_StepperFactory_decl_hpp
Teuchos::RCP< Stepper< Scalar > > createStepper(std::string stepperType="Forward Euler", const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model=Teuchos::null)
Create stepper from stepper type.