43 #ifndef PANZER_EVALUATOR_SCATTER_DIRICHLET_RESIDUAL_BLOCKEDEPETRA_DECL_HPP
44 #define PANZER_EVALUATOR_SCATTER_DIRICHLET_RESIDUAL_BLOCKEDEPETRA_DECL_HPP
46 #include "Phalanx_config.hpp"
47 #include "Phalanx_Evaluator_Macros.hpp"
48 #include "Phalanx_MDField.hpp"
50 #include "Teuchos_ParameterList.hpp"
52 #include "PanzerDiscFE_config.hpp"
61 template <
typename ScalarT>
class ProductVectorBase;
67 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
68 class UniqueGlobalIndexer;
80 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
87 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
93 { std::cout <<
"unspecialized version of \"ScatterDirichletResidual_BlockedEpetra::evaluateFields\" on \""+PHX::typeAsString<EvalT>()+
"\" should not be used!" << std::endl;
94 TEUCHOS_ASSERT(
false); }
107 template<
typename TRAITS,
typename LO,
typename GO>
110 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
117 : rowIndexers_(rIndexers) {}
121 const Teuchos::ParameterList& p,
122 bool useDiscreteAdjoint=
false);
127 void preEvaluate(
typename TRAITS::PreEvalData d);
131 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
143 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
144 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
153 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
161 Teuchos::RCP<Thyra::ProductVectorBase<double> >
r_;
171 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
179 template<
typename TRAITS,
typename LO,
typename GO>
182 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
189 : rowIndexers_(rIndexers) {}
193 const Teuchos::ParameterList& p,
194 bool useDiscreteAdjoint=
false);
199 void preEvaluate(
typename TRAITS::PreEvalData d);
203 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
215 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
216 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
225 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
233 Teuchos::RCP<Thyra::ProductVectorBase<double> >
r_;
243 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
251 template<
typename TRAITS,
typename LO,
typename GO>
254 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
261 : rowIndexers_(rIndexers), colIndexers_(cIndexers) {}
265 const Teuchos::ParameterList& p,
266 bool useDiscreteAdjoint=
false);
268 void preEvaluate(
typename TRAITS::PreEvalData d);
275 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
288 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
289 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
298 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
309 Teuchos::RCP<Thyra::ProductVectorBase<double> >
r_;
310 Teuchos::RCP<Thyra::BlockedLinearOpBase<double> >
Jac_;
316 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
324 #ifdef Panzer_BUILD_HESSIAN_SUPPORT