21 namespace quadrature_interpolator
27 void TensorDerivatives<QVectorLayout::byVDIM>(
const int NE,
29 const DofToQuad &maps,
33 if (NE == 0) {
return; }
34 const int dim = maps.FE->GetDim();
35 const int D1D = maps.ndof;
36 const int Q1D = maps.nqpt;
37 const double *B = maps.B.Read();
38 const double *G = maps.G.Read();
39 const double *J =
nullptr;
40 const double *X = e_vec.Read();
41 double *Y = q_der.Write();
44 constexpr
bool P =
false;
46 const int id = (vdim<<8) | (D1D<<4) | Q1D;
52 case 0x134:
return Derivatives2D<L,P,1,3,4,8>(NE,B,G,J,X,Y);
53 case 0x146:
return Derivatives2D<L,P,1,4,6,4>(NE,B,G,J,X,Y);
54 case 0x158:
return Derivatives2D<L,P,1,5,8,2>(NE,B,G,J,X,Y);
56 case 0x234:
return Derivatives2D<L,P,2,3,4,8>(NE,B,G,J,X,Y);
57 case 0x246:
return Derivatives2D<L,P,2,4,6,4>(NE,B,G,J,X,Y);
58 case 0x258:
return Derivatives2D<L,P,2,5,8,2>(NE,B,G,J,X,Y);
63 MFEM_VERIFY(D1D <= MD,
"Orders higher than " << MD-1
64 <<
" are not supported!");
65 MFEM_VERIFY(Q1D <= MQ,
"Quadrature rules with more than "
66 << MQ <<
" 1D points are not supported!");
67 Derivatives2D<L,P,0,0,0,0,MD,MQ>(NE,B,G,J,X,Y,vdim,D1D,Q1D);
76 case 0x134:
return Derivatives3D<L,P,1,3,4>(NE,B,G,J,X,Y);
77 case 0x146:
return Derivatives3D<L,P,1,4,6>(NE,B,G,J,X,Y);
78 case 0x158:
return Derivatives3D<L,P,1,5,8>(NE,B,G,J,X,Y);
80 case 0x334:
return Derivatives3D<L,P,3,3,4>(NE,B,G,J,X,Y);
81 case 0x346:
return Derivatives3D<L,P,3,4,6>(NE,B,G,J,X,Y);
82 case 0x358:
return Derivatives3D<L,P,3,5,8>(NE,B,G,J,X,Y);
87 MFEM_VERIFY(D1D <= MD,
"Orders higher than " << MD-1
88 <<
" are not supported!");
89 MFEM_VERIFY(Q1D <= MQ,
"Quadrature rules with more than "
90 << MQ <<
" 1D points are not supported!");
91 Derivatives3D<L,P,0,0,0,MD,MQ>(NE,B,G,J,X,Y,vdim,D1D,Q1D);
96 mfem::out <<
"Unknown kernel 0x" << std::hex <<
id << std::endl;
97 MFEM_ABORT(
"Kernel not supported yet");
QVectorLayout
Type describing possible layouts for Q-vectors.
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...
VDIM x NQPT x NE (values) / VDIM x DIM x NQPT x NE (grads)