11 #ifndef PANZER_COORDINATESEVALUTOR_IMPL_HPP
12 #define PANZER_COORDINATESEVALUTOR_IMPL_HPP
17 template<
typename EvalT,
typename Traits>
21 dimension(p.get<int>(
"Dimension")),
22 coordinate( p.get<std::string>(
"Field Name"),
23 p.get< Teuchos::
RCP<PHX::DataLayout> >(
"Data Layout") )
27 std::string n =
"CoordinatesEvaluator: " +
coordinate.fieldTag().name();
32 template<
typename EvalT,
typename Traits>
39 this->utils.setFieldData(coordinate,fm);
43 template<
typename EvalT,
typename Traits>
49 auto coords = this->wda(d).cell_node_coordinates.get_static_view();
50 auto coordinate_v = coordinate.get_static_view();
51 auto l_dimension = dimension;
54 Kokkos::parallel_for(d.
num_cells, KOKKOS_LAMBDA (
int i) {
55 for(
int j=0;j<coords.extent_int(1);j++)
56 coordinate_v(i,j) = coords(i,j,l_dimension);
CoordinatesEvaluator(const Teuchos::ParameterList &p)
void postRegistrationSetup(typename Traits::SetupData d, PHX::FieldManager< Traits > &fm)
int num_cells
DEPRECATED - use: numCells()
void evaluateFields(typename Traits::EvalData d)
PHX::MDField< ScalarT, Cell, BASIS > coordinate