On Thu, Mar 6, 2014 at 10:23 AM, Qin Lu <[email protected]> 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