From 9c4f2af5811c3ddd85f4098c7f401733f7eaf2e5 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 4 Nov 2016 11:08:54 +0100 Subject: [PATCH] Remove logname variable --- tests/numerics/kelly_crash_02.cc | 5 +---- tests/numerics/project_common.h | 2 +- tests/numerics/project_dgp_01.cc | 3 --- tests/numerics/project_dgp_02.cc | 3 --- tests/numerics/project_dgp_03.cc | 3 --- tests/numerics/project_dgp_04.cc | 3 --- tests/numerics/project_dgp_05.cc | 3 --- tests/numerics/project_dgp_monomial_01.cc | 3 --- tests/numerics/project_dgp_monomial_02.cc | 3 --- tests/numerics/project_dgp_monomial_03.cc | 3 --- tests/numerics/project_dgp_monomial_04.cc | 3 --- tests/numerics/project_dgp_monomial_05.cc | 3 --- tests/numerics/project_dgq_01.cc | 3 --- tests/numerics/project_dgq_02.cc | 3 --- tests/numerics/project_dgq_03.cc | 3 --- tests/numerics/project_dgq_04.cc | 3 --- tests/numerics/project_dgq_05.cc | 3 --- tests/numerics/project_nedelec_01.cc | 3 --- tests/numerics/project_nedelec_02.cc | 3 --- tests/numerics/project_nedelec_03.cc | 3 --- tests/numerics/project_nedelec_04.cc | 3 --- tests/numerics/project_nedelec_05.cc | 3 --- tests/numerics/project_q_01.cc | 3 --- tests/numerics/project_q_02.cc | 3 --- tests/numerics/project_q_03.cc | 3 --- tests/numerics/project_q_04.cc | 3 --- tests/numerics/project_q_05.cc | 3 --- tests/numerics/project_q_hierarchical_01.cc | 3 --- tests/numerics/project_q_hierarchical_02.cc | 3 --- tests/numerics/project_q_hierarchical_03.cc | 3 --- tests/numerics/project_q_hierarchical_04.cc | 3 --- tests/numerics/project_q_hierarchical_05.cc | 3 --- tests/numerics/project_q_system_01.cc | 3 --- tests/numerics/project_q_system_02.cc | 3 --- tests/numerics/project_q_system_03.cc | 3 --- tests/numerics/project_q_system_04.cc | 3 --- tests/numerics/project_q_system_05.cc | 3 --- tests/numerics/project_rt_01.cc | 3 --- tests/numerics/project_rt_02.cc | 3 --- tests/numerics/project_rt_04.cc | 3 --- tests/numerics/project_rt_05.cc | 3 --- 41 files changed, 2 insertions(+), 122 deletions(-) diff --git a/tests/numerics/kelly_crash_02.cc b/tests/numerics/kelly_crash_02.cc index 87dca0e4a8..8471a70f9e 100644 --- a/tests/numerics/kelly_crash_02.cc +++ b/tests/numerics/kelly_crash_02.cc @@ -29,9 +29,6 @@ // // the problem was fixed by fixing the code -char logname[] = "output"; - - #include "../tests.h" @@ -235,7 +232,7 @@ void test () int main () { - std::ofstream logfile(logname); + std::ofstream logfile("output"); logfile.precision (3); deallog.attach(logfile); diff --git a/tests/numerics/project_common.h b/tests/numerics/project_common.h index 1a25ecd1d6..1a8189d33a 100644 --- a/tests/numerics/project_common.h +++ b/tests/numerics/project_common.h @@ -339,7 +339,7 @@ void test_with_2d_deformed_refined_mesh (const FiniteElement &fe, int main () { - std::ofstream logfile(logname); + std::ofstream logfile("output"); deallog << std::setprecision (3); deallog.attach(logfile); diff --git a/tests/numerics/project_dgp_01.cc b/tests/numerics/project_dgp_01.cc index 01059f2106..51084d3e0d 100644 --- a/tests/numerics/project_dgp_01.cc +++ b/tests/numerics/project_dgp_01.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGP elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_02.cc b/tests/numerics/project_dgp_02.cc index 23cc844f80..757703dcc7 100644 --- a/tests/numerics/project_dgp_02.cc +++ b/tests/numerics/project_dgp_02.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGP elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_03.cc b/tests/numerics/project_dgp_03.cc index eb97aee60f..4c894f6a2b 100644 --- a/tests/numerics/project_dgp_03.cc +++ b/tests/numerics/project_dgp_03.cc @@ -22,9 +22,6 @@ // convergence, which we have to specify in the last argument to the // call below -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_04.cc b/tests/numerics/project_dgp_04.cc index 1f21c85b01..983e451c2e 100644 --- a/tests/numerics/project_dgp_04.cc +++ b/tests/numerics/project_dgp_04.cc @@ -22,9 +22,6 @@ // convergence, which we have to specify in the last argument to the // call below -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_05.cc b/tests/numerics/project_dgp_05.cc index e5c5da7773..79c40f4677 100644 --- a/tests/numerics/project_dgp_05.cc +++ b/tests/numerics/project_dgp_05.cc @@ -22,9 +22,6 @@ // convergence, which we have to specify in the last argument to the // call below -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_monomial_01.cc b/tests/numerics/project_dgp_monomial_01.cc index 448ed202b5..963538b422 100644 --- a/tests/numerics/project_dgp_monomial_01.cc +++ b/tests/numerics/project_dgp_monomial_01.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGP_Monomial elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_monomial_02.cc b/tests/numerics/project_dgp_monomial_02.cc index 864925b854..7706c8d602 100644 --- a/tests/numerics/project_dgp_monomial_02.cc +++ b/tests/numerics/project_dgp_monomial_02.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGP_Monomial elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_monomial_03.cc b/tests/numerics/project_dgp_monomial_03.cc index a5da0a9b45..a6d53f3514 100644 --- a/tests/numerics/project_dgp_monomial_03.cc +++ b/tests/numerics/project_dgp_monomial_03.cc @@ -22,9 +22,6 @@ // convergence, which we have to specify in the last argument to the // call below -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_monomial_04.cc b/tests/numerics/project_dgp_monomial_04.cc index 10cb818399..502cd52870 100644 --- a/tests/numerics/project_dgp_monomial_04.cc +++ b/tests/numerics/project_dgp_monomial_04.cc @@ -22,9 +22,6 @@ // convergence, which we have to specify in the last argument to the // call below -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgp_monomial_05.cc b/tests/numerics/project_dgp_monomial_05.cc index 5e356c993c..f333377212 100644 --- a/tests/numerics/project_dgp_monomial_05.cc +++ b/tests/numerics/project_dgp_monomial_05.cc @@ -22,9 +22,6 @@ // convergence, which we have to specify in the last argument to the // call below -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgq_01.cc b/tests/numerics/project_dgq_01.cc index 2a0789c35a..c8200b7cbb 100644 --- a/tests/numerics/project_dgq_01.cc +++ b/tests/numerics/project_dgq_01.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGQ elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgq_02.cc b/tests/numerics/project_dgq_02.cc index 3a724829a1..bd49e04e3c 100644 --- a/tests/numerics/project_dgq_02.cc +++ b/tests/numerics/project_dgq_02.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGQ elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgq_03.cc b/tests/numerics/project_dgq_03.cc index 05a2c75c94..151e57c87f 100644 --- a/tests/numerics/project_dgq_03.cc +++ b/tests/numerics/project_dgq_03.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGQ elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgq_04.cc b/tests/numerics/project_dgq_04.cc index e870d172e4..6b20a83ff6 100644 --- a/tests/numerics/project_dgq_04.cc +++ b/tests/numerics/project_dgq_04.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGQ elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_dgq_05.cc b/tests/numerics/project_dgq_05.cc index 295054f8f8..8773d03d92 100644 --- a/tests/numerics/project_dgq_05.cc +++ b/tests/numerics/project_dgq_05.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for DGQ elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_nedelec_01.cc b/tests/numerics/project_nedelec_01.cc index ef9757ed98..668c679f35 100644 --- a/tests/numerics/project_nedelec_01.cc +++ b/tests/numerics/project_nedelec_01.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Nedelec elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_nedelec_02.cc b/tests/numerics/project_nedelec_02.cc index 39cb54a5a4..8e1ac7f3f2 100644 --- a/tests/numerics/project_nedelec_02.cc +++ b/tests/numerics/project_nedelec_02.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Nedelec elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_nedelec_03.cc b/tests/numerics/project_nedelec_03.cc index 8b4720796d..39070d33c1 100644 --- a/tests/numerics/project_nedelec_03.cc +++ b/tests/numerics/project_nedelec_03.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Nedelec elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_nedelec_04.cc b/tests/numerics/project_nedelec_04.cc index edc8880fb3..337cd95319 100644 --- a/tests/numerics/project_nedelec_04.cc +++ b/tests/numerics/project_nedelec_04.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Nedelec elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_nedelec_05.cc b/tests/numerics/project_nedelec_05.cc index cfa3703ef1..a1cc5f5817 100644 --- a/tests/numerics/project_nedelec_05.cc +++ b/tests/numerics/project_nedelec_05.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Nedelec elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_01.cc b/tests/numerics/project_q_01.cc index f54d19bb98..83efc6cac1 100644 --- a/tests/numerics/project_q_01.cc +++ b/tests/numerics/project_q_01.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Q elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_02.cc b/tests/numerics/project_q_02.cc index aeeb11e64e..98a9361eb9 100644 --- a/tests/numerics/project_q_02.cc +++ b/tests/numerics/project_q_02.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Q elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_03.cc b/tests/numerics/project_q_03.cc index 253e7b0173..8884393473 100644 --- a/tests/numerics/project_q_03.cc +++ b/tests/numerics/project_q_03.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Q elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_04.cc b/tests/numerics/project_q_04.cc index bc552f0981..49592ca050 100644 --- a/tests/numerics/project_q_04.cc +++ b/tests/numerics/project_q_04.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Q elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_05.cc b/tests/numerics/project_q_05.cc index fa549abe4a..c26015df72 100644 --- a/tests/numerics/project_q_05.cc +++ b/tests/numerics/project_q_05.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for Q elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_hierarchical_01.cc b/tests/numerics/project_q_hierarchical_01.cc index 9c349c7ecc..e5787fa74c 100644 --- a/tests/numerics/project_q_hierarchical_01.cc +++ b/tests/numerics/project_q_hierarchical_01.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for QHierarchical elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_hierarchical_02.cc b/tests/numerics/project_q_hierarchical_02.cc index 8bf18d5042..5bb5bab384 100644 --- a/tests/numerics/project_q_hierarchical_02.cc +++ b/tests/numerics/project_q_hierarchical_02.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for QHierarchical elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_hierarchical_03.cc b/tests/numerics/project_q_hierarchical_03.cc index 284a5cef05..dedb7f7934 100644 --- a/tests/numerics/project_q_hierarchical_03.cc +++ b/tests/numerics/project_q_hierarchical_03.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for QHierarchical elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_hierarchical_04.cc b/tests/numerics/project_q_hierarchical_04.cc index b33f9a69ad..71a67b43e0 100644 --- a/tests/numerics/project_q_hierarchical_04.cc +++ b/tests/numerics/project_q_hierarchical_04.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for QHierarchical elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_hierarchical_05.cc b/tests/numerics/project_q_hierarchical_05.cc index f6aa4152e9..5625a34d4d 100644 --- a/tests/numerics/project_q_hierarchical_05.cc +++ b/tests/numerics/project_q_hierarchical_05.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for QHierarchical elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_system_01.cc b/tests/numerics/project_q_system_01.cc index 0bafa24e47..717100f467 100644 --- a/tests/numerics/project_q_system_01.cc +++ b/tests/numerics/project_q_system_01.cc @@ -18,9 +18,6 @@ // check that VectorTools::project works for FESystem(FE_Q) elements correctly // on a uniformly refined mesh for functions of degree q -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_system_02.cc b/tests/numerics/project_q_system_02.cc index 8f4af570c2..d8ac3168b3 100644 --- a/tests/numerics/project_q_system_02.cc +++ b/tests/numerics/project_q_system_02.cc @@ -18,9 +18,6 @@ // check that VectorTools::project works for FESystem(FE_Q) elements correctly // on a uniformly refined mesh for functions of degree q -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_system_03.cc b/tests/numerics/project_q_system_03.cc index 4e8bb5a2a4..d7467b7d47 100644 --- a/tests/numerics/project_q_system_03.cc +++ b/tests/numerics/project_q_system_03.cc @@ -18,9 +18,6 @@ // check that VectorTools::project works for FESystem(FE_Q) elements correctly // on a uniformly refined mesh for functions of degree q -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_system_04.cc b/tests/numerics/project_q_system_04.cc index a2fd613c2f..44106648fd 100644 --- a/tests/numerics/project_q_system_04.cc +++ b/tests/numerics/project_q_system_04.cc @@ -18,9 +18,6 @@ // check that VectorTools::project works for FESystem(FE_Q) elements correctly // on a uniformly refined mesh for functions of degree q -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_q_system_05.cc b/tests/numerics/project_q_system_05.cc index 84aa7e1e1f..625ec4619b 100644 --- a/tests/numerics/project_q_system_05.cc +++ b/tests/numerics/project_q_system_05.cc @@ -18,9 +18,6 @@ // check that VectorTools::project works for FESystem(FE_Q) elements correctly // on a uniformly refined mesh for functions of degree q -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_rt_01.cc b/tests/numerics/project_rt_01.cc index b86f3c7539..fbbf23dc5a 100644 --- a/tests/numerics/project_rt_01.cc +++ b/tests/numerics/project_rt_01.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for RT elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_rt_02.cc b/tests/numerics/project_rt_02.cc index e23ef73de7..1634350127 100644 --- a/tests/numerics/project_rt_02.cc +++ b/tests/numerics/project_rt_02.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for RT elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_rt_04.cc b/tests/numerics/project_rt_04.cc index d982e6f7c5..4f88d8a7c1 100644 --- a/tests/numerics/project_rt_04.cc +++ b/tests/numerics/project_rt_04.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for RT elements correctly -char logname[] = "output"; - - #include "project_common.h" diff --git a/tests/numerics/project_rt_05.cc b/tests/numerics/project_rt_05.cc index fe4430d11a..73427ba7b0 100644 --- a/tests/numerics/project_rt_05.cc +++ b/tests/numerics/project_rt_05.cc @@ -17,9 +17,6 @@ // check that VectorTools::project works for RT elements correctly -char logname[] = "output"; - - #include "project_common.h" -- 2.39.5