10 #ifndef Tempus_ModelEvaluatorPairPartIMEX_Basic_decl_hpp
11 #define Tempus_ModelEvaluatorPairPartIMEX_Basic_decl_hpp
13 #include "Tempus_config.hpp"
15 #include "Thyra_StateFuncModelEvaluatorBase.hpp"
37 template <
typename Scalar>
49 int numExplicitOnlyBlocks = 0,
int parameterIndex = -1);
82 const int index = -1 )
90 if (y != Teuchos::null) inArgs.set_p(index, y);
91 if (inArgs.supports(MEB::IN_ARG_x_dot)) inArgs.set_x_dot(xDot);
92 if (inArgs.supports(MEB::IN_ARG_t)) inArgs.set_t(time);
93 if (inArgs.supports(MEB::IN_ARG_step_size))
94 inArgs.set_step_size(p->timeStepSize_);
95 if (inArgs.supports(MEB::IN_ARG_alpha)) inArgs.set_alpha(p->alpha_);
96 if (inArgs.supports(MEB::IN_ARG_beta)) inArgs.set_beta(p->beta_);
97 if (inArgs.supports(MEB::IN_ARG_stage_number))
98 inArgs.set_stage_number(p->stageNumber_);
209 int numExplicitOnlyBlocks = 0,
int parameterIndex = -1);
225 #endif // Tempus_ModelEvaluatorPairPartIMEX_Basic_decl_hpp
virtual ModelEvaluatorBase::OutArgs< Scalar > createOutArgs() const =0
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getAppModel() const
Get the underlying application ModelEvaluator.
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_g_space(int i) const
Get the g space.
virtual void setExplicitModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model)
Thyra::ModelEvaluatorBase::OutArgs< Scalar > wrapperImplicitOutArgs_
virtual int getParameterIndex() const
Get the parameter index for explicit-only vector.
Teuchos::RCP< TimeDerivative< Scalar > > timeDer_
ModelEvaluator pair for implicit and explicit (IMEX) evaluations.
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > getInArgs()
Get InArgs the wrapper ModelEvalutor.
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 Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
virtual void setParameterIndex(int parameterIndex=-1)
Set the parameter index for explicit-only vector.
virtual Thyra::ModelEvaluatorBase::OutArgs< Scalar > getOutArgs()
Get OutArgs the wrapper ModelEvalutor.
virtual void initialize()
Initialize after setting member data.
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > implicitModel_
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_x_space() const
Get the x-solution space.
ModelEvaluator pair for implicit and explicit (IMEX) evaulations.
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getImplicitModel() const
virtual void setNumExplicitOnlyBlocks(int numExp)
virtual void setUseImplicitModel(bool tf)
virtual ~WrapperModelEvaluatorPairPartIMEX_Basic()
Destructor.
virtual Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
int parameterIndex_
implicit parameter index for explicit-only vector
bool useImplicitModel_
if true, use implicitModel_ else explicitModel_
void setup(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &explicitModel, const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &implicitModel, int numExplicitOnlyBlocks=0, int parameterIndex=-1)
Setup ME when using default constructor – for derived classes.
virtual Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgsImpl() const
virtual void setImplicitModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &model)
Thyra::ModelEvaluatorBase::InArgs< Scalar > wrapperImplicitInArgs_
Teuchos::RCP< const Thyra::LinearOpWithSolveFactoryBase< Scalar > > get_W_factory() const
virtual void setAppModel(const Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > &me)
Set the underlying application ModelEvaluator.
virtual Teuchos::RCP< Thyra::LinearOpBase< Scalar > > create_W_op() const
int numExplicitOnlyBlocks_
virtual Teuchos::RCP< Thyra::VectorBase< Scalar > > getIMEXVector(const Teuchos::RCP< Thyra::VectorBase< Scalar > > &full) const
Extract IMEX vector from a full solution vector.
WrapperModelEvaluatorPairPartIMEX_Basic()
virtual Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > getExplicitModel() const
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_f_space() const
virtual Teuchos::RCP< const Thyra::VectorSpaceBase< Scalar > > get_p_space(int i) const
Get the p space.
virtual bool getUseImplicitModel() const
virtual void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &in, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &out) const
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.
virtual int getNumExplicitOnlyBlocks() const
Teuchos::RCP< const Thyra::ModelEvaluator< Scalar > > explicitModel_