antioch-0.4.0
antioch_version.C
Go to the documentation of this file.
1 //-----------------------------------------------------------------------bl-
2 //--------------------------------------------------------------------------
3 //
4 // Antioch - A Gas Dynamics Thermochemistry Library
5 //
6 // Copyright (C) 2014-2016 Paul T. Bauman, Benjamin S. Kirk,
7 // Sylvain Plessis, Roy H. Stonger
8 //
9 // Copyright (C) 2013 The PECOS Development Team
10 //
11 // This library is free software; you can redistribute it and/or
12 // modify it under the terms of the Version 2.1 GNU Lesser General
13 // Public License as published by the Free Software Foundation.
14 //
15 // This library is distributed in the hope that it will be useful,
16 // but WITHOUT ANY WARRANTY; without even the implied warranty of
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 // Lesser General Public License for more details.
19 //
20 // You should have received a copy of the GNU Lesser General Public
21 // License along with this library; if not, write to the Free Software
22 // Foundation, Inc. 51 Franklin Street, Fifth Floor,
23 // Boston, MA 02110-1301 USA
24 //
25 //-----------------------------------------------------------------------el-
26 
27 #include "antioch/antioch_version.h"
28 
29 namespace Antioch
30 {
32  {
33  /* Note: return format follows the versioning convention xx.yy.zz where
34 
35  xx = major version number
36  yy = minor version number
37  zz = micro version number
38 
39  For example:
40  v. 0.23 -> 002300 = 2300
41  v 0.23.1 -> 002301 = 2301
42  v. 10.23.2 -> 102302 */
43 
44  int major_version = 0;
45  int minor_version = 0;
46  int micro_version = 0;
47 
48 #ifdef ANTIOCH_MAJOR_VERSION
49  major_version = ANTIOCH_MAJOR_VERSION;
50 #endif
51 
52 #ifdef ANTIOCH_MINOR_VERSION
53  minor_version = ANTIOCH_MINOR_VERSION;
54 #endif
55 
56 #ifdef ANTIOCH_MICRO_VERSION
57  micro_version = ANTIOCH_MICRO_VERSION;
58 #endif
59 
60  return major_version*10000 + minor_version*100 + micro_version;
61  }
62 
63 } // end namespace Antioch
int get_antioch_version()
The parameters are reduced parameters.

Generated on Thu Jul 7 2016 11:09:46 for antioch-0.4.0 by  doxygen 1.8.8