From 912d5056dcee314ef423673bbcab280d2c9f2631 Mon Sep 17 00:00:00 2001 From: heister Date: Sun, 24 Nov 2013 13:13:54 +0000 Subject: [PATCH] fix some tests that use srand git-svn-id: https://svn.dealii.org/trunk@31782 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/fe_q_constraints.cc | 2 +- tests/bits/full_matrix_56.cc | 2 +- tests/lac/full_matrix.cc | 2 +- tests/lac/full_matrix_02.cc | 2 +- tests/lac/full_matrix_03.cc | 2 +- tests/lac/full_matrix_04.cc | 2 +- tests/lac/sparse_matrix_Tmmult_01.cc | 2 +- tests/lac/sparse_matrix_Tmmult_02.cc | 2 +- tests/lac/sparse_matrix_mmult_01.cc | 2 +- tests/lac/sparse_matrix_mmult_02.cc | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/bits/fe_q_constraints.cc b/tests/bits/fe_q_constraints.cc index cd0236a045..d6b58f8f5f 100644 --- a/tests/bits/fe_q_constraints.cc +++ b/tests/bits/fe_q_constraints.cc @@ -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 diff --git a/tests/bits/full_matrix_56.cc b/tests/bits/full_matrix_56.cc index daf064bfaa..c884631651 100644 --- a/tests/bits/full_matrix_56.cc +++ b/tests/bits/full_matrix_56.cc @@ -60,7 +60,7 @@ check () // deallog.attach(logfile); deallog.depth_console(0); // deallog.threshold_double(1.e-10); - srand(3391466); + Testing::srand(3391466); FullMatrix T2(2,2,entries2), S2(2,2), R2(2,2); FullMatrixT3(3,3,entries3), S3(3,3), R3(3,3); diff --git a/tests/lac/full_matrix.cc b/tests/lac/full_matrix.cc index 507d7deb65..d4f8ce2309 100644 --- a/tests/lac/full_matrix.cc +++ b/tests/lac/full_matrix.cc @@ -52,7 +52,7 @@ main () deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); - srand(3391466); + Testing::srand(3391466); FullMatrix T(3,3,entries); T.print_formatted(logfile, 0, false); diff --git a/tests/lac/full_matrix_02.cc b/tests/lac/full_matrix_02.cc index 835e2c4723..e1f5cc3e22 100644 --- a/tests/lac/full_matrix_02.cc +++ b/tests/lac/full_matrix_02.cc @@ -44,7 +44,7 @@ main () deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); - srand(3391466); + Testing::srand(3391466); FullMatrix A(3,3,entries_A); FullMatrix B(3,3,entries_B); diff --git a/tests/lac/full_matrix_03.cc b/tests/lac/full_matrix_03.cc index 3a6b7ea6fa..fbe878c1cd 100644 --- a/tests/lac/full_matrix_03.cc +++ b/tests/lac/full_matrix_03.cc @@ -44,7 +44,7 @@ main () deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); - srand(3391466); + Testing::srand(3391466); FullMatrix A(3,3,entries_A); FullMatrix B(3,3,entries_B); diff --git a/tests/lac/full_matrix_04.cc b/tests/lac/full_matrix_04.cc index 9de8c6159b..c40b0b73fc 100644 --- a/tests/lac/full_matrix_04.cc +++ b/tests/lac/full_matrix_04.cc @@ -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); diff --git a/tests/lac/sparse_matrix_Tmmult_01.cc b/tests/lac/sparse_matrix_Tmmult_01.cc index 823e1cc309..5c2d94e669 100644 --- a/tests/lac/sparse_matrix_Tmmult_01.cc +++ b/tests/lac/sparse_matrix_Tmmult_01.cc @@ -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); diff --git a/tests/lac/sparse_matrix_Tmmult_02.cc b/tests/lac/sparse_matrix_Tmmult_02.cc index c639bff45f..15c9212a1b 100644 --- a/tests/lac/sparse_matrix_Tmmult_02.cc +++ b/tests/lac/sparse_matrix_Tmmult_02.cc @@ -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); diff --git a/tests/lac/sparse_matrix_mmult_01.cc b/tests/lac/sparse_matrix_mmult_01.cc index 20ac941be9..8f61439ca3 100644 --- a/tests/lac/sparse_matrix_mmult_01.cc +++ b/tests/lac/sparse_matrix_mmult_01.cc @@ -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); diff --git a/tests/lac/sparse_matrix_mmult_02.cc b/tests/lac/sparse_matrix_mmult_02.cc index f94e783fc3..27f9399909 100644 --- a/tests/lac/sparse_matrix_mmult_02.cc +++ b/tests/lac/sparse_matrix_mmult_02.cc @@ -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); -- 2.39.5