10 #ifndef Tempus_WrapperModelEvaluatorBasic_decl_hpp
11 #define Tempus_WrapperModelEvaluatorBasic_decl_hpp
14 #include "Tempus_config.hpp"
26 template <
typename Scalar>
35 using Teuchos::rcp_const_cast;
41 MEB::InArgs<Scalar> inArgs =
appModel_->getNominalValues();
44 if (inArgs.supports(MEB::IN_ARG_x_dot)) {
48 xDot_ = Teuchos::null;
71 const int index = -1 )
180 #endif // Tempus_WrapperModelEvaluatorBasic_decl_hpp
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int p) const
Teuchos::RCP< Thyra::VectorBase< Scalar > > xDot_
EVALUATION_TYPE
EVALUATION_TYPE indicates the evaluation to apply to the implicit ODE.
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getAppModel() const
Get the underlying application model 'f'.
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Teuchos::RCP< ImplicitODEParameters< Scalar > > p_
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_DfDp_op(int l) const
Teuchos::RCP< TimeDerivative< Scalar > > timeDer_
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > appModel_
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
A ModelEvaluator which wraps the application ModelEvaluator.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int i) const
Get the g space.
Teuchos::RCP< Thyra::VectorBase< Scalar > > y_
void setForSolve(const Teuchos::RCP< Thyra::VectorBase< Scalar >> &x, const Teuchos::RCP< Thyra::VectorBase< Scalar >> &xDot, const Scalar time, const Teuchos::RCP< ImplicitODEParameters< Scalar >> &p, const Teuchos::RCP< Thyra::VectorBase< Scalar >> &y=Teuchos::null, const int index=-1)
Set parameters for application implicit ModelEvaluator solve.
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_DgDp_op(int j, int l) const
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
Teuchos::RCP< Thyra::PreconditionerBase< Scalar > > create_W_prec() const
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_DgDx_op(int j) const
EVALUATION_TYPE evaluationType_
Teuchos::ArrayView< const std::string > get_g_names(int g) const
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
WrapperModelEvaluatorBasic()
Default constructor - not allowed.
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Get the x-solution space.
Teuchos::RCP< Thyra::VectorBase< Scalar > > x_
virtual void setAppModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar >> &me)
Set the underlying application ModelEvaluator.
A ModelEvaluator for residual evaluations given a state. This ModelEvaluator takes a state...
Solve for x and determine xDot from x.
WrapperModelEvaluatorBasic(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar >> &appModel)
Constructor.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int p) const
Get the p space.
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const