Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_AuxiliaryIntegralModelEvaluator_decl.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_AuxiliaryIntegralModelEvaluator_decl_hpp
11 #define Tempus_AuxiliaryIntegralModelEvaluator_decl_hpp
12 
13 #include "Thyra_StateFuncModelEvaluatorBase.hpp"
14 
15 #include "Tempus_config.hpp"
16 #include "Tempus_SolutionHistory.hpp"
17 
18 namespace Tempus {
19 
28 template <typename Scalar>
30  : public Thyra::StateFuncModelEvaluatorBase<Scalar> {
31  public:
34 
37  const Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> > &model,
38  const int g_index);
39 
42  {
43  return model_;
44  }
45 
49 
52 
54 
56 
58 
60 
62 
64  get_W_factory() const;
65 
67 
69 
71 
72  private:
74 
75  void evalModelImpl(
77  const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs) const;
78 
81 
85  int g_index_;
86 
88  mutable Scalar t_interp_;
89 };
90 
91 } // namespace Tempus
92 
93 #endif
AuxiliaryIntegralModelEvaluator(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model, const int g_index)
Constructor.
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > prototypeInArgs_
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
ModelEvaluator for integrating auxiliary equations.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
void setForwardSolutionHistory(const Teuchos::RCP< const Tempus::SolutionHistory< Scalar > > &sh)
Set solution history from forward evaluation.
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getModel() const
Get the underlying model &#39;f&#39;.
Teuchos::RCP< Tempus::SolutionState< Scalar > > forward_state_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > space_
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int p) const
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
Thyra::ModelEvaluatorBase::OutArgs< Scalar > prototypeOutArgs_
Teuchos::RCP< const Tempus::SolutionHistory< Scalar > > sh_
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int p) const
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > model_
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const