]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use correct data type for a random number. 7565/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Jan 2019 14:04:50 +0000 (07:04 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 7 Jan 2019 14:04:50 +0000 (07:04 -0700)
tests/multigrid/transfer_05.cc

index b799c0d53ad148ed5de4b9ba25aa63f15fb54522..f36255de5f560bb800db4d05cf0dc45fda470b89 100644 (file)
@@ -148,7 +148,7 @@ check(const unsigned int fe_degree)
           // set values:
           for (unsigned int b = 0; b < nb; ++b)
             for (unsigned int i = 0; i < lbv[l].block(b).local_size(); ++i)
-              lbv[l].block(b).local_element(i) = random_value<double>();
+              lbv[l].block(b).local_element(i) = random_value<Number>();
 
           lbv[l].compress(VectorOperation::insert);
         }
@@ -173,7 +173,7 @@ check(const unsigned int fe_degree)
         0, tr.n_global_levels() - 1);
       for (unsigned int b = 0; b < nb; ++b)
         for (unsigned int i = 0; i < bv.block(b).local_size(); ++i)
-          bv.block(b).local_element(i) = random_value<double>();
+          bv.block(b).local_element(i) = random_value<Number>();
 
       transfer.copy_to_mg(mgdof, lbv2, bv);
       // Also check that the block vector has its (global) size set on each

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.