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_StepperLeapfrogObserver.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_StepperLeapfrogObserver_hpp
10
#define Tempus_StepperLeapfrogObserver_hpp
11
12
#include "Tempus_SolutionHistory.hpp"
13
14
15
namespace
Tempus {
16
17
// Forward Declaration for recursive includes (this Observer <--> Stepper)
18
template
<
class
Scalar>
class
StepperLeapfrog;
19
20
/** \brief StepperLeapfrogObserver class for StepperLeapfrog.
21
*
22
* This is a means for application developers to perform tasks
23
* during the time steps, e.g.,
24
* - Compute specific quantities
25
* - Output information
26
* - "Massage" the working solution state
27
* - ...
28
*
29
* <b>Design Considerations</b>
30
* - StepperLeapfrogObserver is not stateless! Developers may touch the
31
* solution state! Developers need to be careful not to break the
32
* restart (checkpoint) capability.
33
*/
34
template
<
class
Scalar>
35
class
StepperLeapfrogObserver
36
:
virtual
public
Tempus::StepperObserver
<Scalar>
37
{
38
public
:
39
40
/// Constructor
41
StepperLeapfrogObserver
(){}
42
43
/// Destructor
44
virtual
~StepperLeapfrogObserver
(){}
45
46
/// Observe Stepper at beginning of takeStep.
47
virtual
void
observeBeginTakeStep
(
48
Teuchos::RCP<
SolutionHistory<Scalar>
>
/* sh */
,
49
Stepper<Scalar>
&
/* stepper */
){}
50
51
/// Observe Stepper before updating xDot while initializing xDotDot
52
virtual
void
observeBeforeXDotUpdateInitialize
(
53
Teuchos::RCP<
SolutionHistory<Scalar>
>
/* sh */
,
54
StepperLeapfrog<Scalar>
&
/* stepperLF */
){}
55
56
/// Observe Stepper before updating x
57
virtual
void
observeBeforeXUpdate
(
58
Teuchos::RCP<
SolutionHistory<Scalar>
>
/* sh */
,
59
StepperLeapfrog<Scalar>
&
/* stepperLF */
){}
60
61
/// Observe Stepper before Explicit ME evaluation.
62
virtual
void
observeBeforeExplicit
(
63
Teuchos::RCP<
SolutionHistory<Scalar>
>
/* sh */
,
64
StepperLeapfrog<Scalar>
&
/* stepperLF */
){}
65
66
/// Observe Stepper before updating xDot
67
virtual
void
observeBeforeXDotUpdate
(
68
Teuchos::RCP<
SolutionHistory<Scalar>
>
/* sh */
,
69
StepperLeapfrog<Scalar>
&
/* stepperLF */
){}
70
71
/// Observe Stepper at end of takeStep.
72
virtual
void
observeEndTakeStep
(
73
Teuchos::RCP<
SolutionHistory<Scalar>
>
/* sh */
,
74
Stepper<Scalar>
&
/* stepper */
){}
75
};
76
}
// namespace Tempus
77
#endif // Tempus_StepperLeapfrogObserver_hpp
Tempus::StepperLeapfrogObserver::observeEndTakeStep
virtual void observeEndTakeStep(Teuchos::RCP< SolutionHistory< Scalar > >, Stepper< Scalar > &)
Observe Stepper at end of takeStep.
Definition:
Tempus_StepperLeapfrogObserver.hpp:72
Tempus::StepperLeapfrogObserver::observeBeforeExplicit
virtual void observeBeforeExplicit(Teuchos::RCP< SolutionHistory< Scalar > >, StepperLeapfrog< Scalar > &)
Observe Stepper before Explicit ME evaluation.
Definition:
Tempus_StepperLeapfrogObserver.hpp:62
Tempus::StepperLeapfrog
Leapfrog time stepper.
Definition:
Tempus_StepperLeapfrog_decl.hpp:77
Tempus::StepperLeapfrogObserver::~StepperLeapfrogObserver
virtual ~StepperLeapfrogObserver()
Destructor.
Definition:
Tempus_StepperLeapfrogObserver.hpp:44
Tempus::StepperLeapfrogObserver::observeBeginTakeStep
virtual void observeBeginTakeStep(Teuchos::RCP< SolutionHistory< Scalar > >, Stepper< Scalar > &)
Observe Stepper at beginning of takeStep.
Definition:
Tempus_StepperLeapfrogObserver.hpp:47
Tempus::Stepper
Thyra Base interface for time steppers.
Definition:
Tempus_Integrator.hpp:24
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::StepperLeapfrogObserver::observeBeforeXUpdate
virtual void observeBeforeXUpdate(Teuchos::RCP< SolutionHistory< Scalar > >, StepperLeapfrog< Scalar > &)
Observe Stepper before updating x.
Definition:
Tempus_StepperLeapfrogObserver.hpp:57
Tempus::StepperLeapfrogObserver::observeBeforeXDotUpdateInitialize
virtual void observeBeforeXDotUpdateInitialize(Teuchos::RCP< SolutionHistory< Scalar > >, StepperLeapfrog< Scalar > &)
Observe Stepper before updating xDot while initializing xDotDot.
Definition:
Tempus_StepperLeapfrogObserver.hpp:52
Tempus::StepperLeapfrogObserver
StepperLeapfrogObserver class for StepperLeapfrog.
Definition:
Tempus_StepperLeapfrogObserver.hpp:35
Tempus::StepperLeapfrogObserver::StepperLeapfrogObserver
StepperLeapfrogObserver()
Constructor.
Definition:
Tempus_StepperLeapfrogObserver.hpp:41
Tempus::StepperLeapfrogObserver::observeBeforeXDotUpdate
virtual void observeBeforeXDotUpdate(Teuchos::RCP< SolutionHistory< Scalar > >, StepperLeapfrog< Scalar > &)
Observe Stepper before updating xDot.
Definition:
Tempus_StepperLeapfrogObserver.hpp:67
src
Tempus_StepperLeapfrogObserver.hpp
Generated on Fri Dec 20 2024 09:38:31 for Tempus by
1.8.5