PetscTruth bool?

Matthew Knepley knepley at gmail.com
Wed Sep 24 09:30:45 CDT 2008


On Wed, Sep 24, 2008 at 8:51 AM, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
>   Since C++ has bool and C99 has bool, should PetscTruth be changed to be
> defined to be bool? Instead of int.

I see the motivation, but we would have to recode any MPI usages of PetscTruth
since we could not guarantee the size of bool.

  Matt

>   Barry
>
> Should we go further and simply remove PetscTruth and use bool directly in
> its place? (logical in Fortran).
-- 
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




More information about the petsc-dev mailing list