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"
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,
96 std::vector< PHX::MDField<const ScalarT> >
inFields_;
112 template<
typename TRAITS>
115 public PHX::EvaluatorDerived<typename TRAITS::Jacobian, TRAITS> {
120 const std::vector<std::string> & inFieldNames,
122 const std::string & elementBlock,
127 const std::vector<std::string> & inFieldNames,
128 const std::vector<std::string> & inDOFs,
129 const std::vector<std::string> & outDOFs,
131 const std::string & elementBlock,
138 typedef typename TRAITS::Jacobian::ScalarT
ScalarT;
140 void buildSrcToDestMap(
const std::string & elementBlock,
146 void buildSrcToDestMap(
const std::string & elementBlock,
147 const std::map<int,int> & fieldNumberMaps,
ReorderADValues_Evaluator()
TRAITS::Jacobian::ScalarT ScalarT
ReorderADValues_Evaluator(const ReorderADValues_Evaluator &)
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_
std::vector< PHX::MDField< ScalarT > > outFields_
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 GlobalIndexer &indexerSrc, const GlobalIndexer &indexerDest)