[petsc-dev] PETSC_TRUE and PETSC_TRUTH

Chetan Jhurani chetan.jhurani at gmail.com
Thu Sep 2 13:58:05 CDT 2010


Hi petsc-dev,

This is a minor enhancement request.

Using PETSC_TRUTH instead of PETSC_TRUE unintentionally will lead to
unexpected results and annoying bugs.  Seems like PETSC_TRUTH is
a different enum value for enumerating data types and currently equals 9.

g++ does warn on comparing different enum types, but gcc does not (v4.3.0).

Any possibility of changing the name of PETSC_TRUTH to something
that is far away from PETSC_TRUE?

Chetan





More information about the petsc-dev mailing list