Skip to content
Snippets Groups Projects
Unverified Commit ca2067c9 authored by René Fritze's avatar René Fritze
Browse files

[test] fix casting warning for thread init

parent 56011dfc
Branches
No related tags found
No related merge requests found
...@@ -35,6 +35,8 @@ ...@@ -35,6 +35,8 @@
#include <fstream> #include <fstream>
#include <limits> #include <limits>
#include <boost/numeric/conversion/cast.hpp>
#include <dune/common/float_cmp.hh> #include <dune/common/float_cmp.hh>
#include <dune/common/fvector.hh> #include <dune/common/fvector.hh>
#include <dune/common/fmatrix.hh> #include <dune/common/fmatrix.hh>
...@@ -101,7 +103,7 @@ int main(int argc, char** argv) ...@@ -101,7 +103,7 @@ int main(int argc, char** argv)
? DXTC_CONFIG.get<size_t>("threading.max_count") // silence the WARNING: ... ? DXTC_CONFIG.get<size_t>("threading.max_count") // silence the WARNING: ...
: Dune::XT::Common::ThreadManager::default_max_threads(); : Dune::XT::Common::ThreadManager::default_max_threads();
#if HAVE_TBB #if HAVE_TBB
tbb::task_scheduler_init tbb_init(threads); tbb::task_scheduler_init tbb_init(boost::numeric_cast<int>(threads));
#endif #endif
threadManager().set_max_threads(threads); threadManager().set_max_threads(threads);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment