[petsc-dev] PetscPrintf() is never suppose to be used to print error messages
Jed Brown
jedbrown at mcs.anl.gov
Wed Jan 2 11:41:40 CST 2013
On Wed, Jan 2, 2013 at 11:39 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> 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_ ?
>
Actually, that's not great because it always prints the rest of PetscError
with PETSC_ERROR_INITIAL.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130102/939605d7/attachment.html>
More information about the petsc-dev
mailing list