]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix some tests that use srand
authorTimo Heister <timo.heister@gmail.com>
Sun, 24 Nov 2013 13:13:54 +0000 (13:13 +0000)
committerTimo Heister <timo.heister@gmail.com>
Sun, 24 Nov 2013 13:13:54 +0000 (13:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@31782 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/fe_q_constraints.cc
tests/bits/full_matrix_56.cc
tests/lac/full_matrix.cc
tests/lac/full_matrix_02.cc
tests/lac/full_matrix_03.cc
tests/lac/full_matrix_04.cc
tests/lac/sparse_matrix_Tmmult_01.cc
tests/lac/sparse_matrix_Tmmult_02.cc
tests/lac/sparse_matrix_mmult_01.cc
tests/lac/sparse_matrix_mmult_02.cc

index cd0236a045b3d36ff3fa84a6f44fb0167cdd6e1b..d6b58f8f5f36eac6c4fadefdc1428664cc84f17d 100644 (file)
@@ -250,7 +250,7 @@ int main ()
   // Initialise the random generator with an
   // arbitrary number. This should ensure
   // reproducible results.
-  srand (4375384);
+  Testing::srand (4375384);
 
   // With these parameters, the elements are
   // tested up to a polynomial degree of
index daf064bfaa463d9c86185004d6101b8a69759104..c88463165161dd3446d91daf9cc519df5776547e 100644 (file)
@@ -60,7 +60,7 @@ check ()
 //  deallog.attach(logfile);
   deallog.depth_console(0);
 //  deallog.threshold_double(1.e-10);
-  srand(3391466);
+  Testing::srand(3391466);
 
   FullMatrix<double> T2(2,2,entries2), S2(2,2), R2(2,2);
   FullMatrix<double>T3(3,3,entries3), S3(3,3), R3(3,3);
index 507d7deb65af9e830d116fe126fd21cad4af0ced..d4f8ce23094d3e684ffcbaeb19732d92fde75d92 100644 (file)
@@ -52,7 +52,7 @@ main ()
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
-  srand(3391466);
+  Testing::srand(3391466);
 
   FullMatrix<double> T(3,3,entries);
   T.print_formatted(logfile, 0, false);
index 835e2c4723e9170e431a02c4d56a66d0a23d1a7b..e1f5cc3e2280cf6f0d44783ad6ced05ceb9d07ba 100644 (file)
@@ -44,7 +44,7 @@ main ()
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
-  srand(3391466);
+  Testing::srand(3391466);
 
   FullMatrix<double> A(3,3,entries_A);
   FullMatrix<double> B(3,3,entries_B);
index 3a6b7ea6fa5ee72a4bcce487d33f4738d3a264a7..fbe878c1cddd68fbc7c8c4dff9d5169e0dc236d6 100644 (file)
@@ -44,7 +44,7 @@ main ()
   deallog.attach(logfile);
   deallog.depth_console(0);
   deallog.threshold_double(1.e-10);
-  srand(3391466);
+  Testing::srand(3391466);
 
   FullMatrix<double> A(3,3,entries_A);
   FullMatrix<double> B(3,3,entries_B);
index 9de8c6159b8695756ae1cbf5df97901309062445..c40b0b73fc0c4f7499259c9a6729f85d9e473147 100644 (file)
@@ -123,7 +123,7 @@ main ()
   std::ofstream logfile(logname.c_str());
   deallog.attach(logfile);
   deallog.depth_console(0);
-  srand(3391466);
+  Testing::srand(3391466);
 
   test(3,4);
   test(4,7);
index 823e1cc3094e0bfa23bc4d98ec2c18f282e1b876..5c2d94e66960186f251b2163d5be21fe663f2575 100644 (file)
@@ -90,7 +90,7 @@ main ()
   std::ofstream logfile(logname.c_str());
   deallog.attach(logfile);
   deallog.depth_console(0);
-  srand(3391466);
+  Testing::srand(3391466);
 
   test(3);
   test(7);
index c639bff45f067edbb675a448b98b4436387b5a91..15c9212a1bcf1fd8cf2d0017eabaf8b34dfa8c39 100644 (file)
@@ -95,7 +95,7 @@ main ()
   std::ofstream logfile(logname.c_str());
   deallog.attach(logfile);
   deallog.depth_console(0);
-  srand(3391466);
+  Testing::srand(3391466);
 
   test(3);
   test(7);
index 20ac941be9c1e3eb1276f54c4f35bc7cd920ca57..8f61439ca3997da2d8783e675dc99fc3ffe1d3be 100644 (file)
@@ -90,7 +90,7 @@ main ()
   std::ofstream logfile(logname.c_str());
   deallog.attach(logfile);
   deallog.depth_console(0);
-  srand(3391466);
+  Testing::srand(3391466);
 
   test(3);
   test(7);
index f94e783fc327780cc3deb33b441db31b523c05ae..27f93999093e25d115c6510a42b40d9781c05641 100644 (file)
@@ -95,7 +95,7 @@ main ()
   std::ofstream logfile(logname.c_str());
   deallog.attach(logfile);
   deallog.depth_console(0);
-  srand(3391466);
+  Testing::srand(3391466);
 
   test(3);
   test(7);

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.