[petsc-users] Ouput matrix and rhs to files

Matthew Knepley knepley at gmail.com
Thu Mar 6 10:29:53 CST 2014


On Thu, Mar 6, 2014 at 10:23 AM, Qin Lu <lu_qin_2000 at yahoo.com> wrote:

> Hello,
>
> Are there any PETSc subroutines to output the matrix and right-hand-side
> to files in CRS for MATLAB format? There seems to be PetscViewerASCIIOpen
> subroutine, does it also output rhs? Is there any example code for this?
>

You can use the ASCII viewer with the MATLAB format, however we recommend
you
just use the binary viewer and bin/matlab/PetscBInaryRead.m

  Thanks,

     Matt


>
> Many thanks,
> Qin
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140306/fc58ddd2/attachment.html>


More information about the petsc-users mailing list