17 #ifndef __INTREPID2_HGRAD_TET_Cn_FEM_ORTH_HPP__
18 #define __INTREPID2_HGRAD_TET_Cn_FEM_ORTH_HPP__
36 template<
typename OutputViewType,
37 typename inputViewType,
38 typename workViewType,
39 bool hasDeriv, ordinal_type n>
41 KOKKOS_INLINE_FUNCTION
43 generate( OutputViewType output,
44 const inputViewType input,
46 const ordinal_type p );
51 template<
typename OutputViewType,
52 typename inputViewType,
53 typename workViewType,
56 KOKKOS_INLINE_FUNCTION
58 generate( OutputViewType output,
59 const inputViewType input,
61 const ordinal_type p );
66 template<
typename OutputViewType,
67 typename inputViewType,
68 typename workViewType,
71 KOKKOS_INLINE_FUNCTION
73 generate( OutputViewType output,
74 const inputViewType input,
76 const ordinal_type p );
88 template<EOperator opType>
90 template<
typename OutputViewType,
91 typename inputViewType,
92 typename workViewType>
93 KOKKOS_INLINE_FUNCTION
95 getValues( OutputViewType output,
96 const inputViewType input,
98 const ordinal_type order);
101 template<
typename DeviceType, ordinal_type numPtsPerEval,
102 typename outputValueValueType,
class ...outputValueProperties,
103 typename inputPointValueType,
class ...inputPointProperties>
105 getValues(
const typename DeviceType::execution_space& space,
106 Kokkos::DynRankView<outputValueValueType,outputValueProperties...> outputValues,
107 const Kokkos::DynRankView<inputPointValueType, inputPointProperties...> inputPoints,
108 const ordinal_type order,
109 const EOperator operatorType );
114 template<
typename outputValueViewType,
115 typename inputPointViewType,
116 typename workViewType,
118 ordinal_type numPtsEval>
120 outputValueViewType _outputValues;
121 const inputPointViewType _inputPoints;
123 const ordinal_type _order;
125 KOKKOS_INLINE_FUNCTION
126 Functor( outputValueViewType outputValues_,
127 inputPointViewType inputPoints_,
129 const ordinal_type order_ )
130 : _outputValues(outputValues_), _inputPoints(inputPoints_), _work(work_),_order(order_){}
132 KOKKOS_INLINE_FUNCTION
133 void operator()(
const size_type iter)
const {
137 const auto ptRange = Kokkos::pair<ordinal_type,ordinal_type>(ptBegin, ptEnd);
138 const auto input = Kokkos::subview( _inputPoints, ptRange, Kokkos::ALL() );
141 case OPERATOR_VALUE : {
142 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange );
149 const auto work = Kokkos::subview( _work, Kokkos::ALL(), ptRange, Kokkos::ALL() );
150 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange, Kokkos::ALL() );
164 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange, Kokkos::ALL() );
169 INTREPID2_TEST_FOR_ABORT(
true,
170 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_Cn_FEM_ORTH::Functor) operator is not supported");
181 template<
typename DeviceType = void,
182 typename outputValueType = double,
183 typename pointValueType =
double>
185 :
public Basis<DeviceType,outputValueType,pointValueType> {
187 typedef double value_type;
211 const EOperator operatorType = OPERATOR_VALUE )
const override {
212 #ifdef HAVE_INTREPID2_DEBUG
213 Intrepid2::getValues_HGRAD_Args(outputValues,
220 Impl::Basis_HGRAD_TET_Cn_FEM_ORTH::
221 getValues<DeviceType,numPtsPerEval>(space,
Kokkos::View< ordinal_type *, typename ExecutionSpace::array_layout, Kokkos::HostSpace > OrdinalTypeArray1DHost
View type for 1d host array.
See Intrepid2::Basis_HGRAD_TET_Cn_FEM_ORTH.
ordinal_type getCardinality() const
Returns cardinality of the basis.
See Intrepid2::Basis_HGRAD_TET_Cn_FEM_ORTH.
virtual void getValues(const ExecutionSpace &space, OutputViewType outputValues, const PointViewType inputPoints, const EOperator operatorType=OPERATOR_VALUE) const override
Evaluation of a FEM basis on a reference cell.
Kokkos::DynRankView< OutputValueType, Kokkos::LayoutStride, DeviceType > OutputViewType
View type for basis value output.
An abstract base class that defines interface for concrete basis implementations for Finite Element (...
shards::CellTopology getBaseCellTopology() const
Returns the base cell topology for which the basis is defined. See Shards documentation https://trili...
Kokkos::DynRankView< scalarType, Kokkos::LayoutStride, DeviceType > ScalarViewType
View type for scalars.
typename DeviceType::execution_space ExecutionSpace
(Kokkos) Execution space for basis.
See Intrepid2::Basis_HGRAD_TET_Cn_FEM_ORTH.
virtual KOKKOS_INLINE_FUNCTION void getValues(OutputViewType, const PointViewType, const EOperator, const typename Kokkos::TeamPolicy< ExecutionSpace >::member_type &teamMember, const typename ExecutionSpace::scratch_memory_space &scratchStorage, const ordinal_type subcellDim=-1, const ordinal_type subcellOrdinal=-1) const
Team-level evaluation of basis functions on a reference cell.
Kokkos::DynRankView< PointValueType, Kokkos::LayoutStride, DeviceType > PointViewType
View type for input points.
Implementation of the default H(grad)-compatible orthogonal basis of arbitrary degree on tetrahedron...
Kokkos::View< ordinal_type **, typename ExecutionSpace::array_layout, Kokkos::HostSpace > OrdinalTypeArray2DHost
View type for 2d host array.
static constexpr ordinal_type MaxNumPtsPerBasisEval
The maximum number of points to eval in serial mode.
Basis_HGRAD_TET_Cn_FEM_ORTH(const ordinal_type order)
Constructor.
Kokkos::DynRankView< OutputValueType, Kokkos::LayoutStride, DeviceType > OutputViewType
View type for basis value output.
Definition file for FEM orthogonal basis functions of degree n for H(grad) functions on TET cells...
Kokkos::View< ordinal_type ***, typename ExecutionSpace::array_layout, Kokkos::HostSpace > OrdinalTypeArray3DHost
View type for 3d host array.
ordinal_type getDegree() const
Returns the degree of the basis.
Kokkos::DynRankView< PointValueType, Kokkos::LayoutStride, DeviceType > PointViewType
View type for input points.
Header file for the abstract base class Intrepid2::Basis.
typename DeviceType::execution_space ExecutionSpace
(Kokkos) Execution space for basis.
See Intrepid2::Basis_HGRAD_TET_Cn_FEM_ORTH.