]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add a few comments.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 2004 20:25:34 +0000 (20:25 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 2004 20:25:34 +0000 (20:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@9793 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/multithread_info.cc

index f01523cc7fbd286199d142429b7ed7bd9a3001cf..0fb165aa12e12028f9333686dc78333fe704e6a2 100644 (file)
 
 #if DEAL_II_USE_MT == 1
 
+/* Detecting how many processors a given machine has is something that
+   varies greatly between operating systems. For a few operating
+   systems, we have figured out how to do that below, but some others
+   are still missing. If you find a way to do this on your favorite
+   system, please let us know.
+ */
+
+
 #  if defined(__linux__)
 
 unsigned int MultithreadInfo::get_n_cpus()
 {
+                                  // on linux, we simply count the
+                                  // number of lines listing
+                                  // individual processors when
+                                  // reading from /proc/cpuinfo
   std::ifstream cpuinfo;
   std::string search;
   unsigned int nCPU = 0;

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.