43 #ifndef PANZER_PARAMETER_IMPL_HPP
44 #define PANZER_PARAMETER_IMPL_HPP
46 #include "PanzerDiscFE_config.hpp"
56 template<
typename EvalT,
typename TRAITS>
59 const std::string field_name,
63 target_field = PHX::MDField<ScalarT, Cell, Point>(field_name, data_layout);
65 this->addEvaluatedField(target_field);
68 param = panzer::createAndRegisterScalarParameter<EvalT>(parameter_name,param_lib);
71 std::string n =
"Parameter Evaluator";
76 template<
typename EvalT,
typename TRAITS>
82 for (index_t cell = 0; cell < workset.num_cells; ++cell) {
83 for (
typename PHX::MDField<ScalarT, Cell, Point>::size_type pt = 0;
84 pt < target_field.extent(1); ++pt) {
85 target_field(cell,pt) = param->getValue();
Sacado::ScalarParameterLibrary< panzer::EvaluationTraits > ParamLib
Parameter(const std::string parameter_name, const std::string field_name, const Teuchos::RCP< PHX::DataLayout > &data_layout, panzer::ParamLib ¶m_lib)
void evaluateFields(typename TRAITS::EvalData ud)