Use VecGetArrayRead/Write() to get up-to-date host pointers to the vector array.
--Junchao ZhangOn Wed, Jun 23, 2021 at 9:15 AM Mark Adams <mfadams@lbl.gov> wrote:First, there seem to be two pages for VecGetArrayAndMemType (one has a pointer to the other).So I need to get a CPU array for HDF5 viewing. Totally broken for devices.I don't find a VecGetArrayCpu[HOST] that does the right thing.Perhaps have VecGetArrayAndMemType return a valid CPU pointer when "mtype==NULL"?Mark