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: Time Integration and Sensitivity Analysis Package
4
//
5
// Copyright 2017 NTESS and the Tempus contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
//@HEADER
9
10
#ifndef Tempus_StepperFactory_decl_hpp
11
#define Tempus_StepperFactory_decl_hpp
12
13
#include "
Teuchos_ParameterList.hpp
"
14
15
#include "Tempus_config.hpp"
16
#include "Tempus_Stepper.hpp"
17
18
namespace
Tempus {
19
23
template
<
class
Scalar>
24
class
StepperFactory
{
25
public
:
27
StepperFactory
() {}
28
30
virtual
~StepperFactory
() {}
31
33
34
Teuchos::RCP<Stepper<Scalar>
>
createStepper
(
36
std::string stepperType =
"Forward Euler"
,
37
const
Teuchos::RCP
<
const
Thyra::ModelEvaluator<Scalar>
>& model =
38
Teuchos::null);
39
41
Teuchos::RCP<Stepper<Scalar>
>
createStepper
(
42
Teuchos::RCP<Teuchos::ParameterList>
stepperPL,
43
const
Teuchos::RCP
<
const
Thyra::ModelEvaluator<Scalar>
>& model =
44
Teuchos::null);
45
47
Teuchos::RCP<Stepper<Scalar>
>
createStepper
(
48
Teuchos::RCP<Teuchos::ParameterList>
stepperPL,
49
std::vector<
Teuchos::RCP
<
const
Thyra::ModelEvaluator<Scalar>
> > models);
51
52
private
:
54
Teuchos::RCP<Stepper<Scalar>
>
createStepper
(
55
std::string stepperType,
Teuchos::RCP<Teuchos::ParameterList>
stepperPL,
56
const
Teuchos::RCP
<
const
Thyra::ModelEvaluator<Scalar>
>& model);
57
};
58
59
}
// namespace Tempus
60
#endif // Tempus_StepperFactory_decl_hpp
Tempus::StepperFactory::~StepperFactory
virtual ~StepperFactory()
Destructor.
Definition:
Tempus_StepperFactory_decl.hpp:30
Thyra::ModelEvaluator
Tempus::StepperFactory::StepperFactory
StepperFactory()
Constructor.
Definition:
Tempus_StepperFactory_decl.hpp:27
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:31
Tempus::StepperFactory
Stepper factory.
Definition:
Tempus_StepperFactory_decl.hpp:24
Teuchos_ParameterList.hpp
Teuchos::RCP
Generated on Fri Nov 22 2024 09:23:26 for Tempus by
1.8.5