11 #ifndef PANZER_EXPLICIT_MODEL_EVALUATOR_HPP
12 #define PANZER_EXPLICIT_MODEL_EVALUATOR_HPP
14 #include "PanzerDiscFE_config.hpp"
16 #include "Thyra_ModelEvaluatorDelegatorBase.hpp"
17 #include "Thyra_BlockedLinearOpBase.hpp"
21 #ifdef PANZER_HAVE_EPETRA_STACK
34 template<
typename Scalar>
36 :
public Thyra::ModelEvaluatorDelegatorBase<Scalar>,
47 bool constantMassMatrix,
49 bool applyMassInverse=
true);
57 Thyra::ModelEvaluatorBase::InArgs<Scalar>
createInArgs()
const;
60 Thyra::ModelEvaluatorBase::OutArgs<Scalar>
createOutArgs()
const;
72 Thyra::apply(*
mass_,Thyra::NOTRANS,*input,output.
ptr());
84 #ifdef PANZER_HAVE_EPETRA_STACK
85 if(panzerEpetraModel_!=Teuchos::null) { panzerEpetraModel_->applyDirichletBCs(x,f);
return; }
103 void evalModelImpl(
const Thyra::ModelEvaluatorBase::InArgs<Scalar> &inArgs,
104 const Thyra::ModelEvaluatorBase::OutArgs<Scalar> &outArgs)
const;
126 #ifdef PANZER_HAVE_EPETRA_STACK
virtual void applyInverseMassMatrix(const Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > input, const Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > output) const
Thyra::ModelEvaluatorBase::OutArgs< Scalar > prototypeOutArgs_
Thyra::ModelEvaluatorBase::InArgs< Scalar > createInArgs() const
Build the in args, modifies the underlying models in args slightly.
void buildArgsPrototypes()
Build prototype in/out args.
Thyra::ModelEvaluatorBase::InArgs< Scalar > prototypeInArgs_
Teuchos::RCP< const Thyra::LinearOpBase< Scalar > > invMassMatrix_
Teuchos::RCP< Thyra::LinearOpBase< Scalar > > mass_
Teuchos::RCP< panzer::ModelEvaluator< Scalar > > getPanzerUnderlyingModel()
Get the underlying panzer::ModelEvaluator.
Teuchos::RCP< Thyra::VectorBase< Scalar > > scrap_f_
void evalModelImpl(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs, const Thyra::ModelEvaluatorBase::OutArgs< Scalar > &outArgs) const
Evaluation of model, applies the mass matrix to the RHS.
Teuchos::RCP< Thyra::VectorBase< Scalar > > zero_
Thyra::ModelEvaluatorBase::InArgs< Scalar > getNominalValues() const
Build the nominal values, modifies the underlying models in args slightly.
void setOneTimeDirichletBeta(double beta, const Thyra::ModelEvaluator< Scalar > &me) const
Teuchos::RCP< const panzer::ModelEvaluator< Scalar > > panzerModel_
Access to the panzer model evaluator pointer (thyra version)
Thyra::ModelEvaluatorBase::OutArgs< Scalar > createOutArgs() const
Build the out args, modifies the underlying models in args slightly.
bool constantMassMatrix_
Is the mass matrix constant.
void applyDirichletBCs(const Teuchos::RCP< Thyra::VectorBase< Scalar > > &x, const Teuchos::RCP< Thyra::VectorBase< Scalar > > &f) const
#define TEUCHOS_ASSERT(assertion_test)
void buildInverseMassMatrix(const Thyra::ModelEvaluatorBase::InArgs< Scalar > &inArgs) const
bool massLumping_
Use mass lumping, or a full solve.
virtual void applyMassMatrix(const Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > input, const Teuchos::RCP< Thyra::MultiVectorBase< Scalar > > output) const