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 class BlockedDOFManager;
77 template <
typename EvalT,
typename TRAITS,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
80 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
96 { std::cout <<
"unspecialized version of \"ScatterDirichletResidual_BlockedTpetra::evaluateFields\" on \""+PHX::print<EvalT>()+
"\" should not be used!" << std::endl;
110 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
113 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
118 : globalIndexer_(indexer) {}
126 void preEvaluate(
typename TRAITS::PreEvalData d);
198 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
206 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
209 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
214 : globalIndexer_(indexer) {}
219 void preEvaluate(
typename TRAITS::PreEvalData d);
287 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
290 static constexpr
int maxDerivativeArraySize_ = 256;
297 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
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_
Teuchos::RCP< const panzer::BlockedDOFManager > globalIndexer_
BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > ContainerType
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &)
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
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
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
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
std::vector< int > fieldIds_
Field IDs in the local product vector block (not global field id)
Teuchos::RCP< const panzer::BlockedDOFManager > globalIndexer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
bool checkApplyBC_
If set to true, allows runtime disabling of dirichlet BCs on node-by-node basis.
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_
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager > &indexer)
std::vector< Kokkos::View< int *, PHX::Device > > basisIndexForMDFieldOffsets_
panzer::Traits::Jacobian::ScalarT ScalarT
void postRegistrationSetup(typename TRAITS::SetupData, PHX::FieldManager< TRAITS > &)
std::vector< Teuchos::RCP< const panzer::GlobalIndexer > > fieldGlobalIndexers_
Non-templated empty base class for template managers.
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...