43 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDEPETRA_DECL_HPP
44 #define PANZER_EVALUATOR_SCATTER_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>
class ProductVectorBase;
62 template <
typename>
class BlockedLinearOpBase;
67 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
68 class UniqueGlobalIndexer;
76 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
83 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
89 { std::cout <<
"unspecialized version of \"ScatterResidual_BlockedEpetra::evaluateFields\" on "+PHX::typeAsString<EvalT>()+
" \" should not be used!" << std::endl;
90 TEUCHOS_ASSERT(
false); }
103 template<
typename TRAITS,
typename LO,
typename GO>
106 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
114 : rowIndexers_(rIndexers) {}
118 const Teuchos::ParameterList& p,
119 bool useDiscreteAdjoint=
false);
124 void preEvaluate(
typename TRAITS::PreEvalData d);
128 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
140 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
141 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
150 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
154 Teuchos::RCP<Thyra::ProductVectorBase<double> >
r_;
162 template<
typename TRAITS,
typename LO,
typename GO>
165 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
173 : rowIndexers_(rIndexers) {}
177 const Teuchos::ParameterList& p,
178 bool useDiscreteAdjoint=
false);
183 void preEvaluate(
typename TRAITS::PreEvalData d);
187 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
199 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
200 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
209 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
213 Teuchos::RCP<Thyra::ProductVectorBase<double> >
r_;
222 template<
typename TRAITS,
typename LO,
typename GO>
225 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
252 bool useDiscreteAdjoint=
false)
253 : rowIndexers_(rIndexers), colIndexers_(cIndexers), useDiscreteAdjoint_(useDiscreteAdjoint) {}
257 const Teuchos::ParameterList& p,
258 bool useDiscreteAdjoint=
false);
263 void preEvaluate(
typename TRAITS::PreEvalData d);
267 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
280 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
281 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
290 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
295 Teuchos::RCP<Thyra::ProductVectorBase<double> >
r_;
296 Teuchos::RCP<Thyra::BlockedLinearOpBase<double> >
Jac_;
304 #ifdef Panzer_BUILD_HESSIAN_SUPPORT