11 #ifndef PANZER_CONSTANT_IMPL_HPP
12 #define PANZER_CONSTANT_IMPL_HPP
17 template<
typename EvalT,
typename Traits>
21 value( p.get<double>(
"Value") ),
22 constant( p.get<std::string>(
"Name"),
23 p.get< Teuchos::
RCP<PHX::DataLayout> >(
"Data Layout") )
28 this->addUnsharedField(
constant.fieldTag().clone());
30 std::string n =
"Constant: " +
constant.fieldTag().name();
35 template<
typename EvalT,
typename Traits>
43 this->utils.setFieldData(constant,fm);
45 constant.deep_copy(value);
49 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)