[petsc-users] nan after VecDuplicate
Matthew Knepley
knepley at gmail.com
Wed Jun 24 05:32:31 CDT 2015
On Wed, Jun 24, 2015 at 5:08 AM, Orxan Shibliyev <orxan.shibli at gmail.com>
wrote:
> I get a nan for solution vector, 'x' right after VecDuplicate (x, &b)
> where, 'b' is a Vec. This happens only with multiple processes while
> sequential one works perfectly. I even tried to set 'x' with
> VecZeroEntries(x) but didn't help.
>
VecDuplicate() does not affect the values in the initial vector. This is
used everywhere in PETSc. It sounds
like there is memory corruption somewhere else in your code. We recommend
using valgrind to track this down.
Thanks,
Matt
--
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/20150624/e27ede48/attachment.html>
More information about the petsc-users
mailing list