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" 50 #include "Teuchos_ParameterList.hpp" 52 #include "PanzerDiscFE_config.hpp" 76 template<
typename EvalT,
typename Traits,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
89 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
92 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
97 : globalIndexer_(indexer) {}
100 const Teuchos::ParameterList& p);
102 void postRegistrationSetup(
typename TRAITS::SetupData d,
105 void preEvaluate(
typename TRAITS::PreEvalData d);
107 void evaluateFields(
typename TRAITS::EvalData workset);
109 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const 130 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
144 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
147 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
152 : globalIndexer_(indexer) {}
155 const Teuchos::ParameterList& p);
157 void postRegistrationSetup(
typename TRAITS::SetupData d,
160 void preEvaluate(
typename TRAITS::PreEvalData d);
162 void evaluateFields(
typename TRAITS::EvalData workset);
164 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const 185 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
197 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
200 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
206 : globalIndexer_(indexer) {}
209 const Teuchos::ParameterList& pl);
211 void postRegistrationSetup(
typename TRAITS::SetupData d,
214 void preEvaluate(
typename TRAITS::PreEvalData d);
216 void evaluateFields(
typename TRAITS::EvalData workset);
218 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const 240 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
254 #ifdef Panzer_BUILD_HESSIAN_SUPPORT panzer::Traits::Tangent::ScalarT ScalarT
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
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::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_
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::GlobalIndexer > &indexer)
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
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_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Kokkos::View< int **, PHX::Device > scratch_lids_
Non-templated empty base class for template managers.
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_