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>
64 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
67 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
77 template <
typename EvalT,
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
80 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
98 { std::cout <<
"unspecialized version of \"GatherSolution_BlockedTpetra::evaluateFields\" on \""+PHX::typeAsString<EvalT>()+
"\" should not be used!" << std::endl;
112 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
115 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
122 : globalIndexer_(indexer) {}
130 void preEvaluate(
typename TRAITS::PreEvalData d);
177 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
191 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
194 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
201 : gidIndexer_(indexer) {}
209 void preEvaluate(
typename TRAITS::PreEvalData d);
246 std::vector< std::vector< PHX::MDField<const ScalarT,Cell,NODE> > >
tangentFields_;
254 template <
typename TRAITS,
typename S,
typename LO,
typename GO,
typename NodeT>
257 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
262 : globalIndexer_(indexer) {}
270 void preEvaluate(
typename TRAITS::PreEvalData d);
325 #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< LO, GO > > &indexer)
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_
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
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
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Tpetra::Export< LO, GO, NodeT > ExportType
std::string globalDataKey_
std::vector< std::vector< PHX::MDField< const ScalarT, Cell, NODE > > > tangentFields_
Teuchos::RCP< const BlockedDOFManager< LO, GO > > globalIndexer_
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
std::vector< Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > > fieldGlobalIndexers_
Vector of global indexers, one for each field to gather, respectively.
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
Teuchos::RCP< const BlockedDOFManager< LO, GO > > globalIndexer_
Maps the local (field,element,basis) triplet to a global ID for.
Teuchos::RCP< const BlockedTpetraLinearObjContainer< S, LO, GO, NodeT > > blockedContainer_
GatherSolution_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
Tpetra::CrsMatrix< S, LO, GO, NodeT > CrsMatrixType
std::string globalDataKey_
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
Teuchos::RCP< const BlockedDOFManager< LO, GO > > gidIndexer_
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.
std::vector< int > fieldIds_
panzer::Traits::Residual::ScalarT ScalarT