[petsc-dev] PetscPrintf() is never suppose to be used to print error messages

Jed Brown jedbrown at mcs.anl.gov
Wed Jan 2 11:39:41 CST 2013


On Wed, Jan 2, 2013 at 11:32 AM, Matthew Knepley <knepley at gmail.com> wrote:

> I fixed the simple thing, but the PrintMatSetValues() is problematic.
> Right now, it just prints using
> PetscPrintf, which is wrong for errors like this, but correct for other
> things. For normal things, I
> could make it take a viewer, which could be PETSC_VIEWER_STDOUT_SELF, and
> reproduce
> this behavior. However, do we need to add default viewers for the error
> streams?
>

Like PETSC_VIEWER_STDERR_ ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130102/119371e7/attachment.html>


More information about the petsc-dev mailing list