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;
96 template<
typename TRAITS,
typename LO,
typename GO>
99 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
105 bool useDiscreteAdjoint=
false)
106 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
112 void postRegistrationSetup(
typename TRAITS::SetupData d,
115 void preEvaluate(
typename TRAITS::PreEvalData d);
117 void evaluateFields(
typename TRAITS::EvalData workset);
152 template<
typename TRAITS,
typename LO,
typename GO>
155 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
161 bool useDiscreteAdjoint=
false)
162 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
168 void postRegistrationSetup(
typename TRAITS::SetupData d,
171 void preEvaluate(
typename TRAITS::PreEvalData d);
173 void evaluateFields(
typename TRAITS::EvalData workset);
206 template<
typename TRAITS,
typename LO,
typename GO>
209 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
216 bool useDiscreteAdjoint=
false)
217 : globalIndexer_(indexer), colGlobalIndexer_(cIndexer), useDiscreteAdjoint_(useDiscreteAdjoint) {}
223 void postRegistrationSetup(
typename TRAITS::SetupData d,
226 void preEvaluate(
typename TRAITS::PreEvalData d);
228 void evaluateFields(
typename TRAITS::EvalData workset);
267 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
std::vector< int > fieldIds_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
std::string globalDataKey_
std::vector< int > fieldIds_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
Teuchos::RCP< const EpetraLinearObjContainer > epetraContainer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
panzer::Traits::Tangent::ScalarT ScalarT
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.
std::vector< int > fieldIds_
std::string globalDataKey_
panzer::Traits::Jacobian::ScalarT ScalarT
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< const panzer::GlobalIndexer > &, bool useDiscreteAdjoint=false)
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const EpetraLinearObjContainer > epetraContainer_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< const panzer::GlobalIndexer > 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_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< const panzer::GlobalIndexer > &, bool useDiscreteAdjoint=false)
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< const panzer::GlobalIndexer > &cIndexer=Teuchos::null, bool useDiscreteAdjoint=false)