diff --git a/.cproject b/.cproject index 88b81354..01e9d68a 100644 --- a/.cproject +++ b/.cproject @@ -55,6 +55,10 @@ + + + + @@ -493,37 +497,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Jamroot b/Jamroot index cd87c289..8c853088 100644 --- a/Jamroot +++ b/Jamroot @@ -13,6 +13,7 @@ project odeint build-project libs/numeric/odeint/examples ; build-project libs/numeric/odeint/test ; +build-project libs/numeric/odeint/test/gmp ; # build-project libs/numeric/odeint/doc ; diff --git a/libs/numeric/odeint/test/check_stepper_concepts.cpp b/libs/numeric/odeint/test/check_stepper_concepts.cpp index b5cbb03f..e4e14b83 100644 --- a/libs/numeric/odeint/test/check_stepper_concepts.cpp +++ b/libs/numeric/odeint/test/check_stepper_concepts.cpp @@ -357,7 +357,6 @@ template< class State > class controlled_stepper_methods : public mpl::vector< typedef mpl::insert_range< mpl::vector0<> , mpl::end< mpl::vector0<> >::type , controlled_stepper_methods< vector_type > >::type first_controlled_stepper_type; typedef mpl::insert_range< first_controlled_stepper_type , mpl::end< first_controlled_stepper_type >::type , controlled_stepper_methods< gsl_vector_type > >::type second_controlled_stepper_type; -//typedef mpl::insert_range< second_controlled_stepper_type , mpl::end< second_controlled_stepper_type >::type , controlled_stepper_methods< array_type > >::type all_controlled_stepper_methods; typedef mpl::insert_range< second_controlled_stepper_type , mpl::end< second_controlled_stepper_type >::type , controlled_stepper_methods< vector_space_type > >::type third_controlled_stepper_type; typedef mpl::insert_range< third_controlled_stepper_type , mpl::end< third_controlled_stepper_type >::type , controlled_stepper_methods< array_type > >::type all_controlled_stepper_methods; diff --git a/libs/numeric/odeint/test/gmp/Jamfile b/libs/numeric/odeint/test/gmp/Jamfile new file mode 100644 index 00000000..305d5149 --- /dev/null +++ b/libs/numeric/odeint/test/gmp/Jamfile @@ -0,0 +1,28 @@ +# (C) Copyright 2010 : Karsten Ahnert, Mario Mulansky +# Distributed under the Boost Software License, Version 1.0. +# (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +# bring in rules for testing + +import testing ; + +#project +# : requirements +# blub=1 +# /boost/test//boost_unit_test_framework +# shared:BOOST_TEST_DYN_LINK=1 +# static +# ../../../.. +# $BOOST_ROOT +# ; + +lib libgmp : : gmp shared ; +lib libgmpxx : : gmpxx shared ; +#lib libgmpxx : : /usr/lib64/libgmpxx.so ; + +test-suite "gmp" + : + [ run check_gmp.cpp libgmpxx libgmp ] + ; + + diff --git a/libs/numeric/odeint/test/gmp/check_gmp.cpp b/libs/numeric/odeint/test/gmp/check_gmp.cpp new file mode 100644 index 00000000..ea931f35 --- /dev/null +++ b/libs/numeric/odeint/test/gmp/check_gmp.cpp @@ -0,0 +1,39 @@ +/* Boost check_gmp.cpp test file + + Copyright 2009 Karsten Ahnert + Copyright 2009 Mario Mulansky + + This file tests the odeint library with the gmp arbitrary precision types + + Distributed under the Boost Software License, Version 1.0. + (See accompanying file LICENSE_1_0.txt or + copy at http://www.boost.org/LICENSE_1_0.txt) +*/ + + +#include + +#include + +#include + +using namespace boost::unit_test; +using namespace boost::numeric::odeint; + + +//#define BOOST_TEST_DYN_LINK + +void test_gmp() +{ + //BOOST_CHECK( 1 == 0 ); +} + +test_suite* init_unit_test_suite( int argc , char* argv[] ) +{ + test_suite *test = BOOST_TEST_SUITE( "check gmp" ); + + test->add( BOOST_TEST_CASE(test_gmp) ); + + return test; +} +