49#ifndef __INTREPID2_HGRAD_TRI_CN_FEM_ORTH_HPP__
50#define __INTREPID2_HGRAD_TRI_CN_FEM_ORTH_HPP__
70template<
typename OutputViewType,
71typename inputViewType,
73bool hasDeriv, ordinal_type n>
77 generate( OutputViewType output,
80 const ordinal_type
p );
86template<
typename OutputViewType,
93 generate( OutputViewType output,
96 const ordinal_type
p );
102template<
typename OutputViewType,
109 generate( OutputViewType output,
112 const ordinal_type
p );
124 template<EOperator opType>
126 template<
typename OutputViewType,
131 getValues( OutputViewType output,
134 const ordinal_type
order);
141 getValues( Kokkos::DynRankView<outputValueValueType,outputValueProperties...>
outputValues,
142 const Kokkos::DynRankView<inputPointValueType, inputPointProperties...>
inputPoints,
143 const ordinal_type
order,
158 const ordinal_type _order;
164 const ordinal_type
order_ )
168 void operator()(
const size_type
iter)
const {
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");
216template<
typename DeviceType = void,
217 typename outputValueType = double,
218 typename pointValueType =
double>
220 :
public Basis<DeviceType,outputValueType,pointValueType> {
222 typedef double value_type;
240 const PointViewType inputPoints,
241 const EOperator operatorType = OPERATOR_VALUE )
const override {
242 #ifdef HAVE_INTREPID2_DEBUG
250 Impl::Basis_HGRAD_TRI_Cn_FEM_ORTH::
251 getValues<DeviceType,numPtsPerEval>( outputValues,
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...
Basis_HGRAD_TRI_Cn_FEM_ORTH(const ordinal_type order)
Constructor.
virtual void getValues(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.
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.
Device DeviceType
(Kokkos) Device type on which Basis is templated. Does not necessarily return true for Kokkos::is_dev...
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.
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.