16#ifndef __INTREPID2_HGRAD_TRI_CN_FEM_ORTH_HPP__
17#define __INTREPID2_HGRAD_TRI_CN_FEM_ORTH_HPP__
37template<
typename OutputViewType,
38typename inputViewType,
40bool hasDeriv, ordinal_type n>
42 KOKKOS_INLINE_FUNCTION
44 generate( OutputViewType output,
45 const inputViewType input,
47 const ordinal_type p );
53template<
typename OutputViewType,
54typename inputViewType,
58 KOKKOS_INLINE_FUNCTION
60 generate( OutputViewType output,
61 const inputViewType input,
63 const ordinal_type p );
69template<
typename OutputViewType,
70typename inputViewType,
74 KOKKOS_INLINE_FUNCTION
76 generate( OutputViewType output,
77 const inputViewType input,
79 const ordinal_type p );
91 template<EOperator opType>
93 template<
typename OutputViewType,
94 typename inputViewType,
95 typename workViewType>
96 KOKKOS_INLINE_FUNCTION
98 getValues( OutputViewType output,
99 const inputViewType input,
101 const ordinal_type order);
104 template<
typename DeviceType, ordinal_type numPtsPerEval,
105 typename outputValueValueType,
class ...outputValueProperties,
106 typename inputPointValueType,
class ...inputPointProperties>
108 getValues(
const typename DeviceType::execution_space& space,
109 Kokkos::DynRankView<outputValueValueType,outputValueProperties...> outputValues,
110 const Kokkos::DynRankView<inputPointValueType, inputPointProperties...> inputPoints,
111 const ordinal_type order,
112 const EOperator operatorType );
117 template<
typename outputValueViewType,
118 typename inputPointViewType,
119 typename workViewType,
121 ordinal_type numPtsEval>
123 outputValueViewType _outputValues;
124 const inputPointViewType _inputPoints;
126 const ordinal_type _order;
128 KOKKOS_INLINE_FUNCTION
129 Functor( outputValueViewType outputValues_,
130 inputPointViewType inputPoints_,
132 const ordinal_type order_ )
133 : _outputValues(outputValues_), _inputPoints(inputPoints_), _work(work_),_order(order_){}
135 KOKKOS_INLINE_FUNCTION
136 void operator()(
const size_type iter)
const {
140 const auto ptRange = Kokkos::pair<ordinal_type,ordinal_type>(ptBegin, ptEnd);
141 const auto input = Kokkos::subview( _inputPoints, ptRange, Kokkos::ALL() );
144 case OPERATOR_VALUE : {
145 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange );
152 const auto work = Kokkos::subview( _work, Kokkos::ALL(), ptRange, Kokkos::ALL() );
153 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange, Kokkos::ALL() );
167 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), ptRange, Kokkos::ALL() );
172 INTREPID2_TEST_FOR_ABORT(
true,
173 ">>> ERROR: (Intrepid2::Basis_HGRAD_TRI_Cn_FEM_ORTH::Functor) operator is not supported");
184template<
typename DeviceType = void,
185 typename outputValueType = double,
186 typename pointValueType =
double>
188 :
public Basis<DeviceType,outputValueType,pointValueType> {
190 typedef double value_type;
214 const EOperator operatorType = OPERATOR_VALUE )
const override {
215 #ifdef HAVE_INTREPID2_DEBUG
223 Impl::Basis_HGRAD_TRI_Cn_FEM_ORTH::
224 getValues<DeviceType,numPtsPerEval>(space,
Header file for the abstract base class Intrepid2::Basis.
void getValues_HGRAD_Args(const outputValueViewType outputValues, const inputPointViewType inputPoints, const EOperator operatorType, const shards::CellTopology cellTopo, const ordinal_type basisCard)
Runtime check of the arguments for the getValues method in an HGRAD-conforming FEM basis....
Definition file for FEM orthogonal basis functions of arbitrary degree for H(grad) functions on TRI.
Implementation of the default H(grad)-compatible orthogonal basis (Dubiner) of arbitrary degree on tr...
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.
An abstract base class that defines interface for concrete basis implementations for Finite Element (...
Kokkos::DynRankView< PointValueType, Kokkos::LayoutStride, DeviceType > PointViewType
View type for input points.
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< OutputValueType, Kokkos::LayoutStride, DeviceType > OutputViewType
View type for basis value output.
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.
ordinal_type getCardinality() const
Returns cardinality of the basis.
Kokkos::DynRankView< scalarType, Kokkos::LayoutStride, DeviceType > ScalarViewType
View type for scalars.
Kokkos::View< ordinal_type **, typename ExecutionSpace::array_layout, Kokkos::HostSpace > OrdinalTypeArray2DHost
View type for 2d host array.
shards::CellTopology getBaseCellTopology() const
Returns the base cell topology for which the basis is defined. See Shards documentation https://trili...
Kokkos::View< ordinal_type *, typename ExecutionSpace::array_layout, Kokkos::HostSpace > OrdinalTypeArray1DHost
View type for 1d host array.
typename DeviceType::execution_space ExecutionSpace
(Kokkos) Execution space for basis.
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.
See Intrepid2::Basis_HGRAD_TRI_Cn_FEM_ORTH.
See Intrepid2::Basis_HGRAD_TRI_Cn_FEM_ORTH.