Should the name of the function PetscViewerBinaryMatlabOutputVecDA() be replaced by PetscViewerBinaryMatlabOutputVecDMDA() ? see: src/dm/impls/da/utils/binaryMatlab.c Cheers, Rich