44 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_EPETRA_SG_DECL_HPP
45 #define PANZER_EVALUATOR_SCATTER_RESIDUAL_EPETRA_SG_DECL_HPP
56 template<
typename TRAITS,
typename LO,
typename GO>
59 public PHX::EvaluatorDerived<panzer::Traits::SGResidual, TRAITS>,
65 bool useDiscreteAdjoint=
false)
66 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
73 void postRegistrationSetup(
typename TRAITS::SetupData d,
76 void preEvaluate(
typename TRAITS::PreEvalData d);
78 void evaluateFields(
typename TRAITS::EvalData workset);
112 template<
typename TRAITS,
typename LO,
typename GO>
115 public PHX::EvaluatorDerived<panzer::Traits::SGJacobian, TRAITS>,
122 bool useDiscreteAdjoint=
false)
123 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
130 void postRegistrationSetup(
typename TRAITS::SetupData d,
133 void preEvaluate(
typename TRAITS::PreEvalData d);
135 void evaluateFields(
typename TRAITS::EvalData workset);
std::vector< int > fieldIds_
panzer::Traits::SGResidual::ScalarT ScalarT
std::vector< PHX::MDField< ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< SGEpetraLinearObjContainer > sgEpetraContainer_
panzer::Traits::SGJacobian::ScalarT ScalarT
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer, const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &cIndexer, bool useDiscreteAdjoint=false)
std::string globalDataKey_
std::vector< int > fieldIds_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< SGEpetraLinearObjContainer > sgEpetraContainer_
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::string globalDataKey_
Pushes residual values into the residual vector for a Newton-based solve.
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer, const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &cIndexer, bool useDiscreteAdjoint=false)
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< PHX::MDField< ScalarT, Cell, NODE > > scatterFields_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Non-templated empty base class for template managers.
Teuchos::RCP< PHX::FieldTag > scatterHolder_