3 boost/numeric/odeint/version.hpp
6 Defines the current version of odeint.
9 Copyright 2011-2012 Karsten Ahnert
10 Copyright 2011-2012 Mario Mulansky
12 Distributed under the Boost Software License, Version 1.0.
13 (See accompanying file LICENSE_1_0.txt or
14 copy at http://www.boost.org/LICENSE_1_0.txt)
17 #ifndef BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED
18 #define BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED
24 #define ODEINT_MAJOR_VERSION 2
25 #define ODEINT_MINOR_VERSION 2
26 #define ODEINT_PATCH_LEVEL 0
27 #define ODEINT_VERSION ( ODEINT_MAJOR_VERSION * 100000 + ODEINT_MINOR_VERSION * 100 + ODEINT_PATCH_LEVEL )
36 const int major = ODEINT_MAJOR_VERSION ;
37 const int minor = ODEINT_MINOR_VERSION ;
38 const int patch_level = ODEINT_PATCH_LEVEL ;
42 inline std::string get_version_string( void )
44 std::ostringstream str;
45 str << "v" << version::major << "." << version::minor;
46 if( version::patch_level != 0 ) str << "_" << version::patch_level;
55 #endif // BOOST_NUMERIC_ODEINT_VERSION_HPP_INCLUDED