MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
version.hpp
Go to the documentation of this file.
1// Copyright (c) 2010-2024, 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
15namespace mfem
16{
17
18/// Return the MFEM version number as a single integer.
19int GetVersion();
20
21/// Return the MFEM major version number as an integer.
22int GetVersionMajor();
23
24/// Return the MFEM minor version number as an integer.
25int GetVersionMinor();
26
27/// Return the MFEM version patch number as an integer.
28int GetVersionPatch();
29
30/// Return the MFEM version number as a string.
31const char *GetVersionStr();
32
33/// Return the MFEM Git hash as a string.
34const char *GetGitStr();
35
36/// Return the MFEM configuration as a string.
37const char *GetConfigStr();
38
39} // namespace mfem
40
41#endif
const char * GetVersionStr()
Return the MFEM version number as a string.
Definition: version.cpp:46
const char * GetConfigStr()
Return the MFEM configuration as a string.
Definition: version.cpp:66
int GetVersionPatch()
Return the MFEM version patch number as an integer.
Definition: version.cpp:40
int GetVersion()
Return the MFEM version number as a single integer.
Definition: version.cpp:22
const char * GetGitStr()
Return the MFEM Git hash as a string.
Definition: version.cpp:59
int GetVersionMinor()
Return the MFEM minor version number as an integer.
Definition: version.cpp:34
int GetVersionMajor()
Return the MFEM major version number as an integer.
Definition: version.cpp:28