43 #ifndef PANZER_EVALUATOR_SCATTER_DIRICHLET_RESIDUAL_BLOCKEDTPETRA_HPP
44 #define PANZER_EVALUATOR_SCATTER_DIRICHLET_RESIDUAL_BLOCKEDTPETRA_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>
class ProductVectorBase;
66 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
67 class BlockedDOFManager;
69 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
70 class UniqueGlobalIndexer;
80 template <
typename EvalT,
typename TRAITS,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
83 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
99 { std::cout <<
"unspecialized version of \"ScatterDirichletResidual_BlockedTpetra::evaluateFields\" on \""+PHX::typeAsString<EvalT>()+
"\" should not be used!" << std::endl;
113 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
116 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
121 : globalIndexer_(indexer) {}
129 void preEvaluate(
typename TRAITS::PreEvalData d);
201 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
209 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
212 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
217 : globalIndexer_(indexer) {}
222 void preEvaluate(
typename TRAITS::PreEvalData d);
290 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
293 static constexpr
int maxDerivativeArraySize_ = 256;
300 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
Teuchos::RCP< const panzer::BlockedDOFManager< LO, GO > > globalIndexer_
std::vector< Kokkos::View< int *, PHX::Device > > fieldOffsets_
Offset into the cell lids for each field. Size of number of fields to scatter.
std::vector< Kokkos::View< int *, PHX::Device > > fieldOffsets_
Offset into the cell lids for each field.
TRAITS::RealType RealType
TRAITS::RealType RealType
std::size_t side_subcell_dim_
Tpetra::Export< LO, GO, NodeT > ExportType
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > ContainerType
std::vector< int > productVectorBlockIndex_
Kokkos::View< LO **, PHX::Device > worksetLIDs_
Local indices for unknowns.
Teuchos::RCP< Thyra::ProductVectorBase< double > > dirichletCounter_
std::size_t side_subcell_dim_
BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > ContainerType
Teuchos::RCP< Thyra::ProductVectorBase< double > > dirichletCounter_
std::string globalDataKey_
std::size_t local_side_id_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
bool checkApplyBC_
If set to true, allows runtime disabling of dirichlet BCs on node-by-node basis.
Tpetra::Operator< RealType, LO, GO, NodeT > OperatorType
std::vector< Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > > fieldGlobalIndexers_
Tpetra::CrsMatrix< RealType, LO, GO, NodeT > CrsMatrixType
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Thyra::TpetraLinearOp< RealType, LO, GO, NodeT > ThyraLinearOp
Teuchos::RCP< const BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > > blockedContainer_
Tpetra::Import< LO, GO, NodeT > ImportType
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< PHX::MDField< const bool, Cell, NODE > > applyBC_
Tpetra::Vector< RealType, LO, GO, NodeT > VectorType
Tpetra::CrsMatrix< RealType, LO, GO, NodeT > CrsMatrixType
Tpetra::Map< LO, GO, NodeT > MapType
void evaluateFields(typename TRAITS::EvalData)
Tpetra::Map< LO, GO, NodeT > MapType
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
Teuchos::RCP< PHX::FieldTag > scatterHolder_
bool checkApplyBC_
If set to true, allows runtime disabling of dirichlet BCs on node-by-node basis.
Teuchos::RCP< const panzer::BlockedDOFManager< LO, GO > > globalIndexer_
std::vector< int > productVectorBlockIndex_
std::string globalDataKey_
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
std::vector< PHX::MDField< const bool, Cell, NODE > > applyBC_
Pushes residual values into the residual vector for a Newton-based solve.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Kokkos::View< LO **, PHX::Device > worksetLIDs_
Local indices for unknowns.
panzer::Traits::Residual::ScalarT ScalarT
std::size_t local_side_id_
std::vector< Kokkos::View< int *, PHX::Device > > basisIndexForMDFieldOffsets_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
ScatterDirichletResidual_BlockedTpetra()
#define TEUCHOS_ASSERT(assertion_test)
std::vector< int > fieldIds_
Teuchos::RCP< const BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > > blockedContainer_
std::vector< Kokkos::View< int *, PHX::Device > > basisIndexForMDFieldOffsets_
panzer::Traits::Jacobian::ScalarT ScalarT
void postRegistrationSetup(typename TRAITS::SetupData, PHX::FieldManager< TRAITS > &)
Non-templated empty base class for template managers.
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
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...
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &)