12 #include "../quadinterpolator.hpp" 22 namespace quadrature_interpolator
28 void TensorValues<QVectorLayout::byVDIM>(
const int NE,
30 const DofToQuad &maps,
34 if (NE == 0) {
return; }
35 const int dim = maps.FE->GetDim();
36 const int D1D = maps.ndof;
37 const int Q1D = maps.nqpt;
38 const double *B = maps.B.Read();
39 const double *X = e_vec.Read();
40 double *Y = q_val.Write();
44 const int id = (vdim<<8) | (D1D<<4) | Q1D;
50 <<
" are not supported!");
52 "Quadrature rules with more than " 54 Values1D<L>(NE, B, X, Y, vdim, D1D, Q1D);
61 case 0x124:
return Values2D<L,1,2,4,8>(NE,B,X,Y);
62 case 0x136:
return Values2D<L,1,3,6,4>(NE,B,X,Y);
63 case 0x148:
return Values2D<L,1,4,8,2>(NE,B,X,Y);
65 case 0x224:
return Values2D<L,2,2,4,8>(NE,B,X,Y);
66 case 0x234:
return Values2D<L,2,3,4,8>(NE,B,X,Y);
67 case 0x236:
return Values2D<L,2,3,6,4>(NE,B,X,Y);
68 case 0x248:
return Values2D<L,2,4,8,2>(NE,B,X,Y);
74 MFEM_VERIFY(D1D <= MD,
"Orders higher than " << MD-1
75 <<
" are not supported!");
76 MFEM_VERIFY(Q1D <= MQ,
"Quadrature rules with more than " 77 << MQ <<
" 1D points are not supported!");
78 Values2D<L>(NE,B,X,Y,vdim,D1D,Q1D);
87 case 0x124:
return Values3D<L,1,2,4>(NE,B,X,Y);
88 case 0x136:
return Values3D<L,1,3,6>(NE,B,X,Y);
89 case 0x148:
return Values3D<L,1,4,8>(NE,B,X,Y);
91 case 0x324:
return Values3D<L,3,2,4>(NE,B,X,Y);
92 case 0x336:
return Values3D<L,3,3,6>(NE,B,X,Y);
93 case 0x348:
return Values3D<L,3,4,8>(NE,B,X,Y);
96 case 0x322:
return Values3D<L,3,2,2>(NE,B,X,Y);
97 case 0x333:
return Values3D<L,3,3,3>(NE,B,X,Y);
98 case 0x344:
return Values3D<L,3,4,4>(NE,B,X,Y);
99 case 0x355:
return Values3D<L,3,5,5>(NE,B,X,Y);
100 case 0x366:
return Values3D<L,3,6,6>(NE,B,X,Y);
101 case 0x377:
return Values3D<L,3,7,7>(NE,B,X,Y);
102 case 0x388:
return Values3D<L,3,8,8>(NE,B,X,Y);
103 case 0x399:
return Values3D<L,3,9,9>(NE,B,X,Y);
109 MFEM_VERIFY(D1D <= MD,
"Orders higher than " << MD-1
110 <<
" are not supported!");
111 MFEM_VERIFY(Q1D <= MQ,
"Quadrature rules with more than " 112 << MQ <<
" 1D points are not supported!");
113 Values3D<L>(NE,B,X,Y,vdim,D1D,Q1D);
118 mfem::out <<
"Unknown kernel 0x" << std::hex <<
id << std::endl;
119 MFEM_ABORT(
"Kernel not supported yet");
int MAX_Q1D
Maximum number of 1D quadrature points.
int MAX_D1D
Maximum number of 1D nodal points.
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...
static const DeviceDofQuadLimits & Get()
Return a const reference to the DeviceDofQuadLimits singleton.
QVectorLayout
Type describing possible layouts for Q-vectors.
int MAX_INTERP_1D
Maximum number of points for use in QuadratureInterpolator.
VDIM x NQPT x NE (values) / VDIM x DIM x NQPT x NE (grads)