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: Copyright (2017) Sandia Corporation
4
//
5
// Distributed under BSD 3-clause license (See accompanying file Copyright.txt)
6
// ****************************************************************************
7
// @HEADER
8
9
#ifndef Tempus_SensitivityModelEvaluatorBase_hpp
10
#define Tempus_SensitivityModelEvaluatorBase_hpp
11
12
#include "Thyra_ModelEvaluatorDefaultBase.hpp"
13
#include "Thyra_NonlinearSolverBase.hpp"
14
#include "Tempus_config.hpp"
15
#include "Tempus_SolutionHistory.hpp"
16
17
namespace
Tempus {
18
26
template
<
typename
Scalar>
27
class
SensitivityModelEvaluatorBase
:
28
public
virtual
Thyra::ModelEvaluatorDefaultBase
<Scalar> {
29
public
:
30
32
SensitivityModelEvaluatorBase
() {}
33
35
virtual
~SensitivityModelEvaluatorBase
() {}
36
38
virtual
Teuchos::RCP<const Thyra::ModelEvaluator<Scalar>
>
39
getForwardModel
()
const
{
return
Teuchos::null; }
40
42
virtual
void
setForwardSolutionHistory
(
43
const
Teuchos::RCP
<
const
Tempus::SolutionHistory<Scalar>
>&
/* sh */
) {}
44
46
virtual
void
setForwardSolutionState
(
47
const
Teuchos::RCP
<
const
Tempus::SolutionState<Scalar>
>&
/* s */
) {}
48
50
virtual
void
setSolver
(
51
const
Teuchos::RCP
<
Thyra::NonlinearSolverBase<Scalar>
>&
/* solver */
,
52
const
bool
/* force_W_update */
) {}
53
};
54
55
}
// namespace Tempus
56
57
#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:25
Tempus::SensitivityModelEvaluatorBase::getForwardModel
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getForwardModel() const
Get the underlying forward model.
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:39
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:50
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:46
Tempus::SensitivityModelEvaluatorBase
A ModelEvaluator decorator for sensitivity analysis.
Definition:
Tempus_SensitivityModelEvaluatorBase.hpp:27
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:42
Tempus::SolutionState
Solution state for integrators and steppers. SolutionState contains the metadata for solutions and th...
Definition:
Tempus_SolutionState_decl.hpp:56
Generated by
1.8.5