On Sep 24, 2008, at 9:30 AM, Matthew Knepley wrote:
On Wed, Sep 24, 2008 at 8:51 AM, Barry Smith <[email protected]> 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, YOU, of all people, being pedantic :-) Show me a single system where a bool is not an int size. Actually, some Fortran compilers use a -1 as true (not a 1!), this is already painful and could be tricky. Barry
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
participants (1)
-
Barry Smith