message: swap function order in ceed.cpp
diff: @@ -415,55 +415,55 @@ void CeedPAAssemble(const CeedPAOperator& op,
  CeedVectorCreate(ceed, fes.GetNDofs(), &ceedData.v);
  }
  -void CeedAssembleDiagonalPA(const CeedData ceedDataPtr, Vector &diag)
  +void CeedAddMultPA(const CeedData ceedDataPtr, const Vector &x,
  + Vector &y)
  {
  - CeedScalar *d_ptr;
  + const CeedScalar *x_ptr;
  + CeedScalar *y_ptr;
  CeedMemType mem;
  CeedGetPreferredMemType(internal::ceed, &mem);
  if ( Device::Allows(Backend::CUDA) && mem==CEED_MEM_DEVICE )
  {
  - d_ptr = diag.ReadWrite();
  + x_ptr = x.Read();
  + y_ptr = y.ReadWrite();
  }
  else
  {
  - d_ptr = diag.HostReadWrite();
  + x_ptr = x.HostRead();
  + y_ptr = y.HostReadWrite();
  mem = CEED_MEM_HOST;
  }
  - CeedVectorSetArray(ceedDataPtr.v, mem, CEED_USE_POINTER, d_ptr);
  + CeedVectorSetArray(ceedDataPtr.u, mem, CEED_USE_POINTER,
  + const_cast<CeedScalar*>(x_ptr));
  + CeedVectorSetArray(ceedDataPtr.v, mem, CEED_USE_POINTER, y_ptr);
  - CeedOperatorLinearAssembleAddDiagonal(ceedDataPtr.oper, ceedDataPtr.v,
  + CeedOperatorApplyAdd(ceedDataPtr.oper, ceedDataPtr.u, ceedDataPtr.v,
  CEED_REQUEST_IMMEDIATE);
  - CeedVectorTakeArray(ceedDataPtr.v, mem, &d_ptr);
  + CeedVectorTakeArray(ceedDataPtr.u, mem, const_cast<CeedScalar**>(&x_ptr));
  + CeedVectorTakeArray(ceedDataPtr.v, mem, &y_ptr);
  }
  -void CeedAddMultPA(const CeedData ceedDataPtr, const Vector &x,
  - Vector &y)
  +void CeedAssembleDiagonalPA(const CeedData ceedDataPtr, Vector &diag)
  {
  - const CeedScalar *x_ptr;
  - CeedScalar *y_ptr;
  + CeedScalar *d_ptr;
  CeedMemType mem;
  CeedGetPreferredMemType(internal::ceed, &mem);
  if ( Device::Allows(Backend::CUDA) && mem==CEED_MEM_DEVICE )
  {
  - x_ptr = x.Read();
  - y_ptr = y.ReadWrite();
  + d_ptr = diag.ReadWrite();
  }
  else
  {
  - x_ptr = x.HostRead();
  - y_ptr = y.HostReadWrite();
  + d_ptr = diag.HostReadWrite();
  mem = CEED_MEM_HOST;
  }
  - CeedVectorSetArray(ceedDataPtr.u, mem, CEED_USE_POINTER,
  - const_cast<CeedScalar*>(x_ptr));
  - CeedVectorSetArray(ceedDataPtr.v, mem, CEED_USE_POINTER, y_ptr);
  + CeedVectorSetArray(ceedDataPtr.v, mem, CEED_USE_POINTER, d_ptr);
  - CeedOperatorApplyAdd(ceedDataPtr.oper, ceedDataPtr.u, ceedDataPtr.v,
  + CeedOperatorLinearAssembleAddDiagonal(ceedDataPtr.oper, ceedDataPtr.v,
  CEED_REQUEST_IMMEDIATE);
  - CeedVectorTakeArray(ceedDataPtr.u, mem, const_cast<CeedScalar**>(&x_ptr));
  - CeedVectorTakeArray(ceedDataPtr.v, mem, &y_ptr);
  + CeedVectorTakeArray(ceedDataPtr.v, mem, &d_ptr);
  }
  } // namespace mfem
  