51#ifndef Intrepid2_DerivedBasis_HGRAD_QUAD_h
52#define Intrepid2_DerivedBasis_HGRAD_QUAD_h
58 template<
class HGRAD_LINE>
64 ordinal_type order_x_, order_y_;
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 LineBasis = HGRAD_LINE;
86 TensorBasis(Teuchos::rcp( new LineBasis(polyOrder_x, pointType)),
87 Teuchos::rcp( new LineBasis(polyOrder_y, pointType)))
89 this->functionSpace_ = FUNCTION_SPACE_HGRAD;
91 std::ostringstream basisName;
93 name_ = basisName.str();
95 order_x_= polyOrder_x;
96 order_y_ = polyOrder_y;
97 pointType_ = pointType;
99 this->setShardsTopologyAndTags();
112 return (this->getDofCount(1,0) > 1);
115 using BasisBase::getValues;
124 return name_.c_str();
136 Teuchos::RCP<BasisBase>
138 if(subCellDim == 1) {
142 return Teuchos::rcp(
new LineBasis(order_x_, pointType_) );
145 return Teuchos::rcp(
new LineBasis(order_y_, pointType_) );
149 INTREPID2_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
"Input parameters out of bounds");
160 auto hostBasis = Teuchos::rcp(
new HostBasis(order_x_, order_y_, 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.
virtual bool requireOrientation() const override
True if orientation is required.
virtual const char * getName() const override
Returns basis name.
Teuchos::RCP< BasisBase > getSubCellRefBasis(const ordinal_type subCellDim, const ordinal_type subCellOrd) const override
returns the basis associated to a subCell.
Basis_Derived_HGRAD_QUAD(int polyOrder, const EPointType pointType=POINTTYPE_DEFAULT)
Constructor.
Basis_Derived_HGRAD_QUAD(int polyOrder_x, int polyOrder_y, 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 defined as the tensor product of two component bases.
virtual const char * getName() const override
Returns basis name.