[petsc-users] error in petsc-dev

Matthew Knepley knepley at gmail.com
Wed Apr 25 13:07:57 CDT 2012


On Wed, Apr 25, 2012 at 1:55 PM, Mohammad Mirzadeh <mirzadeh at gmail.com>wrote:

> > You are not checking error codes, otherwise you wouldn't see all the
> subsequent errors.
>
> That's correct. I don't quite remember, but I think at some point I had
> trouble with function returns and CHKERRQ( and also CHKERRV? -- not sure
> though) and so I dropped it; is this terrible or just bad? PETSc still
> produces errors when I'm not using it so I though I'm ok!
>

Terrible.

   Matt


> > The default behavior was changed in petsc-dev because forgetting to
> preallocate was too common of a mistake
>
> Thanks. In fact I do preallocate(exactly), it may be that I'm not doing it
> right; gotta check.
>
-- 
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/20120425/ca811ab2/attachment.htm>


More information about the petsc-users mailing list