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"
76template<
typename EvalT,
typename Traits,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
89template<
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_;
144template<
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_;
197template<
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_;
248 Kokkos::View<typename Sacado::ScalarType<ScalarT>::type**, Kokkos::LayoutRight, PHX::Device>
scratch_vals_;
258#ifdef Panzer_BUILD_HESSIAN_SUPPORT
Non-templated empty base class for template managers.
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
panzer::Traits::Jacobian::ScalarT ScalarT
std::string globalDataKey_
std::vector< PHX::View< int * > > scratch_offsets_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
int other_derivative_size_
Kokkos::View< typename Sacado::ScalarType< ScalarT >::type **, Kokkos::LayoutRight, PHX::Device > scratch_vals_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Kokkos::View< LO **, Kokkos::LayoutRight, PHX::Device > scratch_lids_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::ParameterList &pl)
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
std::vector< int > fieldIds_
panzer::Traits::Residual::ScalarT ScalarT
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
std::string globalDataKey_
PHX::View< int ** > scratch_lids_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
std::vector< PHX::View< int * > > scratch_offsets_
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
std::vector< int > fieldIds_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< int > fieldIds_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
panzer::Traits::Tangent::ScalarT ScalarT
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
ScatterResidual_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
std::string globalDataKey_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
std::vector< Teuchos::ArrayRCP< double > > dfdp_vectors_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Pushes residual values into the residual vector for a Newton-based solve.