43 #ifndef PANZER_EVALUATOR_GATHER_SOLUTION_TPETRA_DECL_HPP
44 #define PANZER_EVALUATOR_GATHER_SOLUTION_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;
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>,
99 globalIndexer_(indexer) {}
104 void postRegistrationSetup(
typename TRAITS::SetupData d,
107 void preEvaluate(
typename TRAITS::PreEvalData d);
109 void evaluateFields(
typename TRAITS::EvalData d);
116 {
TEUCHOS_ASSERT(i < Teuchos::as<int>(gatherFields_.size()));
return gatherFields_[i].fieldTag(); }
141 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
152 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
155 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
162 globalIndexer_(indexer) {}
167 void postRegistrationSetup(
typename TRAITS::SetupData d,
170 void preEvaluate(
typename TRAITS::PreEvalData d);
172 void evaluateFields(
typename TRAITS::EvalData d);
198 std::vector< std::vector< PHX::MDField<const RealT,Cell,NODE> > >
tangentFields_;
206 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
209 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
214 globalIndexer_(indexer) {}
219 void postRegistrationSetup(
typename TRAITS::SetupData d,
222 void preEvaluate(
typename TRAITS::PreEvalData d);
224 void evaluateFields(
typename TRAITS::EvalData d);
229 KOKKOS_INLINE_FUNCTION
230 void operator()(
const int cell)
const;
235 KOKKOS_INLINE_FUNCTION
236 void operator()(
const NoSeed,
const int cell)
const;
272 Kokkos::View<const LO**,PHX::Device>
lids;
274 Kokkos::View<const double**, Kokkos::LayoutLeft,PHX::Device>
x_data;
278 PHX::MDField<ScalarT,Cell,NODE>
field;
284 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
bool useTimeDerivativeSolutionVector_
Kokkos::View< int **, PHX::Device > scratch_lids_
panzer::Traits::Jacobian EvalT
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
std::vector< std::string > indexerNames_
PHX::MDField< ScalarT, Cell, NODE > field
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
panzer::Traits::RealType RealT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::string globalDataKey_
Teuchos::RCP< typename TpetraLinearObjContainer< double, LO, GO, NodeT >::VectorType > x_vector
bool useTimeDerivativeSolutionVector_
std::vector< std::string > indexerNames_
panzer::Traits::Jacobian::ScalarT ScalarT
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer)
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer)
std::vector< int > fieldIds_
Kokkos::View< const LO **, PHX::Device > lids
std::string globalDataKey_
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
bool useTimeDerivativeSolutionVector_
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
panzer::Traits::Tangent EvalT
bool disableSensitivities_
std::vector< int > fieldIds_
const PHX::FieldTag & getFieldTag(int i) const
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
Gathers solution values from the Newton solution vector into the nodal fields of the field manager...
Kokkos::View< int **, PHX::Device > scratch_lids_
Kokkos::View< const double **, Kokkos::LayoutLeft, PHX::Device > x_data
std::vector< int > fieldIds_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
panzer::Traits::Residual::ScalarT ScalarT
std::string globalDataKey_
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
std::vector< std::string > indexerNames_
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer)
std::vector< Kokkos::View< int *, PHX::Device > > scratch_offsets_
panzer::Traits::Tangent::ScalarT ScalarT
Kokkos::View< const int *, PHX::Device > offsets
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
panzer::Traits::Residual EvalT
std::vector< Kokkos::View< int *, PHX::Device > > scratch_offsets_
#define TEUCHOS_ASSERT(assertion_test)
std::string sensitivitiesName_
Non-templated empty base class for template managers.
std::vector< std::vector< PHX::MDField< const RealT, Cell, NODE > > > tangentFields_