Tempus
Version of the Day
Time Integration
Loading...
Searching...
No Matches
src
Tempus_StepperBDF2AppActionComposite.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_StepperBDF2AppActionComposite_hpp
11
#define Tempus_StepperBDF2AppActionComposite_hpp
12
13
#include "Tempus_config.hpp"
14
#include "
Tempus_StepperBDF2AppAction.hpp
"
15
#include "Tempus_TimeStepControl.hpp"
16
#include <vector>
17
18
namespace
Tempus
{
19
25
template
<
class
Scalar>
26
class
StepperBDF2AppActionComposite
27
:
virtual
public
Tempus::StepperBDF2AppAction
<Scalar> {
28
public
:
30
StepperBDF2AppActionComposite
();
31
33
virtual
~StepperBDF2AppActionComposite
();
34
36
virtual
void
execute
(
37
Teuchos::RCP<
SolutionHistory<Scalar>
> sh,
38
Teuchos::RCP<
StepperBDF2<Scalar>
> stepper,
39
const
typename
StepperBDF2AppAction<Scalar>::ACTION_LOCATION
actLoc)
40
{
41
for
(
auto
& a :
appActions_
) a->execute(sh, stepper, actLoc);
42
}
43
44
// Add AppAction to the AppAction vector.
45
void
addBDF2AppAction
(Teuchos::RCP<
StepperBDF2AppAction<Scalar>
> appAction);
46
{
47
appActions_
.push_back(appAction);
48
}
49
50
// Clear the AppAction vector.
51
void
clearBDF2AppActions
();
52
{
53
appActions_
.clear();
54
}
55
56
// Return the size of the AppAction vector.
57
std::size_t
getSize
()
const
{
return
appActions_
.size(); }
58
59
private
:
60
std::vector<Teuchos::RCP<StepperBDF2AppAction<Scalar> > >
appActions_
;
61
};
62
63
}
// namespace Tempus
64
#endif
// Tempus_StepperBDF2AppActionComposite_hpp
Tempus_StepperBDF2AppAction.hpp
Tempus::SolutionHistory
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Definition
Tempus_SolutionHistory_decl.hpp:119
Tempus::StepperBDF2AppActionComposite
This composite AppAction loops over added AppActions.
Definition
Tempus_StepperBDF2AppActionComposite.hpp:27
Tempus::StepperBDF2AppActionComposite::~StepperBDF2AppActionComposite
virtual ~StepperBDF2AppActionComposite()
Destructor.
Tempus::StepperBDF2AppActionComposite::clearBDF2AppActions
void clearBDF2AppActions()
Tempus::StepperBDF2AppActionComposite::getSize
std::size_t getSize() const
Definition
Tempus_StepperBDF2AppActionComposite.hpp:57
Tempus::StepperBDF2AppActionComposite::addBDF2AppAction
void addBDF2AppAction(Teuchos::RCP< StepperBDF2AppAction< Scalar > > appAction)
Tempus::StepperBDF2AppActionComposite::appActions_
std::vector< Teuchos::RCP< StepperBDF2AppAction< Scalar > > > appActions_
Definition
Tempus_StepperBDF2AppActionComposite.hpp:60
Tempus::StepperBDF2AppActionComposite::execute
virtual void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperBDF2< Scalar > > stepper, const typename StepperBDF2AppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for BDF2 Stepper.
Definition
Tempus_StepperBDF2AppActionComposite.hpp:36
Tempus::StepperBDF2AppActionComposite::StepperBDF2AppActionComposite
StepperBDF2AppActionComposite()
Default constructor.
Tempus::StepperBDF2AppAction
Application Action for StepperBDF2.
Definition
Tempus_StepperBDF2AppAction.hpp:35
Tempus::StepperBDF2AppAction::ACTION_LOCATION
ACTION_LOCATION
Indicates the location of application action (see algorithm).
Definition
Tempus_StepperBDF2AppAction.hpp:38
Tempus::StepperBDF2
BDF2 (Backward-Difference-Formula-2) time stepper.
Definition
Tempus_StepperBDF2_decl.hpp:103
Tempus
Definition
Tempus_AdjointAuxSensitivityModelEvaluator_decl.hpp:22
Generated on Thu Oct 9 2025 20:59:09 for Tempus by
1.9.8