]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust reference to random_shuffle in comment 2901/head
authorJonathan Robey <class4kayaker@gmail.com>
Mon, 1 Aug 2016 06:38:03 +0000 (23:38 -0700)
committerJonathan Robey <class4kayaker@gmail.com>
Mon, 1 Aug 2016 14:07:29 +0000 (07:07 -0700)
source/dofs/dof_renumbering.cc

index e076b8ada5df31a3ab9a01b96e7984ee4c17ca86..df770b3b9adbd8ac5cbae76a2836f100e0c8a1dd 100644 (file)
@@ -1871,9 +1871,8 @@ namespace DoFRenumbering
     for (unsigned int i=0; i<n_dofs; ++i)
       new_indices[i] = i;
 
-    // shuffle the elements; the following is essentially the
-    // std::random_shuffle algorithm but uses a predictable
-    // random number generator
+    // shuffle the elements; the following is essentially std::shuffle (which
+    // is new in C++11) but with a boost URNG
     ::boost::mt19937 random_number_generator;
     for (unsigned int i=1; i<n_dofs; ++i)
       {

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.