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_StepperLeapfrogAppActionComposite.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_StepperLeapfrogAppActionComposite_hpp
11
#define Tempus_StepperLeapfrogAppActionComposite_hpp
12
13
#include "Tempus_config.hpp"
14
#include "
Tempus_StepperLeapfrogAppAction.hpp
"
15
#include "Tempus_TimeStepControl.hpp"
16
#include <vector>
17
18
namespace
Tempus {
19
25
template
<
class
Scalar>
26
class
StepperLeapfrogAppActionComposite
27
:
virtual
public
Tempus::StepperLeapfrogAppAction
<Scalar> {
28
public
:
30
StepperLeapfrogAppActionComposite
();
31
33
virtual
~StepperLeapfrogAppActionComposite
();
34
36
virtual
void
execute
(
37
Teuchos::RCP
<
SolutionHistory<Scalar>
> sh,
38
Teuchos::RCP
<
StepperLeapfrog<Scalar>
> stepper,
39
const
typename
StepperLeapfrogAppAction<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
addLeapfrogAppAction
(
46
Teuchos::RCP
<
StepperLeapfrogAppAction<Scalar>
> appAction)
47
{
48
appActions_
.push_back(appAction);
49
}
50
51
// Clear the AppAction vector.
52
void
clearLeapfrogAppActions
() {
appActions_
.clear(); }
53
54
// Return the size of the AppAction vector.
55
std::size_t
getSize
()
const
{
return
appActions_
.size(); }
56
57
private
:
58
std::vector<Teuchos::RCP<StepperLeapfrogAppAction<Scalar> > >
appActions_
;
59
};
60
61
}
// namespace Tempus
62
#endif // Tempus_StepperLeapfrogAppActionComposite_hpp
Tempus::StepperLeapfrogAppActionComposite::appActions_
std::vector< Teuchos::RCP< StepperLeapfrogAppAction< Scalar > > > appActions_
Definition:
Tempus_StepperLeapfrogAppActionComposite.hpp:58
Tempus::StepperLeapfrog
Leapfrog time stepper.
Definition:
Tempus_StepperLeapfrog_decl.hpp:92
Tempus::StepperLeapfrogAppActionComposite::StepperLeapfrogAppActionComposite
StepperLeapfrogAppActionComposite()
Default constructor.
Tempus_StepperLeapfrogAppAction.hpp
Tempus::StepperLeapfrogAppAction::ACTION_LOCATION
ACTION_LOCATION
Indicates the location of application action (see algorithm).
Definition:
Tempus_StepperLeapfrogAppAction.hpp:38
Tempus::StepperLeapfrogAppAction
Application Action for StepperLeapfrog.
Definition:
Tempus_StepperLeapfrogAppAction.hpp:35
Tempus::StepperLeapfrogAppActionComposite::addLeapfrogAppAction
void addLeapfrogAppAction(Teuchos::RCP< StepperLeapfrogAppAction< Scalar > > appAction)
Definition:
Tempus_StepperLeapfrogAppActionComposite.hpp:45
Tempus::StepperLeapfrogAppActionComposite::execute
virtual void execute(Teuchos::RCP< SolutionHistory< Scalar > > sh, Teuchos::RCP< StepperLeapfrog< Scalar > > stepper, const typename StepperLeapfrogAppAction< Scalar >::ACTION_LOCATION actLoc)
Execute application action for Leapfrog Stepper.
Definition:
Tempus_StepperLeapfrogAppActionComposite.hpp:36
Tempus::StepperLeapfrogAppActionComposite
This composite AppAction loops over added AppActions.
Definition:
Tempus_StepperLeapfrogAppActionComposite.hpp:26
Tempus::SolutionHistory
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Definition:
Tempus_Integrator.hpp:28
Tempus::StepperLeapfrogAppActionComposite::clearLeapfrogAppActions
void clearLeapfrogAppActions()
Definition:
Tempus_StepperLeapfrogAppActionComposite.hpp:52
Tempus::StepperLeapfrogAppActionComposite::~StepperLeapfrogAppActionComposite
virtual ~StepperLeapfrogAppActionComposite()
Destructor.
Tempus::StepperLeapfrogAppActionComposite::getSize
std::size_t getSize() const
Definition:
Tempus_StepperLeapfrogAppActionComposite.hpp:55
Teuchos::RCP
Generated on Wed Dec 25 2024 09:25:42 for Tempus by
1.8.5