16 #ifndef __INTREPID2_HGRAD_QUAD_C2_FEM_DEF_HPP__
17 #define __INTREPID2_HGRAD_QUAD_C2_FEM_DEF_HPP__
25 template<
bool serendipity>
26 template<EOperator opType>
27 template<
typename OutputViewType,
28 typename inputViewType>
29 KOKKOS_INLINE_FUNCTION
31 Basis_HGRAD_QUAD_DEG2_FEM<serendipity>::Serial<opType>::
32 getValues( OutputViewType output,
33 const inputViewType input ) {
35 case OPERATOR_VALUE : {
36 const auto x = input(0);
37 const auto y = input(1);
40 if constexpr (!serendipity) {
41 output.access(0) = x*(x - 1.0)*y*(y - 1.0)/4.0;
42 output.access(1) = x*(x + 1.0)*y*(y - 1.0)/4.0;
43 output.access(2) = x*(x + 1.0)*y*(y + 1.0)/4.0;
44 output.access(3) = x*(x - 1.0)*y*(y + 1.0)/4.0;
46 output.access(4) = (1.0 - x)*(1.0 + x)*y*(y - 1.0)/2.0;
47 output.access(5) = x*(x + 1.0)*(1.0 - y)*(1.0 + y)/2.0;
48 output.access(6) = (1.0 - x)*(1.0 + x)*y*(y + 1.0)/2.0;
49 output.access(7) = x*(x - 1.0)*(1.0 - y)*(1.0 + y)/2.0;
52 output.access(8) = (1.0 - x)*(1.0 + x)*(1.0 - y)*(1.0 + y);
56 output.access(0) = 0.25*(1.0 - x)*(1.0 - y)*(-x - y - 1.0);
57 output.access(1) = 0.25*(1.0 + x)*(1.0 - y)*( x - y - 1.0);
58 output.access(2) = 0.25*(1.0 + x)*(1.0 + y)*( x + y - 1.0);
59 output.access(3) = 0.25*(1.0 - x)*(1.0 + y)*(-x + y - 1.0);
61 output.access(4) = 0.5*(1.0 - x*x)*(1.0 - y);
62 output.access(5) = 0.5*(1.0 + x)*(1.0 - y*y);
63 output.access(6) = 0.5*(1.0 - x*x)*(1.0 + y);
64 output.access(7) = 0.5*(1.0 - x)*(1.0 - y*y);
70 case OPERATOR_GRAD : {
71 const auto x = input(0);
72 const auto y = input(1);
74 if constexpr (!serendipity) {
76 output.access(0, 0) = (-0.25 + 0.5*x)*(-1. + y)*y;
77 output.access(0, 1) = (-1.0 + x)*x*(-0.25 + 0.5*y);
79 output.access(1, 0) = (0.25 + 0.5*x)*(-1. + y)*y;
80 output.access(1, 1) = x*(1. + x)*(-0.25 + 0.5*y);
82 output.access(2, 0) = (0.25 + 0.5*x)*y*(1. + y);
83 output.access(2, 1) = x*(1. + x)*(0.25 + 0.5*y);
85 output.access(3, 0) = (-0.25 + 0.5*x)*y*(1. + y);
86 output.access(3, 1) = (-1. + x)*x*(0.25 + 0.5*y);
88 output.access(4, 0) = x*(1.0 - y)*y;
89 output.access(4, 1) = 0.5*(1.0 - x)*(1.0 + x)*(-1.0 + 2.0*y);
91 output.access(5, 0) = 0.5*(1.0 - y)*(1.0 + y)*(1.0 + 2.0*x);
92 output.access(5, 1) =-x*(1.0 + x)*y;
94 output.access(6, 0) =-y*(1.0 + y)*x;
95 output.access(6, 1) = 0.5*(1.0 - x)*(1.0 + x)*(1.0 + 2.0*y);
97 output.access(7, 0) = 0.5*(1.0 - y)*(1.0+ y)*(-1.0 + 2.0*x);
98 output.access(7, 1) = (1.0 - x)*x*y;
100 output.access(8, 0) =-2.0*(1.0 - y)*(1.0 + y)*x;
101 output.access(8, 1) =-2.0*(1.0 - x)*(1.0 + x)*y;
105 output.access(0, 0) = -0.25*(1.0-y)*(-x-y-1.0) - 0.25*(1.0-x)*(1.0-y);
106 output.access(0, 1) = -0.25*(1.0-x)*(-x-y-1.0) - 0.25*(1.0-x)*(1.0-y);
108 output.access(1, 0) = 0.25*(1.0-y)*( x-y-1.0) + 0.25*(1.0+x)*(1.0-y);
109 output.access(1, 1) = -0.25*(1.0+x)*( x-y-1.0) - 0.25*(1.0+x)*(1.0-y);
111 output.access(2, 0) = 0.25*(1.0+y)*( x+y-1.0) + 0.25*(1.0+x)*(1.0+y);
112 output.access(2, 1) = 0.25*(1.0+x)*( x+y-1.0) + 0.25*(1.0+x)*(1.0+y);
114 output.access(3, 0) = -0.25*(1.0+y)*(-x+y-1.0) - 0.25*(1.0-x)*(1.0+y);
115 output.access(3, 1) = 0.25*(1.0-x)*(-x+y-1.0) + 0.25*(1.0-x)*(1.0+y);
117 output.access(4, 0) = -x*(1.0-y);
118 output.access(4, 1) = -0.5*(1.0-x*x);
120 output.access(5, 0) = 0.5*(1.0-y*y);
121 output.access(5, 1) = -y*(1.0+x);
123 output.access(6, 0) = -x*(1.0+y);
124 output.access(6, 1) = 0.5*(1.0-x*x);
126 output.access(7, 0) = -0.5*(1.0-y*y);
127 output.access(7, 1) = -y*(1.0-x);
131 case OPERATOR_CURL : {
132 const auto x = input(0);
133 const auto y = input(1);
138 if constexpr (!serendipity) {
139 output.access(0, 1) =-(-0.25 + 0.5*x)*(-1. + y)*y;
140 output.access(0, 0) = (-1.0 + x)*x*(-0.25 + 0.5*y);
142 output.access(1, 1) =-(0.25 + 0.5*x)*(-1. + y)*y;
143 output.access(1, 0) = x*(1. + x)*(-0.25 + 0.5*y);
145 output.access(2, 1) =-(0.25 + 0.5*x)*y*(1. + y);
146 output.access(2, 0) = x*(1. + x)*(0.25 + 0.5*y);
148 output.access(3, 1) =-(-0.25 + 0.5*x)*y*(1. + y);
149 output.access(3, 0) = (-1. + x)*x*(0.25 + 0.5*y);
151 output.access(4, 1) =-x*(1.0 - y)*y;
152 output.access(4, 0) = 0.5*(1.0 - x)*(1.0 + x)*(-1.0 + 2.0*y);
154 output.access(5, 1) =-0.5*(1.0 - y)*(1.0 + y)*(1.0 + 2.0*x);
155 output.access(5, 0) =-x*(1.0 + x)*y;
157 output.access(6, 1) = y*(1.0 + y)*x;
158 output.access(6, 0) = 0.5*(1.0 - x)*(1.0 + x)*(1.0 + 2.0*y);
160 output.access(7, 1) =-0.5*(1.0 - y)*(1.0 + y)*(-1.0 + 2.0*x);
161 output.access(7, 0) = (1.0 - x)*x*y;
163 output.access(8, 1) = 2.0*(1.0 - y)*(1.0 + y)*x;
164 output.access(8, 0) =-2.0*(1.0 - x)*(1.0 + x)*y;
167 output.access(0, 1) = 0.25*(1.0-y)*(-x-y-1.0) + 0.25*(1.0-x)*(1.0-y);
168 output.access(0, 0) = -0.25*(1.0-x)*(-x-y-1.0) - 0.25*(1.0-x)*(1.0-y);
170 output.access(1, 1) = -0.25*(1.0-y)*( x-y-1.0) - 0.25*(1.0+x)*(1.0-y);
171 output.access(1, 0) = -0.25*(1.0+x)*( x-y-1.0) - 0.25*(1.0+x)*(1.0-y);
173 output.access(2, 1) = -0.25*(1.0+y)*( x+y-1.0) - 0.25*(1.0+x)*(1.0+y);
174 output.access(2, 0) = 0.25*(1.0+x)*( x+y-1.0) + 0.25*(1.0+x)*(1.0+y);
176 output.access(3, 1) = 0.25*(1.0+y)*(-x+y-1.0) + 0.25*(1.0-x)*(1.0+y);
177 output.access(3, 0) = 0.25*(1.0-x)*(-x+y-1.0) + 0.25*(1.0-x)*(1.0+y);
179 output.access(4, 1) = x*(1.0-y);
180 output.access(4, 0) = -0.5*(1.0-x*x);
182 output.access(5, 1) = -0.5*(1.0-y*y);
183 output.access(5, 0) = -y*(1.0+x);
185 output.access(6, 1) = x*(1.0+y);
186 output.access(6, 0) = 0.5*(1.0-x*x);
188 output.access(7, 1) = 0.5*(1.0-y*y);
189 output.access(7, 0) = -y*(1.0-x);
194 const auto x = input(0);
195 const auto y = input(1);
198 if constexpr (!serendipity) {
200 output.access(0, 0) = 0.5*(-1.0 + y)*y;
201 output.access(0, 1) = 0.25 - 0.5*y + x*(-0.5 + 1.*y);
202 output.access(0, 2) = 0.5*(-1.0 + x)*x;
204 output.access(1, 0) = 0.5*(-1.0 + y)*y;
205 output.access(1, 1) =-0.25 + 0.5*y + x*(-0.5 + 1.*y);
206 output.access(1, 2) = 0.5*x*(1.0 + x);
208 output.access(2, 0) = 0.5*y*(1.0 + y);
209 output.access(2, 1) = 0.25 + 0.5*y + x*(0.5 + 1.*y);
210 output.access(2, 2) = 0.5*x*(1.0 + x);
212 output.access(3, 0) = 0.5*y*(1.0 + y);
213 output.access(3, 1) =-0.25 - 0.5*y + x*(0.5 + 1.*y);
214 output.access(3, 2) = 0.5*(-1.0 + x)*x;
216 output.access(4, 0) = (1.0 - y)*y;
217 output.access(4, 1) = x*(1. - 2.*y);
218 output.access(4, 2) = (1.0 - x)*(1.0 + x);
220 output.access(5, 0) = (1.0 - y)*(1.0 + y);
221 output.access(5, 1) = x*(0. - 2.*y) - 1.*y;
222 output.access(5, 2) =-x*(1.0 + x);
224 output.access(6, 0) =-y*(1.0 + y);
225 output.access(6, 1) = x*(-1. - 2.*y);
226 output.access(6, 2) = (1.0 - x)*(1.0 + x);
228 output.access(7, 0) = (1.0 - y)*(1.0 + y);
229 output.access(7, 1) = x*(0. - 2.*y) + 1.*y;
230 output.access(7, 2) = (1.0 - x)*x;
232 output.access(8, 0) =-2.0 + 2.0*y*y;
233 output.access(8, 1) = 4*x*y;
234 output.access(8, 2) =-2.0 + 2.0*x*x;
238 output.access(0, 0) = 0.5*(1.0 - y);
239 output.access(0, 1) = 0.25*(1.0 - 2.0*x - 2.0*y);
240 output.access(0, 2) = 0.5*(1.0 - x);
242 output.access(1, 0) = 0.5*(1.0 - y);
243 output.access(1, 1) = -0.25*(1.0 + 2.0*x - 2.0*y);
244 output.access(1, 2) = 0.5*(1.0 + x);
246 output.access(2, 0) = 0.5*(1.0 + y);
247 output.access(2, 1) = 0.25*(1.0 + 2.0*x + 2.0*y);
248 output.access(2, 2) = 0.5*(1.0 + x);
250 output.access(3, 0) = 0.5*(1.0 + y);
251 output.access(3, 1) = -0.25*(1.0 - 2.0*x + 2.0*y);
252 output.access(3, 2) = 0.5*(1.0 - x);
254 output.access(4, 0) = -(1.0 - y);
255 output.access(4, 1) = x;
256 output.access(4, 2) = 0.0;
258 output.access(5, 0) = 0.0;
259 output.access(5, 1) = -y;
260 output.access(5, 2) = -(1.0 + x);
262 output.access(6, 0) = -(1.0 + y);
263 output.access(6, 1) = -x;
264 output.access(6, 2) = 0.0;
266 output.access(7, 0) = 0.0;
267 output.access(7, 1) = y;
268 output.access(7, 2) = -(1.0 - x);
274 if constexpr (!serendipity) {
275 const auto x = input(0);
276 const auto y = input(1);
277 output.access(0, 0) = 0.0;
278 output.access(0, 1) =-0.5 + y;
279 output.access(0, 2) =-0.5 + x;
280 output.access(0, 3) = 0.0;
282 output.access(1, 0) = 0.0;
283 output.access(1, 1) =-0.5 + y;
284 output.access(1, 2) = 0.5 + x;
285 output.access(1, 3) = 0.0;
287 output.access(2, 0) = 0.0;
288 output.access(2, 1) = 0.5 + y;
289 output.access(2, 2) = 0.5 + x;
290 output.access(2, 3) = 0.0;
292 output.access(3, 0) = 0.0;
293 output.access(3, 1) = 0.5 + y;
294 output.access(3, 2) =-0.5 + x;
295 output.access(3, 3) = 0.0;
297 output.access(4, 0) = 0.0;
298 output.access(4, 1) = 1.0 - 2.0*y;
299 output.access(4, 2) =-2.0*x;
300 output.access(4, 3) = 0.0;
302 output.access(5, 0) = 0.0;
303 output.access(5, 1) =-2.0*y;
304 output.access(5, 2) =-1.0 - 2.0*x;
305 output.access(5, 3) = 0.0;
307 output.access(6, 0) = 0.0;
308 output.access(6, 1) =-1.0 - 2.0*y;
309 output.access(6, 2) =-2.0*x;
310 output.access(6, 3) = 0.0;
312 output.access(7, 0) = 0.0;
313 output.access(7, 1) =-2.0*y;
314 output.access(7, 2) = 1.0 - 2.0*x;
315 output.access(7, 3) = 0.0;
317 output.access(8, 0) = 0.0;
318 output.access(8, 1) = 4.0*y;
319 output.access(8, 2) = 4.0*x;
320 output.access(8, 3) = 0.0;
324 output.access(0, 0) = 0.0;
325 output.access(0, 1) =-0.5;
326 output.access(0, 2) =-0.5;
327 output.access(0, 3) = 0.0;
329 output.access(1, 0) = 0.0;
330 output.access(1, 1) =-0.5;
331 output.access(1, 2) = 0.5;
332 output.access(1, 3) = 0.0;
334 output.access(2, 0) = 0.0;
335 output.access(2, 1) = 0.5;
336 output.access(2, 2) = 0.5;
337 output.access(2, 3) = 0.0;
339 output.access(3, 0) = 0.0;
340 output.access(3, 1) = 0.5;
341 output.access(3, 2) =-0.5;
342 output.access(3, 3) = 0.0;
344 output.access(4, 0) = 0.0;
345 output.access(4, 1) = 1.0;
346 output.access(4, 2) = 0.0;
347 output.access(4, 3) = 0.0;
349 output.access(5, 0) = 0.0;
350 output.access(5, 1) = 0.0;
351 output.access(5, 2) =-1.0;
352 output.access(5, 3) = 0.0;
354 output.access(6, 0) = 0.0;
355 output.access(6, 1) =-1.0;
356 output.access(6, 2) = 0.0;
357 output.access(6, 3) = 0.0;
359 output.access(7, 0) = 0.0;
360 output.access(7, 1) = 0.0;
361 output.access(7, 2) = 1.0;
362 output.access(7, 3) = 0.0;
368 const ordinal_type jend = output.extent(1);
369 const ordinal_type iend = output.extent(0);
371 for (ordinal_type j=0;j<jend;++j)
372 for (ordinal_type i=0;i<iend;++i)
373 output.access(i, j) = 0.0;
375 if constexpr (!serendipity) {
376 output.access(0, 2) = 1.0;
377 output.access(1, 2) = 1.0;
378 output.access(2, 2) = 1.0;
379 output.access(3, 2) = 1.0;
381 output.access(4, 2) =-2.0;
382 output.access(5, 2) =-2.0;
383 output.access(6, 2) =-2.0;
384 output.access(7, 2) =-2.0;
386 output.access(8, 2) = 4.0;
390 case OPERATOR_MAX : {
391 const ordinal_type jend = output.extent(1);
392 const ordinal_type iend = output.extent(0);
394 for (ordinal_type j=0;j<jend;++j)
395 for (ordinal_type i=0;i<iend;++i)
396 output.access(i, j) = 0.0;
400 INTREPID2_TEST_FOR_ABORT( opType != OPERATOR_VALUE &&
401 opType != OPERATOR_GRAD &&
402 opType != OPERATOR_CURL &&
403 opType != OPERATOR_D1 &&
404 opType != OPERATOR_D2 &&
405 opType != OPERATOR_D3 &&
406 opType != OPERATOR_D4 &&
407 opType != OPERATOR_MAX,
408 ">>> ERROR: (Intrepid2::Basis_HGRAD_QUAD_C2_FEM::Serial::getValues) operator is not supported");
414 template<
bool serendipity>
415 template<
typename DT,
416 typename outputValueValueType,
class ...outputValueProperties,
417 typename inputPointValueType,
class ...inputPointProperties>
419 Basis_HGRAD_QUAD_DEG2_FEM<serendipity>::
420 getValues(
const typename DT::execution_space& space,
421 Kokkos::DynRankView<outputValueValueType,outputValueProperties...> outputValues,
422 const Kokkos::DynRankView<inputPointValueType, inputPointProperties...> inputPoints,
423 const EOperator operatorType ) {
424 typedef Kokkos::DynRankView<outputValueValueType,outputValueProperties...> outputValueViewType;
425 typedef Kokkos::DynRankView<inputPointValueType, inputPointProperties...> inputPointViewType;
426 typedef typename ExecSpace<typename inputPointViewType::execution_space,typename DT::execution_space>::ExecSpaceType ExecSpaceType;
429 const auto loopSize = inputPoints.extent(0);
430 Kokkos::RangePolicy<ExecSpaceType,Kokkos::Schedule<Kokkos::Static> > policy(space, 0, loopSize);
432 switch (operatorType) {
434 case OPERATOR_VALUE: {
435 typedef Functor<outputValueViewType,inputPointViewType,OPERATOR_VALUE> FunctorType;
436 Kokkos::parallel_for( policy, FunctorType(outputValues, inputPoints) );
441 typedef Functor<outputValueViewType,inputPointViewType,OPERATOR_GRAD> FunctorType;
442 Kokkos::parallel_for( policy, FunctorType(outputValues, inputPoints) );
445 case OPERATOR_CURL: {
446 typedef Functor<outputValueViewType,inputPointViewType,OPERATOR_CURL> FunctorType;
447 Kokkos::parallel_for( policy, FunctorType(outputValues, inputPoints) );
451 INTREPID2_TEST_FOR_EXCEPTION( (operatorType == OPERATOR_DIV), std::invalid_argument,
452 ">>> ERROR (Basis_HGRAD_QUAD_C2_FEM): DIV is invalid operator for rank-0 (scalar) functions in 2D");
456 typedef Functor<outputValueViewType,inputPointViewType,OPERATOR_D2> FunctorType;
457 Kokkos::parallel_for( policy, FunctorType(outputValues, inputPoints) );
462 typedef Functor<outputValueViewType,inputPointViewType,OPERATOR_D3> FunctorType;
463 Kokkos::parallel_for( policy, FunctorType(outputValues, inputPoints) );
468 typedef Functor<outputValueViewType,inputPointViewType,OPERATOR_D4> FunctorType;
469 Kokkos::parallel_for( policy, FunctorType(outputValues, inputPoints) );
478 typedef Functor<outputValueViewType,inputPointViewType,OPERATOR_MAX> FunctorType;
479 Kokkos::parallel_for( policy, FunctorType(outputValues, inputPoints) );
483 INTREPID2_TEST_FOR_EXCEPTION( !( Intrepid2::isValidOperator(operatorType) ), std::invalid_argument,
484 ">>> ERROR (Basis_HGRAD_QUAD_C2_FEM): Invalid operator type");
493 template<
bool serendipity,
typename DT,
typename OT,
typename PT>
496 const ordinal_type spaceDim = 2;
497 this->basisCardinality_ = serendipity ? 8 : 9;
498 this->basisDegree_ = 2;
499 this->basisCellTopologyKey_ = shards::Quadrilateral<4>::key;
500 this->basisType_ = BASIS_FEM_DEFAULT;
501 this->basisCoordinates_ = COORDINATES_CARTESIAN;
502 this->functionSpace_ = FUNCTION_SPACE_HGRAD;
506 const ordinal_type tagSize = 4;
507 const ordinal_type posScDim = 0;
508 const ordinal_type posScOrd = 1;
509 const ordinal_type posDfOrd = 2;
512 ordinal_type tags[36] = { 0, 0, 0, 1,
528 this->setOrdinalTagData(this->tagToOrdinal_,
531 this->basisCardinality_,
539 Kokkos::DynRankView<typename ScalarViewType::value_type,typename DT::execution_space::array_layout,Kokkos::HostSpace>
540 dofCoords(
"dofCoordsHost", this->basisCardinality_,spaceDim);
542 dofCoords(0,0) = -1.0; dofCoords(0,1) = -1.0;
543 dofCoords(1,0) = 1.0; dofCoords(1,1) = -1.0;
544 dofCoords(2,0) = 1.0; dofCoords(2,1) = 1.0;
545 dofCoords(3,0) = -1.0; dofCoords(3,1) = 1.0;
547 dofCoords(4,0) = 0.0; dofCoords(4,1) = -1.0;
548 dofCoords(5,0) = 1.0; dofCoords(5,1) = 0.0;
549 dofCoords(6,0) = 0.0; dofCoords(6,1) = 1.0;
550 dofCoords(7,0) = -1.0; dofCoords(7,1) = 0.0;
552 if constexpr (!serendipity) {
553 dofCoords(8,0) = 0.0; dofCoords(8,1) = 0.0;
556 this->dofCoords_ = Kokkos::create_mirror_view(
typename DT::memory_space(), dofCoords);
557 Kokkos::deep_copy(this->dofCoords_, dofCoords);
560 template<
bool serendipity,
typename DT,
typename OT,
typename PT>
563 ordinal_type& perTeamSpaceSize,
564 ordinal_type& perThreadSpaceSize,
566 const EOperator operatorType)
const {
567 perTeamSpaceSize = 0;
568 perThreadSpaceSize = 0;
571 template<
bool serendipity,
typename DT,
typename OT,
typename PT>
572 KOKKOS_INLINE_FUNCTION
575 OutputViewType outputValues,
576 const PointViewType inputPoints,
577 const EOperator operatorType,
578 const typename Kokkos::TeamPolicy<typename DT::execution_space>::member_type& team_member,
579 const typename DT::execution_space::scratch_memory_space & scratchStorage,
580 const ordinal_type subcellDim,
581 const ordinal_type subcellOrdinal)
const {
583 INTREPID2_TEST_FOR_ABORT( !((subcellDim <= 0) && (subcellOrdinal == -1)),
584 ">>> ERROR: (Intrepid2::Basis_HGRAD_QUAD_DEG2_FEM::getValues), The capability of selecting subsets of basis functions has not been implemented yet.");
586 (void) scratchStorage;
588 const int numPoints = inputPoints.extent(0);
590 switch(operatorType) {
592 Kokkos::parallel_for (Kokkos::TeamThreadRange (team_member, numPoints), [=] (ordinal_type& pt) {
593 auto output = Kokkos::subview( outputValues, Kokkos::ALL(), pt, Kokkos::ALL() );
594 const auto input = Kokkos::subview( inputPoints, pt, Kokkos::ALL() );
596 SerialValue::getValues( output, input);
600 Kokkos::parallel_for (Kokkos::TeamThreadRange (team_member, numPoints), [=] (ordinal_type& pt) {
601 auto output = Kokkos::subview( outputValues, Kokkos::ALL(), pt, Kokkos::ALL() );
602 const auto input = Kokkos::subview( inputPoints, pt, Kokkos::ALL() );
603 using SerialGrad =
typename Impl::Basis_HGRAD_QUAD_DEG2_FEM<serendipity>::template Serial<OPERATOR_GRAD>;
604 SerialGrad::getValues( output, input);
608 Kokkos::parallel_for (Kokkos::TeamThreadRange (team_member, numPoints), [=] (ordinal_type& pt) {
609 auto output = Kokkos::subview( outputValues, Kokkos::ALL(), pt, Kokkos::ALL() );
610 const auto input = Kokkos::subview( inputPoints, pt, Kokkos::ALL() );
611 using SerialCurl =
typename Impl::Basis_HGRAD_QUAD_DEG2_FEM<serendipity>::template Serial<OPERATOR_CURL>;
612 SerialCurl::getValues( output, input);
616 INTREPID2_TEST_FOR_ABORT(
true,
">>> ERROR: (Intrepid2::Basis_HGRAD_QUAD_DEG2_FEM::getValues), Operator Type not supported.");
Kokkos::View< ordinal_type *, typename ExecutionSpace::array_layout, Kokkos::HostSpace > OrdinalTypeArray1DHost
View type for 1d host array.
virtual void getScratchSpaceSize(ordinal_type &perTeamSpaceSize, ordinal_type &perThreadSpaceSize, const PointViewType inputPointsconst, const EOperator operatorType=OPERATOR_VALUE) const override
Return the size of the scratch space, in bytes, needed for using the team-level implementation of get...
Kokkos::DynRankView< PointValueType, Kokkos::LayoutStride, DeviceType > PointViewType
View type for input points.
See Intrepid2::Basis_HGRAD_QUAD_DEG2_FEM.
Basis_HGRAD_QUAD_DEG2_FEM()
Constructor.
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.