Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_AdjointAuxSensitivityModelEvaluator_decl.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_AdjointAuxSensitivityModelEvaluator_decl_hpp
10 #define Tempus_AdjointAuxSensitivityModelEvaluator_decl_hpp
11 
12 #include "Thyra_StateFuncModelEvaluatorBase.hpp"
13 #include "Thyra_DefaultProductVectorSpace.hpp"
14 #include "Thyra_DefaultProductVector.hpp"
15 #include "Thyra_DefaultMultiVectorProductVectorSpace.hpp"
16 #include "Thyra_DefaultMultiVectorProductVector.hpp"
17 
18 #include "Tempus_config.hpp"
19 #include "Tempus_SolutionHistory.hpp"
20 
21 namespace Tempus {
22 
56 template <typename Scalar>
58  public Thyra::StateFuncModelEvaluatorBase<Scalar> {
59 public:
62 
64 
83  const Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> > & model,
84  const Scalar& t_final,
85  const Teuchos::RCP<const Teuchos::ParameterList>& pList = Teuchos::null);
86 
89  { return model_; }
90 
94 
97 
99 
101 
103 
105 
107 
109  get_W_factory() const;
110 
112 
114 
116 
118 
119 private:
120 
125 
127 
128  void evalModelImpl(
130  const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs) const;
131 
132 
135 
137 
144  Scalar t_final_;
147  int p_index_;
148  int g_index_;
150 
157  mutable Scalar t_interp_;
158 };
159 
160 } // namespace Tempus
161 
162 #endif
Thyra::DefaultMultiVectorProductVectorSpace< Scalar > DMVPVS
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const
static Teuchos::RCP< const Teuchos::ParameterList > getValidParameters()
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
ModelEvaluator for forming adjoint sensitivity equations.
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int p) const
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getModel() const
Get the underlying model &#39;f&#39;.
void setForwardSolutionHistory(const Teuchos::RCP< const Tempus::SolutionHistory< Scalar > > &sh)
Set solution history from forward evaluation.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int p) const
AdjointAuxSensitivityModelEvaluator(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model, const Scalar &t_final, const Teuchos::RCP< const Teuchos::ParameterList > &pList=Teuchos::null)
Constructor.
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > model_
Teuchos::RCP< const Tempus::SolutionHistory< Scalar > > sh_