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_StepperBDF2ModifierXDefault.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_StepperBDF2ModifierX_hpp
11
#define Tempus_StepperBDF2ModifierX_hpp
12
13
#include "Tempus_config.hpp"
14
#include "Tempus_SolutionHistory.hpp"
15
#include "
Tempus_StepperBDF2ModifierXBase.hpp
"
16
17
namespace
Tempus {
18
24
template
<
class
Scalar>
25
class
StepperBDF2ModifierXDefault
26
:
virtual
public
Tempus::StepperBDF2ModifierXBase
<Scalar> {
27
public
:
29
StepperBDF2ModifierXDefault
() {}
30
32
virtual
~StepperBDF2ModifierXDefault
() {}
33
35
virtual
void
modify
(
36
Teuchos::RCP
<
Thyra::VectorBase<Scalar>
>
/* x */
,
const
Scalar
/* time */
,
37
const
Scalar
/* dt */
,
38
const
typename
StepperBDF2ModifierXBase<Scalar>::MODIFIER_TYPE
modType)
39
{
40
switch
(modType) {
41
case
StepperBDF2ModifierXBase<Scalar>::X_BEGIN_STEP
:
42
case
StepperBDF2ModifierXBase<Scalar>::X_BEFORE_SOLVE
:
43
case
StepperBDF2ModifierXBase<Scalar>::X_AFTER_SOLVE
:
44
case
StepperBDF2ModifierXBase<Scalar>::X_END_STEP
: {
45
// No-op.
46
break
;
47
}
48
default
:
49
TEUCHOS_TEST_FOR_EXCEPTION
(
true
, std::logic_error,
50
"Error - unknown modifier type.\n"
);
51
}
52
}
53
};
54
55
}
// namespace Tempus
56
57
#endif // Tempus_StepperBDF2ModifierX_hpp
Tempus::StepperBDF2ModifierXBase
Base ModifierX for StepperBDF2.
Definition:
Tempus_StepperBDF2ModifierXBase.hpp:38
TEUCHOS_TEST_FOR_EXCEPTION
#define TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg)
Tempus::StepperBDF2ModifierXDefault::StepperBDF2ModifierXDefault
StepperBDF2ModifierXDefault()
Constructor.
Definition:
Tempus_StepperBDF2ModifierXDefault.hpp:29
Thyra::VectorBase
Tempus::StepperBDF2ModifierXDefault
Default ModifierX for StepperBDF2.
Definition:
Tempus_StepperBDF2ModifierXDefault.hpp:25
Tempus::StepperBDF2ModifierXDefault::~StepperBDF2ModifierXDefault
virtual ~StepperBDF2ModifierXDefault()
Destructor.
Definition:
Tempus_StepperBDF2ModifierXDefault.hpp:32
Teuchos::RCP
Tempus_StepperBDF2ModifierXBase.hpp
Tempus::StepperBDF2ModifierXBase::MODIFIER_TYPE
MODIFIER_TYPE
Indicates the location of application action (see algorithm).
Definition:
Tempus_StepperBDF2ModifierXBase.hpp:98
Tempus::StepperBDF2ModifierXDefault::modify
virtual void modify(Teuchos::RCP< Thyra::VectorBase< Scalar > >, const Scalar, const Scalar, const typename StepperBDF2ModifierXBase< Scalar >::MODIFIER_TYPE modType)
Modify solution based on the MODIFIER_TYPE.
Definition:
Tempus_StepperBDF2ModifierXDefault.hpp:35
Generated on Tue Nov 26 2024 09:25:21 for Tempus by
1.8.5