12 #include "../config/config.hpp" 15 #define QUOTE(str) #str 16 #define EXPAND_AND_QUOTE(str) QUOTE(str) 30 return MFEM_VERSION_MAJOR;
36 return MFEM_VERSION_MINOR;
42 return MFEM_VERSION_PATCH;
48 #if MFEM_VERSION_TYPE == MFEM_VERSION_TYPE_RELEASE 49 #define MFEM_VERSION_TYPE_STR " (release)" 50 #elif MFEM_VERSION_TYPE == MFEM_VERSION_TYPE_DEVELOPMENT 51 #define MFEM_VERSION_TYPE_STR " (development)" 53 static const char *version_str =
54 "MFEM v" MFEM_VERSION_STRING MFEM_VERSION_TYPE_STR;
61 static const char *git_str = MFEM_GIT_STRING;
68 static const char *config_str =
70 #ifdef MFEM_USE_ADIOS2 79 #ifdef MFEM_USE_CONDUIT 85 #ifdef MFEM_USE_EXCEPTIONS 86 "MFEM_USE_EXCEPTIONS\n" 88 #ifdef MFEM_USE_GINKGO 91 #ifdef MFEM_USE_GNUTLS 103 #ifdef MFEM_USE_LAPACK 106 #ifdef MFEM_USE_LEGACY_OPENMP 107 "MFEM_USE_LEGACY_OPENMP\n" 109 #ifdef MFEM_USE_LIBUNWIND 110 "MFEM_USE_LIBUNWIND\n" 112 #ifdef MFEM_USE_MEMALLOC 113 "MFEM_USE_MEMALLOC\n" 115 #ifdef MFEM_USE_METIS 118 #ifdef MFEM_USE_METIS_5 121 #ifdef MFEM_USE_MKL_CPARDISO 122 "MFEM_USE_MKL_CPARDISO\n" 130 #ifdef MFEM_USE_NETCDF 136 #ifdef MFEM_USE_OPENMP 139 #ifdef MFEM_USE_PETSC 148 #ifdef MFEM_USE_SIDRE 154 #ifdef MFEM_USE_SLEPC 157 #ifdef MFEM_USE_STRUMPACK 158 "MFEM_USE_STRUMPACK\n" 160 #ifdef MFEM_USE_SUITESPARSE 161 "MFEM_USE_SUITESPARSE\n" 163 #ifdef MFEM_USE_SUNDIALS 164 "MFEM_USE_SUNDIALS\n" 166 #ifdef MFEM_USE_SUPERLU 169 #ifdef MFEM_USE_SUPERLU5 170 "MFEM_USE_SUPERLU5\n" 172 #ifdef MFEM_USE_UMPIRE 178 "MFEM_TIMER_TYPE = " EXPAND_AND_QUOTE(MFEM_TIMER_TYPE)
int GetVersionMajor()
Return the MFEM major version number as an integer.
const char * GetConfigStr()
Return the MFEM configuration as a string.
const char * GetVersionStr()
Return the MFEM version number as a string.
const char * GetGitStr()
Return the MFEM Git hash as a string.
int GetVersion()
Return the MFEM version number as a single integer.
int GetVersionMinor()
Return the MFEM minor version number as an integer.
int GetVersionPatch()
Return the MFEM version patch number as an integer.