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"
50#include "Teuchos_ParameterList.hpp"
52#include "PanzerDiscFE_config.hpp"
63class EpetraLinearObjContainer;
96template<
typename TRAITS,
typename LO,
typename GO>
99 public PHX::EvaluatorDerived<panzer::Traits::Residual, TRAITS>,
104 const Teuchos::RCP<const panzer::GlobalIndexer> & ,
105 bool useDiscreteAdjoint=
false)
106 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
109 const Teuchos::RCP<const panzer::GlobalIndexer> & cIndexer,
110 const Teuchos::ParameterList& p,
bool=
false);
112 void postRegistrationSetup(
typename TRAITS::SetupData d,
115 void preEvaluate(
typename TRAITS::PreEvalData d);
117 void evaluateFields(
typename TRAITS::EvalData workset);
119 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
140 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
152template<
typename TRAITS,
typename LO,
typename GO>
155 public PHX::EvaluatorDerived<panzer::Traits::Tangent, TRAITS>,
160 const Teuchos::RCP<const panzer::GlobalIndexer> & ,
161 bool useDiscreteAdjoint=
false)
162 : globalIndexer_(indexer),useDiscreteAdjoint_(useDiscreteAdjoint) {}
165 const Teuchos::RCP<const panzer::GlobalIndexer> & cIndexer,
166 const Teuchos::ParameterList& p,
bool=
false);
168 void postRegistrationSetup(
typename TRAITS::SetupData d,
171 void preEvaluate(
typename TRAITS::PreEvalData d);
173 void evaluateFields(
typename TRAITS::EvalData workset);
175 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
196 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
206template<
typename TRAITS,
typename LO,
typename GO>
209 public PHX::EvaluatorDerived<panzer::Traits::Jacobian, TRAITS>,
215 const Teuchos::RCP<const panzer::GlobalIndexer> & cIndexer=Teuchos::null,
216 bool useDiscreteAdjoint=
false)
217 : globalIndexer_(indexer), colGlobalIndexer_(cIndexer), useDiscreteAdjoint_(useDiscreteAdjoint) {}
220 const Teuchos::RCP<const panzer::GlobalIndexer> & cIndexer,
221 const Teuchos::ParameterList& pl,
bool useDiscreteAdjoint=
false);
223 void postRegistrationSetup(
typename TRAITS::SetupData d,
226 void preEvaluate(
typename TRAITS::PreEvalData d);
228 void evaluateFields(
typename TRAITS::EvalData workset);
230 virtual Teuchos::RCP<CloneableEvaluator>
clone(
const Teuchos::ParameterList & pl)
const
252 Teuchos::RCP<const std::map<std::string,std::string> >
fieldMap_;
267#ifdef Panzer_BUILD_HESSIAN_SUPPORT
Non-templated empty base class for template managers.
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::vector< int > fieldIds_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< const panzer::GlobalIndexer > &cIndexer=Teuchos::null, bool useDiscreteAdjoint=false)
Teuchos::RCP< const panzer::GlobalIndexer > colGlobalIndexer_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< const panzer::GlobalIndexer > &cIndexer, const Teuchos::ParameterList &pl, bool useDiscreteAdjoint=false)
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
Teuchos::RCP< PHX::FieldTag > scatterHolder_
Teuchos::RCP< const EpetraLinearObjContainer > epetraContainer_
std::string globalDataKey_
panzer::Traits::Jacobian::ScalarT ScalarT
Teuchos::RCP< PHX::FieldTag > scatterHolder_
std::vector< int > fieldIds_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
std::string globalDataKey_
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< const panzer::GlobalIndexer > &, bool useDiscreteAdjoint=false)
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
panzer::Traits::Residual::ScalarT ScalarT
Teuchos::RCP< const EpetraLinearObjContainer > epetraContainer_
std::vector< Teuchos::RCP< Epetra_Vector > > dfdp_vectors_
ScatterResidual_Epetra(const Teuchos::RCP< const panzer::GlobalIndexer > &indexer, const Teuchos::RCP< const panzer::GlobalIndexer > &, bool useDiscreteAdjoint=false)
Teuchos::RCP< const std::map< std::string, std::string > > fieldMap_
panzer::Traits::Tangent::ScalarT ScalarT
std::vector< PHX::MDField< const ScalarT, Cell, NODE > > scatterFields_
Teuchos::RCP< const panzer::GlobalIndexer > globalIndexer_
std::vector< int > fieldIds_
virtual Teuchos::RCP< CloneableEvaluator > clone(const Teuchos::ParameterList &pl) const
Teuchos::RCP< PHX::FieldTag > scatterHolder_
Pushes residual values into the residual vector for a Newton-based solve.