43 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_EPETRA_DECL_HPP
44 #define PANZER_EVALUATOR_SCATTER_RESIDUAL_EPETRA_DECL_HPP
46 #include "Phalanx_config.hpp"
47 #include "Phalanx_Evaluator_Macros.hpp"
48 #include "Phalanx_MDField.hpp"
52 #include "PanzerDiscFE_config.hpp"
63 class EpetraLinearObjContainer;
65 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
66 class UniqueGlobalIndexer;
97 template<
typename TRAITS,
typename LO,
typename GO>
100 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
106 bool useDiscreteAdjoint=
false)
107 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
113 void postRegistrationSetup(
typename TRAITS::SetupData d,
116 void preEvaluate(
typename TRAITS::PreEvalData d);
118 void evaluateFields(
typename TRAITS::EvalData workset);
153 template<
typename TRAITS,
typename LO,
typename GO>
156 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
162 bool useDiscreteAdjoint=
false)
163 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
169 void postRegistrationSetup(
typename TRAITS::SetupData d,
172 void preEvaluate(
typename TRAITS::PreEvalData d);
174 void evaluateFields(
typename TRAITS::EvalData workset);
207 template<
typename TRAITS,
typename LO,
typename GO>
210 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
217 bool useDiscreteAdjoint=
false)
218 : globalIndexer_(indexer), colGlobalIndexer_(cIndexer), useDiscreteAdjoint_(useDiscreteAdjoint) {}
224 void postRegistrationSetup(
typename TRAITS::SetupData d,
227 void preEvaluate(
typename TRAITS::PreEvalData d);
229 void evaluateFields(
typename TRAITS::EvalData workset);
268 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
std::vector< int > fieldIds_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
std::string globalDataKey_
std::vector< int > fieldIds_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer, const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &, bool useDiscreteAdjoint=false)
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const EpetraLinearObjContainer > epetraContainer_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer, const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &, bool useDiscreteAdjoint=false)
Teuchos::RCP< PHX::FieldTag > scatterHolder_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
panzer::Traits::Tangent::ScalarT ScalarT
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
panzer::Traits::Residual::ScalarT ScalarT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Pushes residual values into the residual vector for a Newton-based solve.
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
std::vector< int > fieldIds_
std::string globalDataKey_
panzer::Traits::Jacobian::ScalarT ScalarT
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer, const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &cIndexer=Teuchos::null, bool useDiscreteAdjoint=false)
Teuchos::RCP< const EpetraLinearObjContainer > epetraContainer_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
std::vector< Teuchos::RCP< Epetra_Vector > > dfdp_vectors_
Non-templated empty base class for template managers.
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_