On Wed, Jun 24, 2015 at 5:08 AM, Orxan Shibliyev <[email protected]>
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