21 namespace quadrature_interpolator
28 void TensorPhysDerivatives<QVectorLayout::byNODES>(
const int NE,
30 const DofToQuad &maps,
31 const GeometricFactors &geom,
35 if (NE == 0) {
return; }
36 const int dim = maps.FE->GetDim();
37 const int D1D = maps.ndof;
38 const int Q1D = maps.nqpt;
40 MFEM_ASSERT(geom.mesh->SpaceDimension() ==
dim,
"");
42 const double *B = maps.B.Read();
43 const double *G = maps.G.Read();
44 const double *J = geom.J.Read();
45 const double *X = e_vec.Read();
46 double *Y = q_der.Write();
49 constexpr
bool P =
true;
51 const int id = (vdim<<8) | (D1D<<4) | Q1D;
57 case 0x133:
return Derivatives2D<L,P,1,3,3,8>(NE,B,G,J,X,Y);
58 case 0x134:
return Derivatives2D<L,P,1,3,4,8>(NE,B,G,J,X,Y);
59 case 0x143:
return Derivatives2D<L,P,1,4,3,4>(NE,B,G,J,X,Y);
60 case 0x144:
return Derivatives2D<L,P,1,4,4,4>(NE,B,G,J,X,Y);
61 case 0x146:
return Derivatives2D<L,P,1,4,6,4>(NE,B,G,J,X,Y);
62 case 0x158:
return Derivatives2D<L,P,1,5,8,2>(NE,B,G,J,X,Y);
64 case 0x233:
return Derivatives2D<L,P,2,3,3,8>(NE,B,G,J,X,Y);
65 case 0x234:
return Derivatives2D<L,P,2,3,4,8>(NE,B,G,J,X,Y);
66 case 0x243:
return Derivatives2D<L,P,2,4,3,4>(NE,B,G,J,X,Y);
67 case 0x244:
return Derivatives2D<L,P,2,4,4,4>(NE,B,G,J,X,Y);
68 case 0x246:
return Derivatives2D<L,P,2,4,6,4>(NE,B,G,J,X,Y);
69 case 0x258:
return Derivatives2D<L,P,2,5,8,2>(NE,B,G,J,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 Derivatives2D<L,P,0,0,0,0,MD,MQ>(NE,B,G,J,X,Y,vdim,D1D,Q1D);
87 case 0x133:
return Derivatives3D<L,P,1,3,3>(NE,B,G,J,X,Y);
88 case 0x134:
return Derivatives3D<L,P,1,3,4>(NE,B,G,J,X,Y);
89 case 0x144:
return Derivatives3D<L,P,1,4,4>(NE,B,G,J,X,Y);
90 case 0x146:
return Derivatives3D<L,P,1,4,6>(NE,B,G,J,X,Y);
91 case 0x158:
return Derivatives3D<L,P,1,5,8>(NE,B,G,J,X,Y);
93 case 0x333:
return Derivatives3D<L,P,3,3,3>(NE,B,G,J,X,Y);
94 case 0x334:
return Derivatives3D<L,P,3,3,4>(NE,B,G,J,X,Y);
95 case 0x344:
return Derivatives3D<L,P,3,4,4>(NE,B,G,J,X,Y);
96 case 0x346:
return Derivatives3D<L,P,3,4,6>(NE,B,G,J,X,Y);
97 case 0x358:
return Derivatives3D<L,P,3,5,8>(NE,B,G,J,X,Y);
100 constexpr
int MD = 8;
101 constexpr
int MQ = 8;
102 MFEM_VERIFY(D1D <= MD,
"Orders higher than " << MD-1
103 <<
" are not supported!");
104 MFEM_VERIFY(Q1D <= MQ,
"Quadrature rules with more than "
105 << MQ <<
" 1D points are not supported!");
106 Derivatives3D<L,P,0,0,0,MD,MQ>(NE,B,G,J,X,Y,vdim,D1D,Q1D);
111 mfem::out <<
"Unknown kernel 0x" << std::hex <<
id << std::endl;
112 MFEM_ABORT(
"Unknown kernel");
QVectorLayout
Type describing possible layouts for Q-vectors.
NQPT x VDIM x NE (values) / NQPT x VDIM x DIM x NE (grads)
OutStream out(std::cout)
Global stream used by the library for standard output. Initially it uses the same std::streambuf as s...