11 #ifndef PANZER_EVALUATOR_GATHER_SOLUTION_TPETRA_DECL_HPP
12 #define PANZER_EVALUATOR_GATHER_SOLUTION_TPETRA_DECL_HPP
14 #include "Phalanx_config.hpp"
15 #include "Phalanx_Evaluator_Macros.hpp"
16 #include "Phalanx_MDField.hpp"
17 #include "Phalanx_KokkosViewOfViews.hpp"
21 #include "PanzerDiscFE_config.hpp"
44 template<
typename EvalT,
typename Traits,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
57 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
67 globalIndexer_(indexer) {}
72 void postRegistrationSetup(
typename TRAITS::SetupData d,
75 void preEvaluate(
typename TRAITS::PreEvalData d);
77 void evaluateFields(
typename TRAITS::EvalData d);
84 {
TEUCHOS_ASSERT(i < Teuchos::as<int>(gatherFields_.size()));
return gatherFields_[i].fieldTag(); }
109 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
120 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
130 globalIndexer_(indexer) {}
135 void postRegistrationSetup(
typename TRAITS::SetupData d,
138 void preEvaluate(
typename TRAITS::PreEvalData d);
140 void evaluateFields(
typename TRAITS::EvalData d);
167 std::vector< std::vector< PHX::MDField<const RealT,Cell,NODE> > >
tangentFields_;
177 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
185 globalIndexer_(indexer) {}
190 void postRegistrationSetup(
typename TRAITS::SetupData d,
193 void preEvaluate(
typename TRAITS::PreEvalData d);
195 void evaluateFields(
typename TRAITS::EvalData d);
200 KOKKOS_INLINE_FUNCTION
201 void operator()(
const int cell)
const;
206 KOKKOS_INLINE_FUNCTION
207 void operator()(
const NoSeed,
const int cell)
const;
256 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
PHX::View< int ** > scratch_lids_
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
std::vector< PHX::View< int * > > scratch_offsets_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
bool useTimeDerivativeSolutionVector_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
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_
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
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
std::vector< PHX::View< int * > > scratch_offsets_
bool useTimeDerivativeSolutionVector_
std::vector< std::string > indexerNames_
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
panzer::Traits::Jacobian::ScalarT ScalarT
std::vector< int > fieldIds_
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
PHX::ViewOfViews< 2, PHX::View< const RealT ** > > tangentFieldsVoV_
bool disableSensitivities_
std::vector< int > fieldIds_
const PHX::FieldTag & getFieldTag(int i) const
Gathers solution values from the Newton solution vector into the nodal fields of the field manager...
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
PHX::View< const int * > offsets
Kokkos::View< const double **, Kokkos::LayoutLeft, PHX::Device > x_data
std::vector< int > fieldIds_
PHX::ViewOfViews< 1, PHX::View< ScalarT ** > > gatherFieldsVoV_
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_
PHX::View< int ** > scratch_lids_
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_
panzer::Traits::Tangent::ScalarT ScalarT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
PHX::View< size_t * > tangentInnerVectorSizes_
panzer::Traits::Residual EvalT
#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_
PHX::View< const LO ** > lids