43 #ifndef PANZER_COORDINATESEVALUTOR_IMPL_HPP
44 #define PANZER_COORDINATESEVALUTOR_IMPL_HPP
49 template<
typename EvalT,
typename Traits>
53 dimension(p.get<int>(
"Dimension")),
54 coordinate( p.get<std::string>(
"Field Name"),
55 p.get< Teuchos::
RCP<PHX::DataLayout> >(
"Data Layout") )
59 std::string n =
"CoordinatesEvaluator: " +
coordinate.fieldTag().name();
64 template<
typename EvalT,
typename Traits>
71 this->utils.setFieldData(coordinate,fm);
75 template<
typename EvalT,
typename Traits>
81 PHX::MDField<double,Cell,NODE,Dim> coords = this->wda(d).cell_vertex_coordinates;
86 for(
int j=0;j<coords.extent_int(1);j++)
87 coordinate(i,j) = coords(i,j,dimension);
CoordinatesEvaluator(const Teuchos::ParameterList &p)
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
void evaluateFields(typename Traits::EvalData d)
PHX::MDField< ScalarT, Cell, BASIS > coordinate