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 =
79#ifdef MFEM_USE_CONDUIT
88#ifdef MFEM_USE_EXCEPTIONS
89 "MFEM_USE_EXCEPTIONS\n"
106#ifdef MFEM_USE_LAPACK
109#ifdef MFEM_USE_LEGACY_OPENMP
110 "MFEM_USE_LEGACY_OPENMP\n"
112#ifdef MFEM_USE_LIBUNWIND
113 "MFEM_USE_LIBUNWIND\n"
115#ifdef MFEM_USE_MEMALLOC
116 "MFEM_USE_MEMALLOC\n"
121#ifdef MFEM_USE_METIS_5
124#ifdef MFEM_USE_MKL_CPARDISO
125 "MFEM_USE_MKL_CPARDISO\n"
136#ifdef MFEM_USE_NETCDF
142#ifdef MFEM_USE_OPENMP
160#ifdef MFEM_USE_SINGLE
166#ifdef MFEM_USE_STRUMPACK
167 "MFEM_USE_STRUMPACK\n"
169#ifdef MFEM_USE_SUITESPARSE
170 "MFEM_USE_SUITESPARSE\n"
172#ifdef MFEM_USE_SUNDIALS
173 "MFEM_USE_SUNDIALS\n"
175#ifdef MFEM_USE_SUPERLU
178#ifdef MFEM_USE_SUPERLU5
179 "MFEM_USE_SUPERLU5\n"
181#ifdef MFEM_USE_UMPIRE
187 "MFEM_TIMER_TYPE = " EXPAND_AND_QUOTE(MFEM_TIMER_TYPE)
const char * GetVersionStr()
Return the MFEM version number as a string.
const char * GetConfigStr()
Return the MFEM configuration as a string.
int GetVersionPatch()
Return the MFEM version patch number as an integer.
int GetVersion()
Return the MFEM version number as a single integer.
const char * GetGitStr()
Return the MFEM Git hash as a string.
int GetVersionMinor()
Return the MFEM minor version number as an integer.
int GetVersionMajor()
Return the MFEM major version number as an integer.