Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
13 
14 #include "Tempus_config.hpp"
15 #include "Tempus_Stepper.hpp"
16 
17 
18 namespace Tempus {
19 
23 template<class Scalar>
25 {
26 public:
27 
30 
32  virtual ~StepperFactory() {}
33 
34 
36 
39  std::string stepperType = "Forward Euler",
41  model = Teuchos::null);
42 
47  model = Teuchos::null);
48 
52  std::vector<Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> > > models);
54 
55 
56 private:
57 
60  std::string stepperType,
62  const Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >& model);
63 
64 };
65 
66 
67 } // namespace Tempus
68 #endif // Tempus_StepperFactory_decl_hpp
virtual ~StepperFactory()
Destructor.
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.