message: Add overload for LoadX host device function
diff: @@ -120,25 +120,33 @@ MFEM_HOST_DEVICE inline void LoadBGt(const int D1D, const int Q1D,
  MFEM_SYNC_THREAD;
  }
  -/// Load 2D input scalar into shared memory
  -template<int MD1, int NBZ>
  +/// Load 2D input scalar into given DeviceMatrix
  MFEM_HOST_DEVICE inline void LoadX(const int e, const int D1D,
  const DeviceTensor<3, const double> &x,
  - double (&sX)[NBZ][MD1*MD1])
  + DeviceMatrix &DD)
  {
  - const int tidz = MFEM_THREAD_ID(z);
  - DeviceMatrix X(sX[tidz], D1D, D1D);
  -
  MFEM_FOREACH_THREAD(dy,y,D1D)
  {
  MFEM_FOREACH_THREAD(dx,x,D1D)
  {
  - X(dx,dy) = x(dx,dy,e);
  + DD(dx,dy) = x(dx,dy,e);
  }
  }
  MFEM_SYNC_THREAD;
  }
  +
  +/// Load 2D input scalar into shared memory
  +template<int MD1, int NBZ>
  +MFEM_HOST_DEVICE inline void LoadX(const int e, const int D1D,
  + const DeviceTensor<3, const double> &x,
  + double (&sX)[NBZ][MD1*MD1])
  +{
  + const int tidz = MFEM_THREAD_ID(z);
  + DeviceMatrix X(sX[tidz], D1D, D1D);
  + LoadX(e, D1D, x, X);
  +}
  +
  /// Load 2D input scalar into shared memory, with comp
  MFEM_HOST_DEVICE inline void LoadX(const int e, const int D1D, const int c,
  const DeviceTensor<4, const double> &x,
  