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_SensitivityModelEvaluatorBase.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_SensitivityModelEvaluatorBase_hpp
11
#define Tempus_SensitivityModelEvaluatorBase_hpp
12
13
#include "Thyra_ModelEvaluatorDefaultBase.hpp"
14
#include "Thyra_NonlinearSolverBase.hpp"
15
#include "Tempus_config.hpp"
16
#include "Tempus_SolutionHistory.hpp"
17
18
namespace
Tempus {
19
27
template
<
typename
Scalar>
28
class
SensitivityModelEvaluatorBase
29
:
public
virtual
Thyra::ModelEvaluatorDefaultBase
<Scalar> {
30
public
:
32
SensitivityModelEvaluatorBase
() {}
33
35
virtual
~SensitivityModelEvaluatorBase
() {}
36
38
virtual
Teuchos::RCP<const Thyra::ModelEvaluator<Scalar>
>
getForwardModel
()
39
const
40
{
41
return
Teuchos::null;
42
}
43
45
virtual
void
setForwardSolutionHistory
(
46
const
Teuchos::RCP
<
const
Tempus::SolutionHistory<Scalar>
>&
/* sh */
)
47
{
48
}
49
51
virtual
void
setForwardSolutionState
(
52
const
Teuchos::RCP
<
const
Tempus::SolutionState<Scalar>
>&
/* s */
)
53
{
54
}
55
57
virtual
void
setSolver
(
58
const
Teuchos::RCP
<
Thyra::NonlinearSolverBase<Scalar>
>&
/* solver */
,
59
const
bool
/* force_W_update */
)
60
{
61
}
62
};
63
64
}
// namespace Tempus
65
66
#endif
Tempus::SensitivityModelEvaluatorBase::SensitivityModelEvaluatorBase
SensitivityModelEvaluatorBase()
Constructor.
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:32
Thyra::ModelEvaluatorDefaultBase
Thyra::NonlinearSolverBase
Tempus::SensitivityModelEvaluatorBase::~SensitivityModelEvaluatorBase
virtual ~SensitivityModelEvaluatorBase()
Destructor.
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:35
Tempus::SolutionHistory
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Definition:
Tempus_Integrator.hpp:28
Tempus::SensitivityModelEvaluatorBase::getForwardModel
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getForwardModel() const
Get the underlying forward model.
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:38
Tempus::SensitivityModelEvaluatorBase::setSolver
virtual void setSolver(const Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > &, const bool)
Set the solver of the underlying model if you want to reuse it.
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:57
Teuchos::RCP
Tempus::SensitivityModelEvaluatorBase::setForwardSolutionState
virtual void setForwardSolutionState(const Teuchos::RCP< const Tempus::SolutionState< Scalar > > &)
Set solution state from forward state evaluation (for frozen state)
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:51
Tempus::SensitivityModelEvaluatorBase
A ModelEvaluator decorator for sensitivity analysis.
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:28
Tempus::SensitivityModelEvaluatorBase::setForwardSolutionHistory
virtual void setForwardSolutionHistory(const Teuchos::RCP< const Tempus::SolutionHistory< Scalar > > &)
Set solution history from forward state evaluation (for interpolation)
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:45
Tempus::SolutionState
Solution state for integrators and steppers.
Definition:
Tempus_SolutionState_decl.hpp:137
Generated on Wed Dec 25 2024 09:25:42 for Tempus by
1.8.5