Tempus  Version of the Day
Time Integration
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Tempus_WrapperModelEvaluatorPairPartIMEX_StaggeredFSA_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_ModelEvaluatorPairPartIMEX_StaggeredFSA_decl_hpp
11 #define Tempus_ModelEvaluatorPairPartIMEX_StaggeredFSA_decl_hpp
12 
13 #include "Tempus_config.hpp"
15 #include "Tempus_WrapperModelEvaluatorPairPartIMEX_Basic.hpp"
16 #include "Tempus_StaggeredForwardSensitivityModelEvaluator.hpp"
17 
18 #include "Thyra_ProductMultiVectorBase.hpp"
19 #include "Thyra_DefaultMultiVectorProductVectorSpace.hpp"
20 #include "Thyra_DefaultMultiVectorProductVector.hpp"
21 
22 namespace Tempus {
23 
32 template <typename Scalar>
34  : public SensitivityModelEvaluatorBase<Scalar>,
36  public:
39  const Teuchos::RCP<
41  const bool is_pseudotransient,
42  const Teuchos::RCP<const Teuchos::ParameterList>& pList = Teuchos::null);
43 
46 
48  virtual void initialize();
49 
51 
52 
54  int i) const;
55 
57 
59 
62  const Teuchos::RCP<Thyra::VectorBase<Scalar> >& full) const;
63 
66  const Teuchos::RCP<const Thyra::VectorBase<Scalar> >& full) const;
67 
70  const Teuchos::RCP<Thyra::VectorBase<Scalar> >& full) const;
71 
74  const Teuchos::RCP<const Thyra::VectorBase<Scalar> >& full) const;
75 
77 
79 
80 
83  const;
84 
86  virtual void setForwardSolutionHistory(
88 
90  virtual void setForwardSolutionState(
92 
94  virtual void setSolver(
96  const bool force_W_update);
97 
99 
101 
102 
104 
105  virtual void evalModelImpl(
107  const Thyra::ModelEvaluatorBase::OutArgs<Scalar>& outArgs) const;
108 
110 
112 
113  protected:
115  void buildIMEXStates() const;
116 
122 
129 
132 
135 
137  mutable Scalar t_interp_;
142 
145 };
146 
147 } // namespace Tempus
148 
149 #endif // Tempus_ModelEvaluatorPairPartIMEX_Basic_decl_hpp
virtual void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > getExplicitOnlyVector(const Teuchos::RCP< Thyra::VectorBase< Scalar > > &full) const
Extract explicit-only vector from a full solution vector.
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getForwardModel() const
Get the underlying forward model.
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int i) const
Get the p space.
virtual void setSolver(const Teuchos::RCP< Thyra::NonlinearSolverBase< Scalar > > &solver, const bool force_W_update)
Set the solver of the underlying model if you want to reuse it.
ModelEvaluator pair for implicit and explicit (IMEX) evaulations.
WrapperModelEvaluatorPairPartIMEX_StaggeredFSA(const Teuchos::RCP< const WrapperModelEvaluatorPairPartIMEX_Basic< Scalar > > &forwardModel, const bool is_pseudotransient, const Teuchos::RCP< const Teuchos::ParameterList > &pList=Teuchos::null)
Constructor.
virtual void setForwardSolutionHistory(const Teuchos::RCP< const Tempus::SolutionHistory< Scalar > > &sh)
Set solution history from forward state evaluation (for interpolation)
virtual void setForwardSolutionState(const Teuchos::RCP< const Tempus::SolutionState< Scalar > > &s)
Set solution state from forward state evaluation (for frozen state)
SolutionHistory is basically a container of SolutionStates. SolutionHistory maintains a collection of...
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > getIMEXVector(const Teuchos::RCP< Thyra::VectorBase< Scalar > > &full) const
Extract IMEX vector from a full solution vector.
void buildIMEXStates() const
Build implicit x and end explicit y states from forward_state_.
Teuchos::RCP< const WrapperModelEvaluatorPairPartIMEX_Basic< Scalar > > forwardModel_
Transform a ModelEvaluator&#39;s sensitivity equations to its residual.
A ModelEvaluator decorator for sensitivity analysis.
Solution state for integrators and steppers.
Specialization of IMEX-Part ME for &quot;combined&quot; FSA method.