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"
50 #include "Teuchos_ParameterList.hpp"
52 #include "PanzerDiscFE_config.hpp"
75 template<
typename EvalT,
typename Traits,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
88 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
91 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
98 globalIndexer_(indexer) {}
101 const Teuchos::ParameterList& p);
103 void postRegistrationSetup(
typename TRAITS::SetupData d,
106 void preEvaluate(
typename TRAITS::PreEvalData d);
108 void evaluateFields(
typename TRAITS::EvalData d);
110 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
115 { TEUCHOS_ASSERT(i < Teuchos::as<int>(gatherFields_.size()));
return gatherFields_[i].fieldTag(); }
140 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
151 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
154 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
161 globalIndexer_(indexer) {}
164 const Teuchos::ParameterList& p);
166 void postRegistrationSetup(
typename TRAITS::SetupData d,
169 void preEvaluate(
typename TRAITS::PreEvalData d);
171 void evaluateFields(
typename TRAITS::EvalData d);
173 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
197 std::vector< std::vector< PHX::MDField<const RealT,Cell,NODE> > >
tangentFields_;
205 template<
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
208 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
213 globalIndexer_(indexer) {}
216 const Teuchos::ParameterList& p);
218 void postRegistrationSetup(
typename TRAITS::SetupData d,
221 void preEvaluate(
typename TRAITS::PreEvalData d);
223 void evaluateFields(
typename TRAITS::EvalData d);
225 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
228 KOKKOS_INLINE_FUNCTION
229 void operator()(
const int cell)
const;
234 KOKKOS_INLINE_FUNCTION
235 void operator()(
const NoSeed,
const int cell)
const;
261 Teuchos::RCP<typename TpetraLinearObjContainer<double,LO,GO,NodeT>::VectorType>
x_vector;
271 Kokkos::View<const LO**,PHX::Device>
lids;
273 Kokkos::View<const double**, Kokkos::LayoutLeft,PHX::Device>
x_data;
277 PHX::MDField<ScalarT,Cell,NODE>
field;
283 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
Non-templated empty base class for template managers.
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Kokkos::View< const LO **, PHX::Device > lids
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
std::vector< Kokkos::View< int *, PHX::Device > > scratch_offsets_
bool useTimeDerivativeSolutionVector_
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
std::string sensitivitiesName_
Kokkos::View< const int *, PHX::Device > offsets
std::vector< int > fieldIds_
std::string globalDataKey_
panzer::Traits::Jacobian::ScalarT ScalarT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Kokkos::View< int **, PHX::Device > scratch_lids_
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
std::vector< std::string > indexerNames_
panzer::Traits::Jacobian EvalT
Kokkos::View< const double **, Kokkos::LayoutLeft, PHX::Device > x_data
PHX::MDField< ScalarT, Cell, NODE > field
bool disableSensitivities_
Teuchos::RCP< typename TpetraLinearObjContainer< double, LO, GO, NodeT >::VectorType > x_vector
bool useTimeDerivativeSolutionVector_
std::vector< Kokkos::View< int *, PHX::Device > > scratch_offsets_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
std::vector< int > fieldIds_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
panzer::Traits::Residual EvalT
panzer::Traits::Residual::ScalarT ScalarT
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
std::vector< std::string > indexerNames_
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
const PHX::FieldTag & getFieldTag(int i) const
std::string globalDataKey_
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
Kokkos::View< int **, PHX::Device > scratch_lids_
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
std::vector< std::string > indexerNames_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< int > fieldIds_
Teuchos::RCP< const TpetraLinearObjContainer< double, LO, GO, NodeT > > tpetraContainer_
panzer::Traits::RealType RealT
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
bool useTimeDerivativeSolutionVector_
panzer::Traits::Tangent EvalT
std::string globalDataKey_
std::vector< std::vector< PHX::MDField< const RealT, Cell, NODE > > > tangentFields_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
GatherSolution_Tpetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer)
panzer::Traits::Tangent::ScalarT ScalarT
Gathers solution values from the Newton solution vector into the nodal fields of the field manager.