From 3fe303aaa6e9cd33802fd344b82735771271fb28 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Thu, 6 Feb 2014 16:17:10 +0000 Subject: [PATCH] fix tbb quicktest git-svn-id: https://svn.dealii.org/trunk@32419 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/tests/quick_tests/tbb.cc | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/deal.II/tests/quick_tests/tbb.cc b/deal.II/tests/quick_tests/tbb.cc index 0e8110caf9..31da6440d7 100644 --- a/deal.II/tests/quick_tests/tbb.cc +++ b/deal.II/tests/quick_tests/tbb.cc @@ -51,9 +51,7 @@ void assemble(const std::vector::iterator &it, scratch_data &scratch, copy_data &data) { - std::cout << "hello!" << std::endl; - - data.value +=(*it)*(*it); + data.value = (*it); } void copy(int & value, const copy_data &data) @@ -62,11 +60,11 @@ void copy(int & value, const copy_data &data) } void test2() -{ - std::vector v(3); - v[0] = 3; - v[1] = 5; - v[2] = 1; +{ + const int maxi = 10000; + std::vector v(maxi); + for (unsigned int i=0;i