43 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDTPETRA_DECL_HPP
44 #define PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDTPETRA_DECL_HPP
46 #include "Phalanx_config.hpp"
47 #include "Phalanx_Evaluator_Macros.hpp"
48 #include "Phalanx_MDField.hpp"
52 #include "PanzerDiscFE_config.hpp"
63 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
class BlockedDOFManager;
64 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
class UniqueGlobalIndexer;
70 template <
typename EvalT,
typename TRAITS,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
73 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
89 { std::cout <<
"unspecialized version of \"ScatterResidual_BlockedTpetra::evaluateFields\" on \""+PHX::typeAsString<EvalT>()+
"\" should not be used!" << std::endl;
103 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
106 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
111 : globalIndexer_(indexer) {}
119 void preEvaluate(
typename TRAITS::PreEvalData d);
179 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
182 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
208 : globalIndexer_(indexer) {}
216 void preEvaluate(
typename TRAITS::PreEvalData d);
273 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
Tpetra::Map< LO, GO, NodeT > MapType
Teuchos::RCP< const BlockedDOFManager< LO, GO > > globalIndexer_
Maps the local (field,element,basis) triplet to a global ID for scattering.
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
Dummy evalauted field so that the evaluator will have something to do.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > ContainerType
Pushes residual values into the residual vector for a Newton-based solve.
Tpetra::Import< LO, GO, NodeT > ImportType
std::vector< int > productVectorBlockIndex_
TRAITS::RealType RealType
std::vector< int > productVectorBlockIndex_
TRAITS::RealType RealType
std::vector< Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > > fieldGlobalIndexers_
Vector of global indexers, one for each scattered field respectively.
BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > ContainerType
void postRegistrationSetup(typename TRAITS::SetupData, PHX::FieldManager< TRAITS > &)
Tpetra::Map< LO, GO, NodeT > MapType
std::vector< int > fieldIds_
Tpetra::Export< LO, GO, NodeT > ExportType
Tpetra::Operator< RealType, LO, GO, NodeT > OperatorType
Teuchos::RCP< const BlockedDOFManager< LO, GO > > globalIndexer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
std::vector< Kokkos::View< int *, PHX::Device > > fieldOffsets_
Offset into the cell lids for each field. Size of number of fields to scatter.
Tpetra::Vector< RealType, LO, GO, NodeT > VectorType
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
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...
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::string globalDataKey_
void evaluateFields(typename TRAITS::EvalData)
Kokkos::View< LO **, PHX::Device > worksetLIDs_
Local indices for unknowns.
panzer::Traits::Residual::ScalarT ScalarT
Teuchos::RCP< const BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > > blockedContainer_
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Tpetra::CrsMatrix< RealType, LO, GO, NodeT > CrsMatrixType
Thyra::TpetraLinearOp< RealType, LO, GO, NodeT > ThyraLinearOp
Teuchos::RCP< const BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > > blockedContainer_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Tpetra::CrsMatrix< RealType, LO, GO, NodeT > CrsMatrixType
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Fields that need to be scattered will be put in this vector.
#define TEUCHOS_ASSERT(assertion_test)
std::vector< Kokkos::View< int *, PHX::Device > > fieldOffsets_
Offset into the cell lids for each field.
std::string globalDataKey_
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &)
Non-templated empty base class for template managers.
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
panzer::Traits::Jacobian::ScalarT ScalarT
Kokkos::View< LO **, PHX::Device > worksetLIDs_
Local indices for unknowns.