43 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_TPETRA_DECL_HPP
44 #define PANZER_EVALUATOR_SCATTER_RESIDUAL_TPETRA_DECL_HPP
46 #include "Phalanx_config.hpp"
47 #include "Phalanx_Evaluator_Macros.hpp"
48 #include "Phalanx_MDField.hpp"
52 #include "PanzerDiscFE_config.hpp"
66 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
67 class UniqueGlobalIndexer;
77 template<
typename EvalT,
typename Traits,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
90 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
93 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
98 : globalIndexer_(indexer) {}
103 void postRegistrationSetup(
typename TRAITS::SetupData d,
106 void preEvaluate(
typename TRAITS::PreEvalData d);
108 void evaluateFields(
typename TRAITS::EvalData workset);
145 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
148 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
153 : globalIndexer_(indexer) {}
158 void postRegistrationSetup(
typename TRAITS::SetupData d,
161 void preEvaluate(
typename TRAITS::PreEvalData d);
163 void evaluateFields(
typename TRAITS::EvalData workset);
198 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
201 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
207 : globalIndexer_(indexer) {}
212 void postRegistrationSetup(
typename TRAITS::SetupData d,
215 void preEvaluate(
typename TRAITS::PreEvalData d);
217 void evaluateFields(
typename TRAITS::EvalData workset);
255 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
panzer::Traits::Tangent::ScalarT ScalarT
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
std::vector< int > fieldIds_
std::vector< Kokkos::View< int *, PHX::Device > > scratch_offsets_
std::string globalDataKey_
panzer::Traits::Residual::ScalarT ScalarT
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
Kokkos::View< int **, PHX::Device > scratch_lids_
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer)
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::vector< int > fieldIds_
std::vector< Teuchos::ArrayRCP< double > > dfdp_vectors_
std::string globalDataKey_
std::string globalDataKey_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< Kokkos::View< int *, PHX::Device > > scratch_offsets_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer)
Pushes residual values into the residual vector for a Newton-based solve.
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
panzer::Traits::Jacobian::ScalarT ScalarT
std::vector< int > fieldIds_
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer)
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Kokkos::View< int **, PHX::Device > scratch_lids_
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
Non-templated empty base class for template managers.
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_