43 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDTPETRA_DECL_HPP 44 #define PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDTPETRA_DECL_HPP 46 #include "Phalanx_config.hpp" 47 #include "Phalanx_Evaluator_Macros.hpp" 48 #include "Phalanx_MDField.hpp" 50 #include "Teuchos_ParameterList.hpp" 52 #include "PanzerDiscFE_config.hpp" 62 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
63 class UniqueGlobalIndexer;
65 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
66 class BlockedDOFManager;
72 template <
typename EvalT,
typename TRAITS,
typename LO,
typename GO,
typename NodeT=panzer::TpetraNodeType>
75 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
83 const Teuchos::ParameterList& p);
85 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const 91 { std::cout <<
"unspecialized version of \"ScatterResidual_BlockedTpetra::evaluateFields\" on \""+PHX::typeAsString<EvalT>()+
"\" should not be used!" << std::endl;
92 TEUCHOS_ASSERT(
false); }
105 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
108 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
113 : globalIndexer_(indexer) {}
116 const Teuchos::ParameterList& p);
121 void preEvaluate(
typename TRAITS::PreEvalData d);
125 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const 156 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
168 template <
typename TRAITS,
typename LO,
typename GO,
typename NodeT>
171 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
197 : globalIndexer_(indexer) {}
200 const Teuchos::ParameterList& p);
205 void preEvaluate(
typename TRAITS::PreEvalData d);
209 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const 239 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
249 #ifdef Panzer_BUILD_HESSIAN_SUPPORT Tpetra::Map< LO, GO, NodeT > MapType
Teuchos::RCP< const BlockedDOFManager< LO, GO > > globalIndexer_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > ContainerType
Pushes residual values into the residual vector for a Newton-based solve.
Tpetra::Import< LO, GO, NodeT > ImportType
TRAITS::RealType RealType
TRAITS::RealType RealType
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > ContainerType
Tpetra::Map< LO, GO, NodeT > MapType
std::vector< int > fieldIds_
Tpetra::Export< LO, GO, NodeT > ExportType
Tpetra::Operator< RealType, LO, GO, NodeT > OperatorType
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const BlockedDOFManager< LO, GO > > globalIndexer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< int > fieldIds_
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
Tpetra::Vector< RealType, LO, GO, NodeT > VectorType
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
ScatterResidual_BlockedTpetra(const Teuchos::RCP< const BlockedDOFManager< LO, GO > > &indexer)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::string globalDataKey_
panzer::Traits::Residual::ScalarT ScalarT
Teuchos::RCP< const BlockedTpetraLinearObjContainer< RealType, LO, GO, NodeT > > blockedContainer_
Tpetra::CrsGraph< LO, GO, NodeT > CrsGraphType
void evaluateFields(typename TRAITS::EvalData d)
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_
Tpetra::CrsMatrix< RealType, LO, GO, NodeT > CrsMatrixType
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
std::string globalDataKey_
Non-templated empty base class for template managers.
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
panzer::Traits::Jacobian::ScalarT ScalarT