43 #ifndef __Panzer_ReorderADValues_Evaluator_decl_hpp__ 44 #define __Panzer_ReorderADValues_Evaluator_decl_hpp__ 46 #include "Phalanx_config.hpp" 47 #include "Phalanx_Evaluator_Macros.hpp" 48 #include "Phalanx_MDField.hpp" 52 #include "PanzerDiscFE_config.hpp" 61 class UniqueGlobalIndexerBase;
69 template<
typename EvalT,
typename TRAITS>
72 public PHX::EvaluatorDerived<EvalT, TRAITS> {
77 const std::vector<std::string> & inFieldNames,
79 const std::string & elementBlock,
84 const std::vector<std::string> & inFieldNames,
85 const std::vector<std::string> & inDOFs,
86 const std::vector<std::string> & outDOFs,
88 const std::string & elementBlock,
98 std::vector< PHX::MDField<const ScalarT> >
inFields_;
114 template<
typename TRAITS>
117 public PHX::EvaluatorDerived<typename TRAITS::Jacobian, TRAITS> {
122 const std::vector<std::string> & inFieldNames,
124 const std::string & elementBlock,
129 const std::vector<std::string> & inFieldNames,
130 const std::vector<std::string> & inDOFs,
131 const std::vector<std::string> & outDOFs,
133 const std::string & elementBlock,
143 typedef typename TRAITS::Jacobian::ScalarT
ScalarT;
145 void buildSrcToDestMap(
const std::string & elementBlock,
151 void buildSrcToDestMap(
const std::string & elementBlock,
152 const std::map<int,int> & fieldNumberMaps,
ReorderADValues_Evaluator()
TRAITS::Jacobian::ScalarT ScalarT
ReorderADValues_Evaluator(const std::string &outPrefix, const std::vector< std::string > &inFieldNames, const std::vector< Teuchos::RCP< PHX::DataLayout > > &fieldLayouts, const std::string &elementBlock, const UniqueGlobalIndexerBase &indexerSrc, const UniqueGlobalIndexerBase &indexerDest)
ReorderADValues_Evaluator(const ReorderADValues_Evaluator &)
PHX::MDField< ScalarT > vector
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
std::vector< PHX::MDField< ScalarT > > outFields_
void evaluateFields(typename TRAITS::EvalData d)
std::vector< int > dstFromSrcMap_
std::vector< PHX::MDField< const ScalarT > > inFields_
Reorders the ad values of a specified field to match a different unique global indexer.
std::vector< PHX::MDField< const ScalarT > > inFields_
void postRegistrationSetup(typename TRAITS::SetupData d, PHX::FieldManager< TRAITS > &vm)
std::vector< PHX::MDField< ScalarT > > outFields_