From: Timo Heister Date: Thu, 6 Feb 2014 16:17:10 +0000 (+0000) Subject: fix tbb quicktest X-Git-Tag: v8.2.0-rc1~871 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fe303aaa6e9cd33802fd344b82735771271fb28;p=dealii.git fix tbb quicktest git-svn-id: https://svn.dealii.org/trunk@32419 0785d39b-7218-0410-832d-ea1e28bc413d --- 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