17 #ifndef Intrepid2_DerivedBasis_HGRAD_QUAD_h
18 #define Intrepid2_DerivedBasis_HGRAD_QUAD_h
24 template<
class HGRAD_LINE>
30 ordinal_type order_x_, order_y_;
31 EPointType pointType_;
33 using ExecutionSpace =
typename HGRAD_LINE::ExecutionSpace;
34 using OutputValueType =
typename HGRAD_LINE::OutputValueType;
35 using PointValueType =
typename HGRAD_LINE::PointValueType;
37 using OutputViewType =
typename HGRAD_LINE::OutputViewType;
38 using PointViewType =
typename HGRAD_LINE::PointViewType ;
39 using ScalarViewType =
typename HGRAD_LINE::ScalarViewType;
41 using BasisBase =
typename HGRAD_LINE::BasisBase;
42 using LineBasis = HGRAD_LINE;
52 TensorBasis(Teuchos::rcp( new LineBasis(polyOrder_x, pointType)),
53 Teuchos::rcp( new LineBasis(polyOrder_y, pointType)))
55 this->functionSpace_ = FUNCTION_SPACE_HGRAD;
57 std::ostringstream basisName;
59 name_ = basisName.str();
61 order_x_= polyOrder_x;
62 order_y_ = polyOrder_y;
63 pointType_ = pointType;
65 this->setShardsTopologyAndTags();
78 return (this->getDofCount(1,0) > 1);
81 using BasisBase::getValues;
102 Teuchos::RCP<BasisBase>
104 if(subCellDim == 1) {
108 return Teuchos::rcp(
new LineBasis(order_x_, pointType_) );
111 return Teuchos::rcp(
new LineBasis(order_y_, pointType_) );
115 INTREPID2_TEST_FOR_EXCEPTION(
true,std::invalid_argument,
"Input parameters out of bounds");
122 virtual HostBasisPtr<OutputValueType, PointValueType>
126 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.