9 #ifndef Tempus_ModelEvaluatorPairIMEX_Basic_decl_hpp
10 #define Tempus_ModelEvaluatorPairIMEX_Basic_decl_hpp
13 #include "Thyra_StateFuncModelEvaluatorBase.hpp"
37 template <
typename Scalar>
45 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& explicitModel,
46 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& implicitModel)
63 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> > & me);
64 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
68 virtual void setInArgs(Thyra::ModelEvaluatorBase::InArgs<Scalar> inArgs)
72 virtual Thyra::ModelEvaluatorBase::InArgs<Scalar>
getInArgs()
76 virtual void setOutArgs(Thyra::ModelEvaluatorBase::OutArgs<Scalar> outArgs)
80 virtual Thyra::ModelEvaluatorBase::OutArgs<Scalar>
getOutArgs()
85 Thyra::ModelEvaluatorBase::InArgs<Scalar> inArgs,
86 Thyra::ModelEvaluatorBase::OutArgs<Scalar> outArgs,
99 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
103 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
107 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
113 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> > & model )
116 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> > & model )
118 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
120 virtual Teuchos::RCP<const Thyra::ModelEvaluator<Scalar> >
126 virtual Teuchos::RCP<Thyra::LinearOpBase<Scalar> >
create_W_op()
const
129 Teuchos::RCP<const Thyra::LinearOpWithSolveFactoryBase<Scalar> >
132 virtual Teuchos::RCP<const Thyra::VectorSpaceBase<Scalar> >
136 virtual Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
140 const Thyra::ModelEvaluatorBase::InArgs<Scalar> & in,
141 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> & out)
const;
151 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& explicitModel,
152 const Teuchos::RCP<
const Thyra::ModelEvaluator<Scalar> >& implicitModel)
171 #endif // Tempus_ModelEvaluatorPairIMEX_Basic_decl_hpp
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > implicitModel_
WrapperModelEvaluatorPairIMEX_Basic(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &explicitModel, const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &implicitModel)
Constructor.
virtual Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getAppModel() const
Get the underlying application ModelEvaluator.
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > getInArgs()
Get InArgs the wrapper ModelEvalutor.
EVALUATION_TYPE
EVALUATION_TYPE indicates the evaluation to apply to the implicit ODE.
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int i) const
Get the g space.
virtual void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &in, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &out) const
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getExplicitModel() const
virtual void setInArgs(Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs)
Set InArgs the wrapper ModelEvalutor.
ModelEvaluator pair for implicit and explicit (IMEX) evaulations.
virtual void setForSolve(Teuchos::RCP< TimeDerivative< Scalar > > timeDer, Thyra::ModelEvaluatorBase::InArgs< Scalar > inArgs, Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs, EVALUATION_TYPE=SOLVE_FOR_X)
Set parameters for application implicit ModelEvaluator solve.
ModelEvaluator pair for implicit and explicit (IMEX) evaluations.
void setup(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &explicitModel, const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &implicitModel)
Setup ME when using default constructor – for derived classes.
virtual void setImplicitModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model)
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
virtual void initialize()
Initialize after setting member data.
Teuchos::RCP< TimeDerivative< Scalar > > timeDer_
Thyra::ModelEvaluatorBase::InArgs< Scalar > wrapperImplicitInArgs_
virtual Thyra::ModelEvaluatorBase::OutArgs< Scalar > getOutArgs()
Get OutArgs the wrapper ModelEvalutor.
virtual void setExplicitModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model)
virtual void setAppModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &me)
Set the underlying application ModelEvaluator.
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int i) const
Get the p space.
Thyra::ModelEvaluatorBase::OutArgs< Scalar > wrapperImplicitOutArgs_
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
WrapperModelEvaluatorPairIMEX_Basic()
Default constructor – only allowed for derived classes.
virtual ~WrapperModelEvaluatorPairIMEX_Basic()
Destructor.
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getImplicitModel() const
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > explicitModel_
virtual void setOutArgs(Thyra::ModelEvaluatorBase::OutArgs< Scalar > outArgs)
Set OutArgs the wrapper ModelEvalutor.
This interface defines the time derivative connection between an implicit Stepper and WrapperModelEva...
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Get the x-solution space.
Solve for x and determine xDot from x.
virtual Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const