45 #include "Phalanx_KokkosDeviceTypes.hpp"
61 class BasisCoordsGenerator :
62 public PointGenerator {
64 BasisCoordsGenerator(
const int basis_order,
const std::string & basis_type)
67 virtual ~BasisCoordsGenerator() =
default;
69 virtual Kokkos::DynRankView<double> getPoints(
const shards::CellTopology & topo)
const
72 intrepid_basis = createIntrepid2Basis<PHX::Device::execution_space,double,double>(
_basis_type,
_basis_order,topo);
74 Kokkos::DynRankView<double> view(
_basis_type+
"_ref_coords",intrepid_basis->getCardinality(),topo.getDimension());
76 intrepid_basis->getDofCoords(view);
81 virtual int numPoints(
const shards::CellTopology & topo)
const
84 intrepid_basis = createIntrepid2Basis<PHX::Device::execution_space,double,double>(
_basis_type,
_basis_order,topo);
85 return intrepid_basis->getCardinality();
94 BasisCoordsGenerator();
95 BasisCoordsGenerator(
const BasisCoordsGenerator &);
105 _key = std::hash<BasisDescriptor>{}(*this);
112 _key = std::hash<BasisDescriptor>{}(*this);
122 std::stringstream ss;
137 std::size_t seed = 0;