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>
193 using ordinal_type_array_1d_host INTREPID2_DEPRECATED_TYPENAME_REPLACEMENT(
"use OrdinalTypeArray1DHost instead",
"OrdinalTypeArray1DHost") = OrdinalTypeArray1DHost INTREPID2_DEPRECATED_TYPENAME_TRAILING_ATTRIBUTE(
"use OrdinalTypeArray1DHost instead");
194 using ordinal_type_array_2d_host INTREPID2_DEPRECATED_TYPENAME_REPLACEMENT(
"use OrdinalTypeArray2DHost instead",
"OrdinalTypeArray2DHost") = OrdinalTypeArray2DHost INTREPID2_DEPRECATED_TYPENAME_TRAILING_ATTRIBUTE(
"use OrdinalTypeArray2DHost instead");
195 using ordinal_type_array_3d_host INTREPID2_DEPRECATED_TYPENAME_REPLACEMENT(
"use OrdinalTypeArray3DHost instead",
"OrdinalTypeArray3DHost") = OrdinalTypeArray3DHost INTREPID2_DEPRECATED_TYPENAME_TRAILING_ATTRIBUTE(
"use OrdinalTypeArray3DHost instead");
205 using outputViewType INTREPID2_DEPRECATED_TYPENAME_REPLACEMENT(
"use OutputViewType instead",
"OutputViewType") = OutputViewType INTREPID2_DEPRECATED_TYPENAME_TRAILING_ATTRIBUTE(
"use OutputViewType instead");
206 using pointViewType INTREPID2_DEPRECATED_TYPENAME_REPLACEMENT(
"use PointViewType instead",
"PointViewType") = PointViewType INTREPID2_DEPRECATED_TYPENAME_TRAILING_ATTRIBUTE(
"use PointViewType instead");
207 using scalarViewType INTREPID2_DEPRECATED_TYPENAME_REPLACEMENT(
"use ScalarViewType instead",
"ScalarViewType") = ScalarViewType INTREPID2_DEPRECATED_TYPENAME_TRAILING_ATTRIBUTE(
"use ScalarViewType instead");
226 const PointViewType inputPoints,
227 const EOperator operatorType = OPERATOR_VALUE )
const {
228 #ifdef HAVE_INTREPID2_DEBUG
235 Impl::Basis_HGRAD_TET_COMP12_FEM::
236 getValues<ExecSpaceType>( outputValues,
250 #ifdef HAVE_INTREPID2_DEBUG
252 INTREPID2_TEST_FOR_EXCEPTION( dofCoords.rank() != 2, std::invalid_argument,
253 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) rank = 2 required for dofCoords array");
255 INTREPID2_TEST_FOR_EXCEPTION(
static_cast<ordinal_type
>(dofCoords.extent(0)) != this->getCardinality(), std::invalid_argument,
256 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) mismatch in number of dof and 0th dimension of dofCoords array");
258 INTREPID2_TEST_FOR_EXCEPTION( dofCoords.extent(1) != this->getBaseCellTopology().getDimension(), std::invalid_argument,
259 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) incorrect reference cell (1st) dimension in dofCoords array");
261 Kokkos::deep_copy(dofCoords, this->
dofCoords_);
267 return "Intrepid2_HGRAD_TET_COMP12_FEM";