43 #ifndef PANZER_CONSTANT_VECTOR_IMPL_HPP
44 #define PANZER_CONSTANT_VECTOR_IMPL_HPP
49 template<
typename EvalT,
typename Traits>
53 vector(p.get<std::string>(
"Name"),
54 p.get< Teuchos::
RCP<PHX::DataLayout> >(
"Data Layout") )
56 this->addEvaluatedField(
vector);
58 int dim =
vector.fieldTag().dataLayout().extent(2);
66 std::string n =
"ConstantVector: " +
vector.fieldTag().name();
71 template<
typename EvalT,
typename Traits>
79 this->utils.setFieldData(vector,fm);
83 template<
typename EvalT,
typename Traits>
89 for(
int c=0;c<vector.extent_int(0);c++)
90 for(
int p=0;p<vector.extent_int(1);p++)
91 for(
int d=0;d<vector.extent_int(2);d++)
92 vector(c,p,d) = vals[d];
ConstantVector(const Teuchos::ParameterList &p)
T & get(const std::string &name, T def_value)
typename EvalT::ScalarT ScalarT
PHX::MDField< ScalarT > vector
void evaluateFields(typename Traits::EvalData d)
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)