9 #ifndef Tempus_WrapperModelEvaluatorBasic_decl_hpp
10 #define Tempus_WrapperModelEvaluatorBasic_decl_hpp
25 template <
typename Scalar>
33 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& appModel)
42 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> > & me)
46 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
50 virtual void setInArgs(Thyra::ModelEvaluatorBase::InArgs<Scalar> inArgs)
54 virtual Thyra::ModelEvaluatorBase::InArgs<Scalar>
getInArgs()
58 virtual void setOutArgs(Thyra::ModelEvaluatorBase::OutArgs<Scalar> outArgs)
62 virtual Thyra::ModelEvaluatorBase::OutArgs<Scalar>
getOutArgs()
67 Thyra::ModelEvaluatorBase::InArgs<Scalar> inArgs,
68 Thyra::ModelEvaluatorBase::OutArgs<Scalar> outArgs,
79 Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_W_op()
const
85 Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >
88 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_f_space()
const
91 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_p_space(
int p)
const
94 Teuchos::RCP<const Teuchos::Array<std::string> >
get_p_names(
int p)
const
97 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_x_space()
const
100 Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
get_g_space(
int i)
const
104 {
return appModel_->getNominalValues(); }
106 Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
110 const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs,
111 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs)
const;
119 Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
appModel_;
128 #endif // Tempus_WrapperModelEvaluatorBasic_decl_hpp
Teuchos::RCP< const Teuchos::Array< std::string > > get_p_names(int p) const
virtual void setInArgs(Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs)
Set InArgs the wrapper ModelEvalutor.
EVALUATION_TYPE
EVALUATION_TYPE indicates the evaluation to apply to the implicit ODE.
Thyra::ModelEvaluatorBase::InArgs< Scalar > wrapperInArgs_
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getAppModel() const
Get the underlying application model 'f'.
virtual void setOutArgs(Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs)
Set OutArgs the wrapper ModelEvalutor.
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Teuchos::RCP< TimeDerivative< Scalar > > timeDer_
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > appModel_
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > getInArgs()
Get InArgs the wrapper ModelEvalutor.
virtual void setForSolve(Teuchos::RCP< TimeDerivative< Scalar > > timeDer, Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs, Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs, EVALUATION_TYPE evaluationType=SOLVE_FOR_X)
Set parameters for application implicit ModelEvaluator solve.
A ModelEvaluator which wraps the application ModelEvaluator.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int i) const
Get the g space.
virtual void setAppModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &me)
Set the underlying application ModelEvaluator.
WrapperModelEvaluatorBasic(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &appModel)
Constructor.
virtual Thyra::ModelEvaluatorBase::OutArgs< Scalar > getOutArgs()
Get OutArgs the wrapper ModelEvalutor.
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
Teuchos::RCP< Thyra::PreconditionerBase< Scalar > > create_W_prec() const
This interface defines the time derivative connection between an implicit Stepper and WrapperModelEva...
EVALUATION_TYPE evaluationType_
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
Thyra::ModelEvaluatorBase::OutArgs< Scalar > wrapperOutArgs_
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Get the x-solution space.
A ModelEvaluator for residual evaluations given a state. This ModelEvaluator takes a state...
Solve for x and determine xDot from x.
Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int p) const
Get the p space.
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const