File indexing completed on 2025-01-18 09:42:58
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED
0018 #define BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED
0019
0020 #include <string>
0021 #include <sstream>
0022
0023
0024 #define ODEINT_MAJOR_VERSION 2
0025 #define ODEINT_MINOR_VERSION 2
0026 #define ODEINT_PATCH_LEVEL 0
0027 #define ODEINT_VERSION ( ODEINT_MAJOR_VERSION * 100000 + ODEINT_MINOR_VERSION * 100 + ODEINT_PATCH_LEVEL )
0028
0029
0030 namespace boost {
0031 namespace numeric {
0032 namespace odeint {
0033
0034 namespace version {
0035
0036 const int major = ODEINT_MAJOR_VERSION ;
0037 const int minor = ODEINT_MINOR_VERSION ;
0038 const int patch_level = ODEINT_PATCH_LEVEL ;
0039
0040 }
0041
0042 inline std::string get_version_string( void )
0043 {
0044 std::ostringstream str;
0045 str << "v" << version::major << "." << version::minor;
0046 if( version::patch_level != 0 ) str << "_" << version::patch_level;
0047 return str.str();
0048 }
0049
0050
0051 }
0052 }
0053 }
0054
0055 #endif