50 #ifndef Intrepid2_DerivedBasis_HGRAD_QUAD_h
51 #define Intrepid2_DerivedBasis_HGRAD_QUAD_h
57 template<
class HGRAD_LINE>
63 ordinal_type order_x_, order_y_;
64 EPointType pointType_;
66 using ExecutionSpace =
typename HGRAD_LINE::ExecutionSpace;
67 using OutputValueType =
typename HGRAD_LINE::OutputValueType;
68 using PointValueType =
typename HGRAD_LINE::PointValueType;
70 using OutputViewType =
typename HGRAD_LINE::OutputViewType;
71 using PointViewType =
typename HGRAD_LINE::PointViewType ;
72 using ScalarViewType =
typename HGRAD_LINE::ScalarViewType;
74 using BasisBase =
typename HGRAD_LINE::BasisBase;
75 using LineBasis = HGRAD_LINE;
85 TensorBasis(Teuchos::rcp( new LineBasis(polyOrder_x, pointType)),
86 Teuchos::rcp( new LineBasis(polyOrder_y, pointType)))
88 this->functionSpace_ = FUNCTION_SPACE_HGRAD;
90 std::ostringstream basisName;
92 name_ = basisName.str();
94 order_x_= polyOrder_x;
95 order_y_ = polyOrder_y;
96 pointType_ = pointType;
98 this->setShardsTopologyAndTags();
111 return (this->getDofCount(1,0) > 1);
114 using BasisBase::getValues;
123 return name_.c_str();
135 Teuchos::RCP<BasisBase>
137 if(subCellDim == 1) {
141 return Teuchos::rcp(
new LineBasis(order_x_, pointType_) );
144 return Teuchos::rcp(
new LineBasis(order_y_, pointType_) );
148 INTREPID2_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
"Input parameters out of bounds");
155 virtual HostBasisPtr<OutputValueType, PointValueType>
159 auto hostBasis = Teuchos::rcp(
new HostBasis(order_x_, order_y_, pointType_));
Implementation of bases that are tensor products of two or three component bases. ...
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_QUAD(int polyOrder_x, int polyOrder_y, const EPointType pointType=POINTTYPE_DEFAULT)
Constructor.
virtual const char * getName() const override
Returns basis name.
Basis_Derived_HGRAD_QUAD(int polyOrder, 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.
Teuchos::RCP< BasisBase > getSubCellRefBasis(const ordinal_type subCellDim, const ordinal_type subCellOrd) const override
returns the basis associated to a subCell.