[petsc-dev] Use of PETSC_DEFAULT in Chaco interface
Barry Smith
bsmith at mcs.anl.gov
Sat Feb 2 15:33:51 CST 2013
On Feb 2, 2013, at 3:31 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:
>
> 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.
MatPartitioningChacoSetEigenSolver(part,(MPChacoEigenType)PETSC_DECIDE) :-)
> Just because we can evade the type system doesn't mean we should.
I'm fine with this function not supporting PETSC_DEFAULT
Barry
>
>
> Barry
>
> I'm to lazy to install chaco and try it myself
>
>
More information about the petsc-dev
mailing list