MFEM  v4.5.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
version.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
2 // at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3 // LICENSE and NOTICE for details. LLNL-CODE-806117.
4 //
5 // This file is part of the MFEM library. For more information and source code
6 // availability visit https://mfem.org.
7 //
8 // MFEM is free software; you can redistribute it and/or modify it under the
9 // terms of the BSD-3 license. We welcome feedback and contributions, see file
10 // CONTRIBUTING.md for details.
11 
12 #ifndef MFEM_VERSION_HPP
13 #define MFEM_VERSION_HPP
14 
15 namespace mfem
16 {
17 
18 /// Return the MFEM version number as a single integer.
19 int GetVersion();
20 
21 /// Return the MFEM major version number as an integer.
22 int GetVersionMajor();
23 
24 /// Return the MFEM minor version number as an integer.
25 int GetVersionMinor();
26 
27 /// Return the MFEM version patch number as an integer.
28 int GetVersionPatch();
29 
30 /// Return the MFEM version number as a string.
31 const char *GetVersionStr();
32 
33 /// Return the MFEM Git hash as a string.
34 const char *GetGitStr();
35 
36 /// Return the MFEM configuration as a string.
37 const char *GetConfigStr();
38 
39 } // namespace mfem
40 
41 #endif
int GetVersionMajor()
Return the MFEM major version number as an integer.
Definition: version.cpp:28
const char * GetConfigStr()
Return the MFEM configuration as a string.
Definition: version.cpp:66
const char * GetVersionStr()
Return the MFEM version number as a string.
Definition: version.cpp:46
const char * GetGitStr()
Return the MFEM Git hash as a string.
Definition: version.cpp:59
int GetVersion()
Return the MFEM version number as a single integer.
Definition: version.cpp:22
int GetVersionMinor()
Return the MFEM minor version number as an integer.
Definition: version.cpp:34
int GetVersionPatch()
Return the MFEM version patch number as an integer.
Definition: version.cpp:40