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"
17 #include "Phalanx_KokkosViewOfViews.hpp"
21 #include "PanzerDiscFE_config.hpp"
32 class BlockedDOFManager;
39 template <
typename EvalT,
typename TRAITS,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
58 { std::cout <<
"unspecialized version of \"ScatterResidual_BlockedTpetra::evaluateFields\" on \""+PHX::print<EvalT>()+
"\" should not be used!" << std::endl;
72 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
80 : globalIndexer_(indexer) {}
148 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
177 : globalIndexer_(indexer) {}
246 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
254 : globalIndexer_(indexer) {}
323 #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.
BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > ContainerType
std::vector< PHX::View< int * > > fieldOffsets_
Offset into the cell lids for each field.
Tpetra::Import< LO, GO, NodeT > ImportType
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< int > productVectorBlockIndex_
TRAITS::RealType RealType
panzer::Traits::Tangent::ScalarT ScalarT
std::vector< int > productVectorBlockIndex_
TRAITS::RealType RealType
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 > &)
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
Tpetra::Vector< RealType, LO, GO, NodeT > VectorType
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Tpetra::Import< LO, GO, NodeT > ImportType
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Tpetra::Vector< RealType, LO, GO, NodeT > VectorType
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
Maps the local (field,element,basis) triplet to a global ID for scattering.
Tpetra::Export< LO, GO, NodeT > ExportType
PHX::View< LO ** > worksetLIDs_
Local indices for unknowns.
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)
Tpetra::Map< LO, GO, NodeT > MapType
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_
Teuchos::RCP< const BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > > blockedContainer_
void evaluateFields(typename TRAITS::EvalData)
panzer::Traits::Residual::ScalarT ScalarT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > > blockedContainer_
std::vector< int > productVectorBlockIndex_
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
virtual void preEvaluate(typename Traits::PreEvalData d)=0
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< Teuchos::RCP< const panzer::GlobalIndexer > > fieldGlobalIndexers_
Vector of global indexers, one for each scattered field respectively.
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_
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
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_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Fields that need to be scattered will be put in this vector.
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.
Tpetra::CrsMatrix< RealType, LO, GO, NodeT > CrsMatrixType
std::string globalDataKey_
panzer::Traits::Jacobian::ScalarT ScalarT
Teuchos::RCP< const BlockedDOFManager > globalIndexer_
Maps the local (field,element,basis) triplet to a global ID for scattering.
PHX::ViewOfViews< 2, Kokkos::View< RealType **, Kokkos::LayoutLeft, PHX::Device > > dfdpFieldsVoV_
Storage for the tangent data.
Kokkos::View< LO **, Kokkos::LayoutRight, PHX::Device > worksetLIDs_
Local indices for unknowns.