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;
75 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
88 { std::cout <<
"unspecialized version of \"ScatterResidual_BlockedEpetra::evaluateFields\" on "+PHX::print<EvalT>()+
" \" should not be used!" << std::endl;
102 template<
typename TRAITS,
typename LO,
typename GO>
105 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
113 : rowIndexers_(rIndexers) {}
118 bool useDiscreteAdjoint=
false);
123 void preEvaluate(
typename TRAITS::PreEvalData d);
161 template<
typename TRAITS,
typename LO,
typename GO>
164 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
172 : rowIndexers_(rIndexers) {}
177 bool useDiscreteAdjoint=
false);
182 void preEvaluate(
typename TRAITS::PreEvalData d);
221 template<
typename TRAITS,
typename LO,
typename GO>
224 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
251 bool useDiscreteAdjoint=
false)
252 : rowIndexers_(rIndexers), colIndexers_(cIndexers), useDiscreteAdjoint_(useDiscreteAdjoint) {}
257 bool useDiscreteAdjoint=
false);
262 void preEvaluate(
typename TRAITS::PreEvalData d);
303 #ifdef Panzer_BUILD_HESSIAN_SUPPORT
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
ScatterResidual_BlockedEpetra(const Teuchos::ParameterList &p)
ScatterResidual_BlockedEpetra(const std::vector< Teuchos::RCP< const GlobalIndexer > > &rIndexers, const std::vector< Teuchos::RCP< const GlobalIndexer > > &cIndexers, bool useDiscreteAdjoint=false)
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_
ScatterResidual_BlockedEpetra(const std::vector< Teuchos::RCP< const GlobalIndexer > > &rIndexers, const std::vector< Teuchos::RCP< const GlobalIndexer > > &, bool)
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_
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_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::string globalDataKey_
std::vector< Teuchos::RCP< const GlobalIndexer > > colIndexers_
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::string globalDataKey_
ScatterResidual_BlockedEpetra(const std::vector< Teuchos::RCP< const GlobalIndexer > > &rIndexers, const std::vector< Teuchos::RCP< const GlobalIndexer > > &, bool)
panzer::Traits::Tangent::ScalarT ScalarT
Teuchos::RCP< Thyra::ProductVectorBase< double > > r_
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
std::vector< Teuchos::RCP< const GlobalIndexer > > colIndexers_
Pushes residual values into the residual vector for a Newton-based solve.
panzer::Traits::Jacobian::ScalarT ScalarT
std::vector< Teuchos::RCP< const GlobalIndexer > > colIndexers_
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< Teuchos::RCP< const GlobalIndexer > > rowIndexers_
std::vector< Teuchos::RCP< const GlobalIndexer > > rowIndexers_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
std::vector< Teuchos::RCP< const GlobalIndexer > > 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_