11 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDTPETRA_DECL_HPP
12 #define PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDTPETRA_DECL_HPP
14 #include "Phalanx_config.hpp"
15 #include "Phalanx_Evaluator_Macros.hpp"
16 #include "Phalanx_MDField.hpp"
20 #include "PanzerDiscFE_config.hpp"
31 class BlockedDOFManager;
38 template <
typename EvalT,
typename TRAITS,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
57 { std::cout <<
"unspecialized version of \"ScatterResidual_BlockedTpetra::evaluateFields\" on \""+PHX::print<EvalT>()+
"\" should not be used!" << std::endl;
71 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
79 : globalIndexer_(indexer) {}
147 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
176 : globalIndexer_(indexer) {}
244 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
Tpetra::Map< LO, GO, NodeT > MapType
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
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< int > productVectorBlockIndex_
TRAITS::RealType RealType
std::vector< int > productVectorBlockIndex_
TRAITS::RealType RealType
std::vector< PHX::View< int * > > fieldOffsets_
Offset into the cell lids for each field. Size of number of fields to scatter.
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
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &)
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
Tpetra::Vector< RealType, LO, GO, NodeT > VectorType
std::vector< Teuchos::RCP< const panzer::GlobalIndexer > > fieldGlobalIndexers_
Vector of global indexers, one for each scattered field respectively.
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::string globalDataKey_
void evaluateFields(typename TRAITS::EvalData)
panzer::Traits::Residual::ScalarT ScalarT
Teuchos::RCP< const BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > > blockedContainer_
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
virtual void preEvaluate(typename Traits::PreEvalData d)=0
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
PHX::View< LO * > blockOffsets_
The offset values of the blocked DOFs per element. Size of number of blocks in the product vector + 1...
Tpetra::CrsMatrix< RealType, LO, GO, NodeT > CrsMatrixType
std::vector< PHX::View< int * > > fieldOffsets_
Offset into the cell lids for each field.
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)
PHX::View< LO ** > worksetLIDs_
Local indices for unknowns.
std::string globalDataKey_
Non-templated empty base class for template managers.
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Kokkos::View< typename Sacado::ScalarType< ScalarT >::type **, Kokkos::LayoutRight, PHX::Device > workset_vals_
Scratch space for local values.
panzer::Traits::Jacobian::ScalarT ScalarT
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
Maps the local (field,element,basis) triplet to a global ID for scattering.
Kokkos::View< LO **, Kokkos::LayoutRight, PHX::Device > worksetLIDs_
Local indices for unknowns.