Commit e7b70584 authored by incardon's avatar incardon

Fixing the test to exclude EIGEN test when not detected

parent ea95a361
...@@ -26,6 +26,8 @@ BOOST_AUTO_TEST_SUITE( sparse_matrix_test_suite ) ...@@ -26,6 +26,8 @@ BOOST_AUTO_TEST_SUITE( sparse_matrix_test_suite )
BOOST_AUTO_TEST_CASE(sparse_matrix_eigen_parallel) BOOST_AUTO_TEST_CASE(sparse_matrix_eigen_parallel)
{ {
#ifdef HAVE_EIGEN
Vcluster<> & vcl = create_vcluster(); Vcluster<> & vcl = create_vcluster();
if (vcl.getProcessingUnits() != 3) if (vcl.getProcessingUnits() != 3)
...@@ -169,6 +171,8 @@ BOOST_AUTO_TEST_CASE(sparse_matrix_eigen_parallel) ...@@ -169,6 +171,8 @@ BOOST_AUTO_TEST_CASE(sparse_matrix_eigen_parallel)
BOOST_REQUIRE_CLOSE(x(7), -8, 0.001); BOOST_REQUIRE_CLOSE(x(7), -8, 0.001);
BOOST_REQUIRE_CLOSE(x(8), -4.5, 0.001); BOOST_REQUIRE_CLOSE(x(8), -4.5, 0.001);
} }
#endif
} }
#ifdef HAVE_PETSC #ifdef HAVE_PETSC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment