9 #ifndef TEMPUS_TEST_STEADY_QUADRATIC_MODEL_DECL_HPP
10 #define TEMPUS_TEST_STEADY_QUADRATIC_MODEL_DECL_HPP
12 #include "Thyra_ModelEvaluator.hpp"
13 #include "Thyra_StateFuncModelEvaluatorBase.hpp"
15 #include "Teuchos_ParameterListAcceptorDefaultBase.hpp"
16 #include "Teuchos_ParameterList.hpp"
18 namespace Tempus_Test {
30 template<
class Scalar>
32 :
public Thyra::StateFuncModelEvaluatorBase<Scalar>,
33 public Teuchos::ParameterListAcceptorDefaultBase
49 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_x_space()
const;
50 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_f_space()
const;
52 Teuchos::RCP<Thyra::LinearOpWithSolveBase<Scalar> >
create_W()
const;
53 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_W_op()
const;
54 Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >
get_W_factory()
const;
55 Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
57 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_p_space(
int l)
const;
58 Teuchos::RCP<const Teuchos::Array<std::string> >
get_p_names(
int l)
const;
59 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_g_space(
int j)
const;
65 void setParameterList(Teuchos::RCP<Teuchos::ParameterList>
const& paramList);
77 const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs_bar,
78 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs_bar
90 mutable Thyra::ModelEvaluatorBase::InArgs<Scalar>
inArgs_;
91 mutable Thyra::ModelEvaluatorBase::OutArgs<Scalar>
outArgs_;
93 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
x_space_;
94 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
f_space_;
95 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
p_space_;
96 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
g_space_;
97 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
DxDp_space_;
105 #endif // TEMPUS_TEST_STEADY_QUADRATIC_MODEL_DECL_HPP
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs_bar, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs_bar) const
int ng_
Number of elements in this observation function (1)
int Ng_
Number of observation functions (1)
Scalar getSteadyStateSolution() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > x_space_
Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs_
Scalar b_
Model parameter.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > g_space_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int l) const
int np_
Number of parameters in this vector (2)
Thyra::ModelEvaluatorBase::InArgs< Scalar > nominalValues_
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
bool useDfDpAsTangent_
Treat DfDp OutArg as tangent (df/dx*dx/dp+df/dp)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int j) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > p_space_
int Np_
Number of parameter vectors (1)
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int l) const
void setParameterList(Teuchos::RCP< Teuchos::ParameterList > const ¶mList)
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > f_space_
Teuchos::RCP< Thyra::LinearOpWithSolveBase< Scalar > > create_W() const
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs_
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
Simple quadratic equation with a stable steady-state. This is a simple differential equation which h...
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > DxDp_space_
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
void setupInOutArgs_() const
SteadyQuadraticModel(Teuchos::RCP< Teuchos::ParameterList > pList=Teuchos::null)
int dim_
Number of state unknowns (2)
Scalar getSteadyStateSolutionSensitivity() const