43 #ifndef PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDEPETRA_DECL_HPP
44 #define PANZER_EVALUATOR_SCATTER_RESIDUAL_BLOCKEDEPETRA_DECL_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>
class ProductVectorBase;
62 template <
typename>
class BlockedLinearOpBase;
67 template <
typename LocalOrdinalT,
typename GlobalOrdinalT>
68 class UniqueGlobalIndexer;
76 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
89 { std::cout <<
"unspecialized version of \"ScatterResidual_BlockedEpetra::evaluateFields\" on "+PHX::typeAsString<EvalT>()+
" \" should not be used!" << std::endl;
103 template<
typename TRAITS,
typename LO,
typename GO>
106 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
114 : rowIndexers_(rIndexers) {}
119 bool useDiscreteAdjoint=
false);
124 void preEvaluate(
typename TRAITS::PreEvalData d);
140 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
141 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
162 template<
typename TRAITS,
typename LO,
typename GO>
165 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
173 : rowIndexers_(rIndexers) {}
178 bool useDiscreteAdjoint=
false);
183 void preEvaluate(
typename TRAITS::PreEvalData d);
199 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
200 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
222 template<
typename TRAITS,
typename LO,
typename GO>
225 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
252 bool useDiscreteAdjoint=
false)
253 : rowIndexers_(rIndexers), colIndexers_(cIndexers), useDiscreteAdjoint_(useDiscreteAdjoint) {}
258 bool useDiscreteAdjoint=
false);
263 void preEvaluate(
typename TRAITS::PreEvalData d);
280 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
rowIndexers_;
281 std::vector<Teuchos::RCP<const UniqueGlobalIndexer<LO,int> > >
colIndexers_;
304 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
ScatterResidual_BlockedEpetra(const Teuchos::ParameterList &p)
Teuchos::RCP< Thyra::ProductVectorBase< double > > r_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< int > indexerIds_
std::vector< int > subFieldIds_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Teuchos::RCP< Thyra::ProductVectorBase< double > > r_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< int > indexerIds_
void evaluateFields(typename TRAITS::EvalData d)
Teuchos::RCP< Thyra::BlockedLinearOpBase< double > > Jac_
std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > colIndexers_
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > rowIndexers_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::string globalDataKey_
ScatterResidual_BlockedEpetra(const std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > &rIndexers, const std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > &, bool)
panzer::Traits::Residual::ScalarT ScalarT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > colIndexers_
ScatterResidual_BlockedEpetra(const std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > &rIndexers, const std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > &cIndexers, bool useDiscreteAdjoint=false)
std::string globalDataKey_
ScatterResidual_BlockedEpetra(const std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > &rIndexers, const std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > &, bool)
panzer::Traits::Tangent::ScalarT ScalarT
Teuchos::RCP< Thyra::ProductVectorBase< double > > r_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Pushes residual values into the residual vector for a Newton-based solve.
panzer::Traits::Jacobian::ScalarT ScalarT
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
std::vector< int > subFieldIds_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< int > subFieldIds_
#define TEUCHOS_ASSERT(assertion_test)
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > rowIndexers_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
std::vector< int > indexerIds_
Non-templated empty base class for template managers.
std::string globalDataKey_
std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > colIndexers_
std::vector< Teuchos::RCP< const UniqueGlobalIndexer< LO, int > > > rowIndexers_