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 UniqueGlobalIndexer;
69 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
70 class BlockedDOFManager;
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);
182 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
190 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
193 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
198 : globalIndexer_(indexer) {}
203 void preEvaluate(
typename TRAITS::PreEvalData d);
256 std::vector< PHX::MDField<const bool,Cell,NODE> >
applyBC_;
263 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
Teuchos::RCP< const panzer::BlockedDOFManager< LO, GO > > globalIndexer_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
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
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
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)
void evaluateFields(typename TRAITS::EvalData d)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Thyra::TpetraLinearOp< RealType, LO, GO, NodeT > ThyraLinearOp
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
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_
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
Tpetra::Map< LO, GO, NodeT > MapType
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
std::vector< int > fieldIds_
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::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.
panzer::Traits::Residual::ScalarT ScalarT
std::size_t local_side_id_
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_
panzer::Traits::Jacobian::ScalarT ScalarT
Non-templated empty base class for template managers.
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
ScatterDirichletResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)