Commits

Jed Brown committed c68d258

version: fix PETSC_VERSION_LT() to require PETSC_VERSION_RELEASE=1

This allows use of

#if PETSC_VERSION_LT(3,5,0)
Legacy code for 3.4.x or earlier
#else
New code for 'master' and 3.5, once it is released.
#endif

prior to release of 3.5.0. This was the intended semantic of
03354681f90b4c, which was somehow backward.

  • Participants
  • Parent commits 0c32930

Comments (0)

Files changed (1)

include/petscversion.h

    (PETSC_VERSION_RELEASE  == 1))
 
 #define PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR)          \
-  (PETSC_VERSION_RELEASE == 0 &&                        \
+  (PETSC_VERSION_RELEASE == 1 &&                        \
    (PETSC_VERSION_MAJOR < (MAJOR) ||                    \
     (PETSC_VERSION_MAJOR == (MAJOR) &&                  \
      (PETSC_VERSION_MINOR < (MINOR) ||                  \