45#include "Phalanx_KokkosDeviceTypes.hpp"
61class BasisCoordsGenerator :
64 BasisCoordsGenerator(
const int basis_order,
const std::string & basis_type)
65 : _basis_type(basis_type), _basis_order(basis_order) {}
67 virtual ~BasisCoordsGenerator() =
default;
69 virtual Kokkos::DynRankView<double> getPoints(
const shards::CellTopology & topo)
const override
71 Teuchos::RCP<Intrepid2::Basis<PHX::Device::execution_space,double,double> >
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
83 Teuchos::RCP<Intrepid2::Basis<PHX::Device::execution_space,double,double> >
85 return intrepid_basis->getCardinality();
88 virtual bool hasPoints(
const shards::CellTopology & topo)
const override
94 std::string _basis_type;
99 BasisCoordsGenerator();
100 BasisCoordsGenerator(
const BasisCoordsGenerator &);
110 _key = std::hash<BasisDescriptor>{}(*this);
117 _key = std::hash<BasisDescriptor>{}(*this);
127 std::stringstream ss;
142 std::size_t seed = 0;
int getOrder() const
Get order of basis.
std::string _basis_type
Basis type (HGrad, HDiv, HCurl,...)
const std::string & getType() const
Get type of basis.
PointDescriptor getPointDescriptor() const
Build a point descriptor that builds reference points for the DOF locations. This method throws if no...
BasisDescriptor()
Constructor for empty basis.
Teuchos::RCP< Intrepid2::Basis< ExecutionSpace, OutputValueType, PointValueType > > createIntrepid2Basis(const std::string basis_type, int basis_order, const shards::CellTopology &cell_topology)
Creates an Intrepid2::Basis object given the basis, order and cell topology.
void hash_combine(std::size_t &seed, const T &v)
std::size_t operator()(const panzer::BasisDescriptor &desc) const