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: 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>
28  public virtual Thyra::ModelEvaluatorDefaultBase<Scalar> {
29 public:
30 
33 
36 
39  getForwardModel() const { return Teuchos::null; }
40 
43  const Teuchos::RCP<const Tempus::SolutionHistory<Scalar> >& /* sh */) {}
44 
47  const Teuchos::RCP<const Tempus::SolutionState<Scalar> >& /* s */) {}
48 
50  virtual void setSolver(
52  const bool /* force_W_update */) {}
53 };
54 
55 } // namespace Tempus
56 
57 #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. SolutionState contains the metadata for solutions and th...