[petsc-users] MatView changes matrix

Matthew Knepley knepley at gmail.com
Wed Jul 11 16:13:41 CDT 2018

On Wed, Jul 11, 2018 at 5:06 PM WANG, LEI <lei.wang at durham.ac.uk> wrote:

> Dear all
> I met a strange problem. The value of the matrix A seems to be changed
> after MatView(A, viewer). With this MatView, my code can run more steps
> than without MatView. Why does this happen? Does MatView(A, viewer) do some
> change on A?


Its likely you have a memory error. Run with valgrind.



> Thank you very much in advance.
> Cheers
> Lei

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

https://www.cse.buffalo.edu/~knepley/ <http://www.caam.rice.edu/~mk51/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180711/790b0bb3/attachment.html>

More information about the petsc-users mailing list