[petsc-users] PetscViewerBinaryMatlabOutputVecDA

Barry Smith bsmith at mcs.anl.gov
Mon Sep 30 08:37:32 CDT 2013


On Sep 30, 2013, at 8:12 AM, Anton Popov <popov at uni-mainz.de> wrote:

> Hi guys,
> 
> just a quick question. I'm upgrading to 3.4.2 and it complains about PetscViewerBinaryMatlabOutputVecDA
> 
> What to use instead? I couldn't find it in  Changes 3.4 

 To get the effect you just call PetscViewerBinaryOpen() followed by PetscViewerSetFormat(viewer,PETSC_FORMAT_BINARY_MATLAB); the names of the resulting MATLAB variables are obtained by the names of the PETSc objects which may be set with PetscObjectSetName(). You can use VecView() on a Vec from a DA and PetscBagView() etc and the Matlab code that is needed to reshape the vectors and load the bags is generated automatically as before. Please let us know if you have any trouble,

   Barry



> 
> Thanks,
> 
> Anton



More information about the petsc-users mailing list