51#ifndef Intrepid2_DerivedBasis_HGRAD_WEDGE_h
52#define Intrepid2_DerivedBasis_HGRAD_WEDGE_h
58 template<
class HGRAD_TRI,
class HGRAD_LINE>
64 ordinal_type order_xy_, order_z_;
65 EPointType pointType_;
67 using ExecutionSpace =
typename HGRAD_LINE::ExecutionSpace;
68 using OutputValueType =
typename HGRAD_LINE::OutputValueType;
69 using PointValueType =
typename HGRAD_LINE::PointValueType;
71 using OutputViewType =
typename HGRAD_LINE::OutputViewType;
72 using PointViewType =
typename HGRAD_LINE::PointViewType ;
73 using ScalarViewType =
typename HGRAD_LINE::ScalarViewType;
75 using BasisBase =
typename HGRAD_LINE::BasisBase;
76 using TriBasis = HGRAD_TRI;
77 using LineBasis = HGRAD_LINE;
87 TensorBasis(Teuchos::rcp( new TriBasis(polyOrder_xy, pointType)),
88 Teuchos::rcp( new LineBasis(polyOrder_z, pointType)))
90 this->functionSpace_ = FUNCTION_SPACE_HGRAD;
92 std::ostringstream basisName;
94 name_ = basisName.str();
96 order_xy_= polyOrder_xy;
97 order_z_ = polyOrder_z;
98 pointType_ = pointType;
100 this->setShardsTopologyAndTags();
113 return (this->getDofCount(1,0) > 1);
116 using BasisBase::getValues;
125 return name_.c_str();
137 Teuchos::RCP<BasisBase>
140 INTREPID2_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
"Method not yet implemented");
141 if(subCellDim == 2) {
147 return Teuchos::rcp(
new TriBasis(order_xy_, pointType_) );
155 return Teuchos::null;
157 return Teuchos::null;
160 INTREPID2_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
"Input parameters out of bounds");
171 auto hostBasis = Teuchos::rcp(
new HostBasis(order_xy_, order_z_, pointType_));
BasisPtr< typename Kokkos::HostSpace::device_type, OutputType, PointType > HostBasisPtr
Pointer to a Basis whose device type is on the host (Kokkos::HostSpace::device_type),...
Implementation of bases that are tensor products of two or three component bases.
Teuchos::RCP< BasisBase > getSubCellRefBasis(const ordinal_type subCellDim, const ordinal_type subCellOrd) const override
returns the basis associated to a subCell.
Basis_Derived_HGRAD_WEDGE(int polyOrder, const EPointType pointType=POINTTYPE_DEFAULT)
Constructor.
virtual HostBasisPtr< OutputValueType, PointValueType > getHostBasis() const override
Creates and returns a Basis object whose DeviceType template argument is Kokkos::HostSpace::device_ty...
Basis_Derived_HGRAD_WEDGE(int polyOrder_xy, int polyOrder_z, const EPointType pointType=POINTTYPE_DEFAULT)
Constructor.
virtual const char * getName() const override
Returns basis name.
virtual bool requireOrientation() const override
True if orientation is required.
Basis defined as the tensor product of two component bases.
virtual const char * getName() const override
Returns basis name.