43 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_EPETRA_DECL_HPP 44 #define PANZER_EVALUATOR_SCATTER_RESIDUAL_EPETRA_DECL_HPP 46 #include "Phalanx_config.hpp" 47 #include "Phalanx_Evaluator_Macros.hpp" 48 #include "Phalanx_MDField.hpp" 52 #include "PanzerDiscFE_config.hpp" 60 class Epetra_CrsMatrix;
64 class EpetraLinearObjContainer;
66 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
67 class UniqueGlobalIndexer;
98 template<
typename TRAITS,
typename LO,
typename GO>
101 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
107 bool useDiscreteAdjoint=
false)
108 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
114 void postRegistrationSetup(
typename TRAITS::SetupData d,
117 void preEvaluate(
typename TRAITS::PreEvalData d);
119 void evaluateFields(
typename TRAITS::EvalData workset);
154 template<
typename TRAITS,
typename LO,
typename GO>
157 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
163 bool useDiscreteAdjoint=
false)
164 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
170 void postRegistrationSetup(
typename TRAITS::SetupData d,
173 void preEvaluate(
typename TRAITS::PreEvalData d);
175 void evaluateFields(
typename TRAITS::EvalData workset);
208 template<
typename TRAITS,
typename LO,
typename GO>
211 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
218 bool useDiscreteAdjoint=
false)
219 : globalIndexer_(indexer), colGlobalIndexer_(cIndexer), useDiscreteAdjoint_(useDiscreteAdjoint) {}
225 void postRegistrationSetup(
typename TRAITS::SetupData d,
228 void preEvaluate(
typename TRAITS::PreEvalData d);
230 void evaluateFields(
typename TRAITS::EvalData workset);
269 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< int > fieldIds_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer, const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &cIndexer=Teuchos::null, bool useDiscreteAdjoint=false)
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
std::string globalDataKey_
std::vector< PHX::MDField< ScalarT, Cell, NODE > > scatterFields_
std::vector< int > fieldIds_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer, const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &cIndexer=Teuchos::null, bool useDiscreteAdjoint=false)
Teuchos::RCP< const EpetraLinearObjContainer > epetraContainer_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
panzer::Traits::Tangent::ScalarT ScalarT
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
panzer::Traits::Residual::ScalarT ScalarT
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
Pushes residual values into the residual vector for a Newton-based solve.
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
std::vector< int > fieldIds_
std::string globalDataKey_
panzer::Traits::Jacobian::ScalarT ScalarT
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
std::vector< PHX::MDField< ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &indexer, const Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > &cIndexer=Teuchos::null, bool useDiscreteAdjoint=false)
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< const EpetraLinearObjContainer > epetraContainer_
std::vector< PHX::MDField< ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< const panzer::UniqueGlobalIndexer< LO, GO > > globalIndexer_
std::vector< Teuchos::RCP< Epetra_Vector > > dfdp_vectors_
Non-templated empty base class for template managers.