]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adapt the number of worker threads to the number of threads.
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 1 Oct 2009 19:21:25 +0000 (19:21 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 1 Oct 2009 19:21:25 +0000 (19:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@19644 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-37/step-37.cc

index c6e7d51f82b1e51d00ce1cc887aae95355f22838..4843001592df22941a20e55a96f9797e527247d4 100644 (file)
@@ -616,7 +616,7 @@ MatrixFree<number,Transformation>::vmult_add (Vector<number2>       &dst,
                                   this, _1, boost::ref(dst)),
                   WorkStreamData::ScratchData<number>(),
                   WorkStreamData::CopyData<number>(),
-                  4,1);
+                  2*multithread_info.n_default_threads,1);
 
                                 // One thing to be cautious about: The
                                 // deal.II classes expect that the matrix

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.