[petsc-dev] Use of PETSC_DEFAULT in Chaco interface

Jed Brown jedbrown at mcs.anl.gov
Sat Feb 2 15:31:08 CST 2013


On Sat, Feb 2, 2013 at 3:28 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>    Can one just cast the PETSC_DEFAULT in the comparison?
>
> > if (method==(MPChacoEigenType)PETSC_DEFAULT)
>
> or are C compilers too damn smart for their own good now?
>

Or cast the other way, but how would that "invalid" value get set in the
first place. Just because we can evade the type system doesn't mean we
should.


>
>    Barry
>
> I'm to lazy to install chaco and try it myself
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20130202/6aa1d397/attachment.html>


More information about the petsc-dev mailing list