28 constexpr int DIM = 2;
30 const int D1D = T_D1D ? T_D1D : d1d;
31 const int Q1D = T_Q1D ? T_Q1D : q1d;
33 const auto B =
Reshape(
b.Read(), Q1D, D1D);
40 constexpr int DIM = 2;
41 const int D1D = T_D1D ? T_D1D : d1d;
42 const int Q1D = T_Q1D ? T_Q1D : q1d;
43 constexpr int MD1 = T_D1D ? T_D1D : DofQuadLimits::MAX_D1D;
44 constexpr int MQ1 = T_Q1D ? T_Q1D : DofQuadLimits::MAX_Q1D;
46 MFEM_SHARED
real_t qd[MQ1*MD1];
49 for (
int v = 0; v <
DIM; v++)
51 MFEM_FOREACH_THREAD(qx,x,Q1D)
53 MFEM_FOREACH_THREAD(dy,y,D1D)
57 for (
int qy = 0; qy < Q1D; ++qy)
59 const real_t bb = B(qy,dy) * B(qy,dy);
60 QD(qx,dy) += bb * H0(v,v,qx,qy,e);
65 MFEM_FOREACH_THREAD(dy,y,D1D)
67 MFEM_FOREACH_THREAD(dx,x,D1D)
71 for (
int qx = 0; qx < Q1D; ++qx)
73 const real_t bb = B(qx,dx) * B(qx,dx);
MFEM_REGISTER_TMOP_KERNELS(void, DatcSize, const int NE, const int ncomp, const int sizeidx, const real_t input_min_size, const DenseMatrix &w_, const Array< real_t > &b_, const Vector &x_, const Vector &nc_reduce, DenseTensor &j_, const int d1d, const int q1d)
MFEM_HOST_DEVICE DeviceTensor< sizeof...(Dims), T > Reshape(T *ptr, Dims... dims)
Wrap a pointer as a DeviceTensor with automatically deduced template parameters.