Tempus
Version of the Day
Time Integration
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
Tempus_StepperObserverComposite_impl.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_StepperObserverComposite_impl_hpp
10
#define Tempus_StepperObserverComposite_impl_hpp
11
12
#include "
Tempus_StepperObserver.hpp
"
13
#include "Tempus_TimeStepControl.hpp"
14
15
namespace
Tempus {
16
17
template
<
class
Scalar>
18
StepperObserverComposite<Scalar>::StepperObserverComposite
(){}
19
20
template
<
class
Scalar>
21
StepperObserverComposite<Scalar>::~StepperObserverComposite
(){}
22
23
template
<
class
Scalar>
24
void
StepperObserverComposite<Scalar>::
25
observeBeginTakeStep
(Teuchos::RCP<
SolutionHistory<Scalar>
> sh,
26
Stepper<Scalar>
& stepper)
27
{
28
for
(
auto
& o : observers_)
29
o->observeBeginTakeStep(sh,stepper);
30
}
31
32
template
<
class
Scalar>
33
void
StepperObserverComposite<Scalar>::
34
observeEndTakeStep
(Teuchos::RCP<
SolutionHistory<Scalar>
> sh,
35
Stepper<Scalar>
& stepper)
36
{
37
for
(
auto
& o : observers_)
38
o->observeEndTakeStep(sh,stepper);
39
}
40
41
template
<
class
Scalar>
42
void
StepperObserverComposite<Scalar>::
43
addObserver
(
const
Teuchos::RCP<
StepperObserver<Scalar>
> &observer)
44
{
45
observers_.push_back(observer);
46
}
47
48
template
<
class
Scalar>
49
void
StepperObserverComposite<Scalar>::
50
clearObservers
() { observers_.clear();}
51
52
}
// namespace Tempus
53
#endif // Tempus_StepperObserverComposite_impl_hpp
Tempus::StepperObserverComposite::addObserver
void addObserver(const Teuchos::RCP< StepperObserver< Scalar > > &observer)
Definition:
Tempus_StepperObserverComposite_impl.hpp:43
Tempus::Stepper
Thyra Base interface for time steppers.
Definition:
Tempus_Integrator.hpp:24
Tempus::StepperObserverComposite::observeBeginTakeStep
virtual void observeBeginTakeStep(Teuchos::RCP< SolutionHistory< Scalar > > sh, Stepper< Scalar > &stepper) override
Observe the beginning of the time integrator.
Definition:
Tempus_StepperObserverComposite_impl.hpp:25
Tempus_StepperObserver.hpp
Tempus::StepperObserverComposite::clearObservers
void clearObservers()
Definition:
Tempus_StepperObserverComposite_impl.hpp:50
Tempus::StepperObserver
StepperObserver class for Stepper class.
Definition:
Tempus_StepperObserver.hpp:38
Tempus::SolutionHistory
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Definition:
Tempus_Integrator.hpp:25
Tempus::StepperObserverComposite::observeEndTakeStep
virtual void observeEndTakeStep(Teuchos::RCP< SolutionHistory< Scalar > > sh, Stepper< Scalar > &stepper) override
Observe the beginning of the time step loop.
Definition:
Tempus_StepperObserverComposite_impl.hpp:34
Tempus::StepperObserverComposite::StepperObserverComposite
StepperObserverComposite()
Default constructor.
Definition:
Tempus_StepperObserverComposite_impl.hpp:18
Tempus::StepperObserverComposite::~StepperObserverComposite
virtual ~StepperObserverComposite()
Destructor.
Definition:
Tempus_StepperObserverComposite_impl.hpp:21
src
Tempus_StepperObserverComposite_impl.hpp
Generated on Fri Dec 20 2024 09:38:31 for Tempus by
1.8.5