[petsc-users] PetscOptionsGetRealArray command line format

Jed Brown jed at jedbrown.org
Fri Feb 14 14:47:39 CST 2014


Xiangdong <epscodes at gmail.com> writes:
> Now I see some random behavior. After compiling the code, for the same
> command line input, the output sometimes are correct (print values
> 1,2,3,4,5 with nmax=5), but sometime output all zeros (nmax is zero). I did
> not change anything, but just running same input many times.
>
> Any hints for this random behavior? Thank you.

Run with valgrind.  It is probably some other memory corruption interfering.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140214/f814d85c/attachment-0001.pgp>


More information about the petsc-users mailing list