43 #ifndef PANZER_CONSTANT_IMPL_HPP
44 #define PANZER_CONSTANT_IMPL_HPP
49 template<
typename EvalT,
typename Traits>
53 value( p.get<double>(
"Value") ),
54 constant( p.get<std::string>(
"Name"),
55 p.get< Teuchos::
RCP<PHX::DataLayout> >(
"Data Layout") )
60 this->addUnsharedField(
constant.fieldTag().clone());
62 std::string n =
"Constant: " +
constant.fieldTag().name();
67 template<
typename EvalT,
typename Traits>
75 this->utils.setFieldData(constant,fm);
77 constant.deep_copy(value);
81 template<
typename EvalT,
typename Traits>
Constant(const Teuchos::ParameterList &p)
PHX::MDField< ScalarT > constant
void evaluateFields(typename Traits::EvalData d)
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)