Actual source code: petscversion.h

  1: #ifndef PETSCVERSION_H
  2: #define PETSCVERSION_H
  3: #include <petscconf.h>

  5: #define PETSC_VERSION_RELEASE    1
  6: #define PETSC_VERSION_MAJOR      3
  7: #define PETSC_VERSION_MINOR      22
  8: #define PETSC_VERSION_SUBMINOR   2
  9: #define PETSC_RELEASE_DATE       "Sep 28, 2024"
 10: #define PETSC_VERSION_DATE       "unknown"

 12: #if !defined(PETSC_VERSION_GIT)
 13: #define PETSC_VERSION_GIT        "unknown"
 14: #endif

 16: #if !defined(PETSC_VERSION_DATE_GIT)
 17: #define PETSC_VERSION_DATE_GIT   "unknown"
 18: #endif

 20: #define PETSC_VERSION_EQ(MAJOR,MINOR,SUBMINOR) \
 21:   ((PETSC_VERSION_MAJOR == (MAJOR)) &&       \
 22:    (PETSC_VERSION_MINOR == (MINOR)) &&       \
 23:    (PETSC_VERSION_SUBMINOR == (SUBMINOR)) && \
 24:    (PETSC_VERSION_RELEASE  == 1))

 26: #define PETSC_VERSION_ PETSC_VERSION_EQ

 28: #define PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR)          \
 29:   (PETSC_VERSION_RELEASE == 1 &&                        \
 30:    (PETSC_VERSION_MAJOR < (MAJOR) ||                    \
 31:     (PETSC_VERSION_MAJOR == (MAJOR) &&                  \
 32:      (PETSC_VERSION_MINOR < (MINOR) ||                  \
 33:       (PETSC_VERSION_MINOR == (MINOR) &&                \
 34:        (PETSC_VERSION_SUBMINOR < (SUBMINOR)))))))

 36: #define PETSC_VERSION_LE(MAJOR,MINOR,SUBMINOR) \
 37:   (PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR) ||   \
 38:    PETSC_VERSION_EQ(MAJOR,MINOR,SUBMINOR))

 40: #define PETSC_VERSION_GT(MAJOR,MINOR,SUBMINOR) \
 41:   (0 == PETSC_VERSION_LE(MAJOR,MINOR,SUBMINOR))

 43: #define PETSC_VERSION_GE(MAJOR,MINOR,SUBMINOR) \
 44:   (0 == PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR))

 46: #endif