43 #ifndef PANZER_EVALUATOR_GATHER_SOLUTION_BLOCKEDTPETRA_DECL_HPP
44 #define PANZER_EVALUATOR_GATHER_SOLUTION_BLOCKEDTPETRA_DECL_HPP
46 #include "Phalanx_config.hpp"
47 #include "Phalanx_Evaluator_Macros.hpp"
48 #include "Phalanx_MDField.hpp"
52 #include "PanzerDiscFE_config.hpp"
61 template <
typename ScalarT,
typename LocalOrdinalT,
typename GlobalOrdinalT,
typename NodeT>
74 template <
typename EvalT,
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
77 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
95 { std::cout <<
"unspecialized version of \"GatherSolution_BlockedTpetra::evaluateFields\" on \""+PHX::print<EvalT>()+
"\" should not be used!" << std::endl;
109 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
112 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
119 : globalIndexer_(indexer) {}
127 void preEvaluate(
typename TRAITS::PreEvalData d);
174 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
188 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
191 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
198 : gidIndexer_(indexer) {}
206 void preEvaluate(
typename TRAITS::PreEvalData d);
243 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
251 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
254 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
259 : globalIndexer_(indexer) {}
267 void preEvaluate(
typename TRAITS::PreEvalData d);
322 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
Tpetra::Import< LO, GO, NodeT > ImportType
Kokkos::View< LO **, PHX::Device > worksetLIDs_
Local indices for unknowns.
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< Teuchos::RCP< const panzer::GlobalIndexer > > fieldGlobalIndexers_
Vector of global indexers, one for each field to gather, respectively.
std::vector< Kokkos::View< int *, PHX::Device > > fieldOffsets_
Offset into the cell lids for each field.
Tpetra::Vector< S, LO, GO, NodeT > VectorType
Tpetra::Export< LO, GO, NodeT > ExportType
bool disableSensitivities_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
Kokkos::View< LO **, PHX::Device > worksetLIDs_
Local indices for unknowns.
Tpetra::Map< LO, GO, NodeT > MapType
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
Tpetra::Vector< S, LO, GO, NodeT > VectorType
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Tpetra::Export< LO, GO, NodeT > ExportType
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::string globalDataKey_
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
std::vector< int > productVectorBlockIndex_
std::vector< std::string > indexerNames_
Gathers solution values from the Newton solution vector into the nodal fields of the field manager...
panzer::Traits::Jacobian::ScalarT ScalarT
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
bool useTimeDerivativeSolutionVector_
panzer::Traits::Residual EvalT
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
TRAITS::RealType RealType
void evaluateFields(typename TRAITS::EvalData d)
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
Tpetra::Import< LO, GO, NodeT > ImportType
std::vector< int > fieldIds_
panzer::Traits::Tangent::ScalarT ScalarT
std::vector< std::string > indexerNames_
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
Tpetra::Export< LO, GO, NodeT > ExportType
Tpetra::Map< LO, GO, NodeT > MapType
bool useTimeDerivativeSolutionVector_
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
std::string globalDataKey_
panzer::Traits::Jacobian EvalT
bool useTimeDerivativeSolutionVector_
BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > ContainerType
panzer::Traits::Tangent EvalT
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
Maps the local (field,element,basis) triplet to a global ID for.
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
std::string globalDataKey_
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< int > productVectorBlockIndex_
#define TEUCHOS_ASSERT(assertion_test)
Tpetra::Vector< S, LO, GO, NodeT > VectorType
std::vector< PHX::MDField< ScalarT, Cell, NODE > > gatherFields_
Tpetra::Map< LO, GO, NodeT > MapType
Kokkos::View< LO *, PHX::Device > blockOffsets_
The offset values of the blocked DOFs per element. Size of number of blocks in the product vector + 1...
std::vector< std::string > indexerNames_
Tpetra::Import< LO, GO, NodeT > ImportType
std::vector< Kokkos::View< int *, PHX::Device > > fieldOffsets_
Offset into the cell lids for each field. Size of number of fields to scatter.
Non-templated empty base class for template managers.
Teuchos::RCP< const BlockedDOFManager > gidIndexer_
std::vector< int > fieldIds_
panzer::Traits::Residual::ScalarT ScalarT