Tempus
Version of the Day
Time Integration
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
src
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
18
namespace
Tempus {
19
23
template
<
class
Scalar>
24
class
StepperFactory
25
{
26
public
:
27
29
StepperFactory
(){}
30
32
virtual
~StepperFactory
() {}
33
34
36
37
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
56
private
:
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
Tempus::StepperFactory::~StepperFactory
virtual ~StepperFactory()
Destructor.
Definition:
Tempus_StepperFactory_decl.hpp:32
Thyra::ModelEvaluator
Tempus::StepperFactory::StepperFactory
StepperFactory()
Constructor.
Definition:
Tempus_StepperFactory_decl.hpp:29
Tempus::StepperFactory::createStepper
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.
Definition:
Tempus_StepperFactory_impl.hpp:33
Tempus::StepperFactory
Stepper factory.
Definition:
Tempus_StepperFactory_decl.hpp:24
Teuchos_ParameterList.hpp
Teuchos::RCP
Generated by
1.8.5