Actual source code: petscversion.h

      1: #if !defined(PETSCVERSION_H)
      2: #define PETSCVERSION_H
      3: #include <petscconf.h>

      5: /* MANSEC = Sys */

      7: #define PETSC_VERSION_RELEASE    1
      8: #define PETSC_VERSION_MAJOR      3
      9: #define PETSC_VERSION_MINOR      25
     10: #define PETSC_VERSION_SUBMINOR   2
     11: #define PETSC_RELEASE_DATE       "Mar 30, 2026"
     12: #define PETSC_VERSION_DATE       "unknown"

     14: #if !defined(PETSC_VERSION_GIT)
     15: #define PETSC_VERSION_GIT        "unknown"
     16: #endif

     18: #if !defined(PETSC_VERSION_DATE_GIT)
     19: #define PETSC_VERSION_DATE_GIT   "unknown"
     20: #endif

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

     28: #define PETSC_VERSION_ PETSC_VERSION_EQ

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

     38: #define PETSC_VERSION_LE(MAJOR,MINOR,SUBMINOR) \
     39:   (PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR) ||   \
     40:    PETSC_VERSION_EQ(MAJOR,MINOR,SUBMINOR))

     42: #define PETSC_VERSION_GT(MAJOR,MINOR,SUBMINOR) \
     43:   (0 == PETSC_VERSION_LE(MAJOR,MINOR,SUBMINOR))

     45: #define PETSC_VERSION_GE(MAJOR,MINOR,SUBMINOR) \
     46:   (0 == PETSC_VERSION_LT(MAJOR,MINOR,SUBMINOR))

     48: #endif