Fixed indexing in INDEX_LOCAL and replaced DMDAVecGetArray with VecGetArray
because DMDAVecArray gives *data for a 1D array and **data for a 2D array
whereas we want a 1D array always irrespective of COMPUTE_DIM. Hence we use
VecGetArray.