11 #ifndef __Panzer_CellAverage_hpp__
12 #define __Panzer_CellAverage_hpp__
16 #include "Phalanx_Evaluator_Macros.hpp"
17 #include "Phalanx_MDField.hpp"
18 #include "Kokkos_DynRankView.hpp"
37 template<
typename EvalT,
typename Traits>
94 template <
typename EvalT,
typename Traits>
96 const std::string & fieldName,
101 using Teuchos::rcp_const_cast;
104 input.
set(
"Average Name",averageName);
105 input.
set(
"Field Name",fieldName);
106 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)
typename EvalT::ScalarT ScalarT
ParameterList & set(std::string const &name, T &&value, std::string const &docString="", RCP< const ParameterEntryValidator > const &validator=null)
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