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

Matthew Knepley knepley at gmail.com
Wed Jan 2 12:18:20 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_ ?
>

Fixed.

  Matt

-- 
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-dev/attachments/20130102/a2182735/attachment.html>


More information about the petsc-dev mailing list