49 #ifndef __INTREPID2_HGRAD_TRI_CN_FEM_ORTH_HPP__
50 #define __INTREPID2_HGRAD_TRI_CN_FEM_ORTH_HPP__
70 template<
typename outputViewType,
71 typename inputViewType,
72 typename workViewType,
73 bool hasDeriv, ordinal_type n>
75 KOKKOS_INLINE_FUNCTION
77 generate( outputViewType output,
78 const inputViewType input,
80 const ordinal_type p );
86 template<
typename outputViewType,
87 typename inputViewType,
88 typename workViewType,
91 KOKKOS_INLINE_FUNCTION
93 generate( outputViewType output,
94 const inputViewType input,
96 const ordinal_type p );
102 template<
typename outputViewType,
103 typename inputViewType,
104 typename workViewType,
107 KOKKOS_INLINE_FUNCTION
109 generate( outputViewType output,
110 const inputViewType input,
112 const ordinal_type p );
124 template<EOperator opType>
126 template<
typename outputViewType,
127 typename inputViewType,
128 typename workViewType>
129 KOKKOS_INLINE_FUNCTION
131 getValues( outputViewType output,
132 const inputViewType input,
134 const ordinal_type order);
137 template<
typename ExecSpaceType, ordinal_type numPtsPerEval,
138 typename outputValueValueType,
class ...outputValueProperties,
139 typename inputPointValueType,
class ...inputPointProperties>
141 getValues( Kokkos::DynRankView<outputValueValueType,outputValueProperties...> outputValues,
142 const Kokkos::DynRankView<inputPointValueType, inputPointProperties...> inputPoints,
143 const ordinal_type order,
144 const EOperator operatorType );
149 template<
typename outputValueViewType,
150 typename inputPointViewType,
151 typename workViewType,
153 ordinal_type numPtsEval>
155 outputValueViewType _outputValues;
156 const inputPointViewType _inputPoints;
158 const ordinal_type _order;
160 KOKKOS_INLINE_FUNCTION
161 Functor( outputValueViewType outputValues_,
162 inputPointViewType inputPoints_,
164 const ordinal_type order_ )
165 : _outputValues(outputValues_), _inputPoints(inputPoints_), _work(work_),_order(order_){}
167 KOKKOS_INLINE_FUNCTION
168 void operator()(
const size_type iter)
const {
172 const auto ptRange = Kokkos::pair<ordinal_type,ordinal_type>(ptBegin, ptEnd);
173 const auto input = Kokkos::subview( _inputPoints, ptRange, Kokkos::ALL() );
176 case OPERATOR_VALUE : {
177 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange );
184 const auto work = Kokkos::subview( _work, Kokkos::ALL(), ptRange, Kokkos::ALL() );
185 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange, Kokkos::ALL() );
199 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange, Kokkos::ALL() );
204 INTREPID2_TEST_FOR_ABORT(
true,
205 ">>> ERROR: (Intrepid2::Basis_HGRAD_TRI_Cn_FEM_ORTH::Functor) operator is not supported");
216 template<
typename ExecSpaceType = void,
217 typename outputValueType = double,
218 typename pointValueType =
double>
220 :
public Basis<ExecSpaceType,outputValueType,pointValueType> {
222 typedef double value_type;
240 const EOperator operatorType = OPERATOR_VALUE )
const {
241 #ifdef HAVE_INTREPID2_DEBUG
242 Intrepid2::getValues_HGRAD_Args(outputValues,
249 Impl::Basis_HGRAD_TRI_Cn_FEM_ORTH::
250 getValues<ExecSpaceType,numPtsPerEval>( outputValues,
An abstract base class that defines interface for concrete basis implementations for Finite Element (...
Kokkos::DynRankView< outputValueType, Kokkos::LayoutStride, ExecSpaceType > outputViewType
View type for basis value output.
shards::CellTopology getBaseCellTopology() const
Returns the base cell topology for which the basis is defined. See Shards documentation https://trili...
Implementation of the default H(grad)-compatible orthogonal basis (Dubiner) of arbitrary degree on tr...
ordinal_type getCardinality() const
Returns cardinality of the basis.
Kokkos::View< ordinal_type ***, typename ExecSpaceType::array_layout, Kokkos::HostSpace > ordinal_type_array_3d_host
View type for 3d host array.
See Intrepid2::Basis_HGRAD_TRI_Cn_FEM_ORTH.
See Intrepid2::Basis_HGRAD_TRI_Cn_FEM_ORTH.
static constexpr ordinal_type MaxNumPtsPerBasisEval
The maximum number of points to eval in serial mode.
See Intrepid2::Basis_HGRAD_TRI_Cn_FEM_ORTH.
Kokkos::View< ordinal_type *,typename ExecSpaceType::array_layout, Kokkos::HostSpace > ordinal_type_array_1d_host
View type for 1d host array.
Definition file for FEM orthogonal basis functions of arbitrary degree for H(grad) functions on TRI...
Kokkos::DynRankView< pointValueType, Kokkos::LayoutStride, ExecSpaceType > pointViewType
View type for input points.
ordinal_type getDegree() const
Returns the degree of the basis.
virtual void getValues(outputViewType outputValues, const pointViewType inputPoints, const EOperator operatorType=OPERATOR_VALUE) const
Evaluation of a FEM basis on a reference cell.
See Intrepid2::Basis_HGRAD_TRI_Cn_FEM_ORTH.
Header file for the abstract base class Intrepid2::Basis.
Kokkos::View< ordinal_type **,typename ExecSpaceType::array_layout, Kokkos::HostSpace > ordinal_type_array_2d_host
View type for 2d host array.
Basis_HGRAD_TRI_Cn_FEM_ORTH(const ordinal_type order)
Constructor.