Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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>
29  : public virtual Thyra::ModelEvaluatorDefaultBase<Scalar> {
30  public:
33 
36 
39  const
40  {
41  return Teuchos::null;
42  }
43 
46  const Teuchos::RCP<const Tempus::SolutionHistory<Scalar> >& /* sh */)
47  {
48  }
49 
52  const Teuchos::RCP<const Tempus::SolutionState<Scalar> >& /* s */)
53  {
54  }
55 
57  virtual void setSolver(
59  const bool /* force_W_update */)
60  {
61  }
62 };
63 
64 } // namespace Tempus
65 
66 #endif
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getForwardModel() const
Get the underlying forward model.
virtual void setSolver(const Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > &, const bool)
Set the solver of the underlying model if you want to reuse it.
virtual void setForwardSolutionState(const Teuchos::RCP< const Tempus::SolutionState< Scalar > > &)
Set solution state from forward state evaluation (for frozen state)
A ModelEvaluator decorator for sensitivity analysis.
virtual void setForwardSolutionHistory(const Teuchos::RCP< const Tempus::SolutionHistory< Scalar > > &)
Set solution history from forward state evaluation (for interpolation)
Solution state for integrators and steppers.