[petsc-dev] VECCUSP needs to be zeroed?
Jed Brown
jedbrown at mcs.anl.gov
Wed Nov 9 13:50:20 CST 2011
On Wed, Nov 9, 2011 at 13:42, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> But then, what's the point of memzeroing in VecCreate_Sec? Wouldn't it
> be better to fill the array (in debug mode) with signaling NaNs ?
>
I'm not opposed to this.
There is a question of how much we want to be tolerant of sloppy users
versus being strict within the library. I think the tactic above (and/or
simply leave it uninitialized and count on valgrind to let us know) would
be good to use in PETSc tests. I'm not sure it's worth pushing on users as
the default.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111109/741b7cb6/attachment.html>
More information about the petsc-dev
mailing list