Actual source code: petscversion.h
petsc-3.12.5 2020-03-29
1: #if !defined(PETSCVERSION_H)
2: #define PETSCVERSION_H
4: #define PETSC_VERSION_RELEASE 1
5: #define PETSC_VERSION_MAJOR 3
6: #define PETSC_VERSION_MINOR 12
7: #define PETSC_VERSION_SUBMINOR 5
8: #define PETSC_VERSION_PATCH 0
9: #define PETSC_RELEASE_DATE "Sep, 29, 2019"
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