49 #ifndef __INTREPID2_HGRAD_TET_COMP12_FEM_HPP__
50 #define __INTREPID2_HGRAD_TET_COMP12_FEM_HPP__
112 template<
typename po
intValueType>
113 KOKKOS_INLINE_FUNCTION
116 const pointValueType y,
117 const pointValueType z );
122 template<EOperator opType>
124 template<
typename outputValueViewType,
125 typename inputPointViewType>
126 KOKKOS_INLINE_FUNCTION
128 getValues( outputValueViewType outputValues,
129 const inputPointViewType inputPoints );
133 template<
typename ExecSpaceType,
134 typename outputValueValueType,
class ...outputValueProperties,
135 typename inputPointValueType,
class ...inputPointProperties>
137 getValues( Kokkos::DynRankView<outputValueValueType,outputValueProperties...> outputValues,
138 const Kokkos::DynRankView<inputPointValueType, inputPointProperties...> inputPoints,
144 template<
typename outputValueViewType,
145 typename inputPointViewType,
148 outputValueViewType _outputValues;
149 const inputPointViewType _inputPoints;
151 KOKKOS_INLINE_FUNCTION
152 Functor( outputValueViewType outputValues_,
153 inputPointViewType inputPoints_ )
154 : _outputValues(outputValues_), _inputPoints(inputPoints_) {}
156 KOKKOS_INLINE_FUNCTION
157 void operator()(
const ordinal_type pt)
const {
159 case OPERATOR_VALUE : {
160 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), pt );
161 const auto input = Kokkos::subview( _inputPoints, pt, Kokkos::ALL() );
166 case OPERATOR_MAX : {
167 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), pt, Kokkos::ALL() );
168 const auto input = Kokkos::subview( _inputPoints, pt, Kokkos::ALL() );
173 INTREPID2_TEST_FOR_ABORT( opType != OPERATOR_VALUE &&
174 opType != OPERATOR_GRAD &&
175 opType != OPERATOR_MAX,
176 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::Functor::operator() operator is not supported");
184 template<
typename ExecSpaceType = void,
185 typename outputValueType = double,
186 typename pointValueType =
double>
218 const pointViewType inputPoints,
219 const EOperator operatorType = OPERATOR_VALUE )
const {
220 #ifdef HAVE_INTREPID2_DEBUG
227 Impl::Basis_HGRAD_TET_COMP12_FEM::
228 getValues<ExecSpaceType>( outputValues,
242 #ifdef HAVE_INTREPID2_DEBUG
244 INTREPID2_TEST_FOR_EXCEPTION( dofCoords.rank() != 2, std::invalid_argument,
245 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) rank = 2 required for dofCoords array");
247 INTREPID2_TEST_FOR_EXCEPTION(
static_cast<ordinal_type
>(dofCoords.extent(0)) != this->getCardinality(), std::invalid_argument,
248 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) mismatch in number of dof and 0th dimension of dofCoords array");
250 INTREPID2_TEST_FOR_EXCEPTION( dofCoords.extent(1) != this->getBaseCellTopology().getDimension(), std::invalid_argument,
251 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) incorrect reference cell (1st) dimension in dofCoords array");
253 Kokkos::deep_copy(dofCoords, this->
dofCoords_);
259 return "Intrepid2_HGRAD_TET_COMP12_FEM";