43 #ifndef __Panzer_CellAverage_hpp__
44 #define __Panzer_CellAverage_hpp__
48 #include "Phalanx_Evaluator_Macros.hpp"
49 #include "Phalanx_MDField.hpp"
50 #include "Kokkos_DynRankView.hpp"
69 template<
typename EvalT,
typename Traits>
73 public PHX::EvaluatorDerived<EvalT, Traits>
95 PHX::MDField<const ScalarT,Cell,IP>
scalar;
126 template <
typename EvalT,
typename Traits>
128 const std::string & fieldName,
133 using Teuchos::rcp_const_cast;
136 input.
set(
"Average Name",averageName);
137 input.
set(
"Field Name",fieldName);
138 input.
set(
"IR",rcp_const_cast<panzer::IntegrationRule>(ir));
Teuchos::RCP< PHX::Evaluator< Traits > > cellAverageEvaluator(const std::string &averageName, const std::string &fieldName, const Teuchos::RCP< const panzer::IntegrationRule > &ir)
ParameterList & set(std::string const &name, T const &value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
typename EvalT::ScalarT ScalarT
PHX::MDField< ScalarT, Cell > average
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
Wrapper to PHX::EvaluatorWithBaseImpl that implements Panzer-specific helpers.
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
const PHX::FieldTag & getFieldTag() const
void evaluateFields(typename Traits::EvalData d)
PHX::MDField< const ScalarT, Cell, IP > scalar
CellAverage(const Teuchos::ParameterList &p)
std::vector< PHX::MDField< const ScalarT, Cell, IP > > field_multipliers
Teuchos::RCP< Teuchos::ParameterList > getValidParameters() const