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 override
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 override
84 intrepid_basis = createIntrepid2Basis<PHX::Device::execution_space,double,double>(
_basis_type,
_basis_order,topo);
85 return intrepid_basis->getCardinality();
88 virtual bool hasPoints(
const shards::CellTopology & topo)
const override
99 BasisCoordsGenerator();
100 BasisCoordsGenerator(
const BasisCoordsGenerator &);
110 _key = std::hash<BasisDescriptor>{}(*this);
114 _basis_type(basis_type),
115 _basis_order(basis_order)
117 _key = std::hash<BasisDescriptor>{}(*this);
127 std::stringstream ss;
128 ss <<
"cell_ref:" << _basis_type <<
"-" <<
_basis_order;
149 std::size_t seed = 0;
PointDescriptor getPointDescriptor() const
Build a point descriptor that builds reference points for the DOF locations. This method throws if no...
std::size_t operator()(const panzer::BasisDescriptor &desc) const
TEUCHOS_DEPRECATED RCP< T > rcp(T *p, Dealloc_T dealloc, bool owns_mem)
const std::string & getType() const
Get type of basis.
int getOrder() const
Get order of basis.
bool operator==(const panzer::BasisDescriptor &left, const panzer::BasisDescriptor &right)
void hash_combine(std::size_t &seed, const T &v)
BasisDescriptor()
Constructor for empty basis.