]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace logfile in more tests
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 11 Mar 2020 13:33:41 +0000 (09:33 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 11 Mar 2020 20:58:11 +0000 (16:58 -0400)
486 files changed:
tests/algorithms/newton_01.cc
tests/algorithms/newton_02.cc
tests/algorithms/theta_01.cc
tests/bits/anna_6.cc
tests/bits/christian_1.cc
tests/bits/christian_2.cc
tests/bits/count_dofs_per_block_01.cc
tests/bits/count_dofs_per_block_02.cc
tests/bits/deal_solver_04.cc
tests/bits/deal_solver_05.cc
tests/bits/distorted_mapped_cells_01.cc
tests/bits/error_estimator_01.cc
tests/bits/error_estimator_02.cc
tests/bits/face_orientation_crash.cc
tests/bits/faceq_face_interpolation.cc
tests/bits/faceq_subface_interpolation.cc
tests/bits/fe_tools_01a.cc
tests/bits/fe_tools_01b.cc
tests/bits/fe_tools_01c.cc
tests/bits/fe_tools_cpfqpm_05.cc
tests/bits/joa_1.cc
tests/bits/point_difference_01.cc
tests/bits/point_difference_02.cc
tests/bits/point_gradient_01.cc
tests/bits/point_gradient_02.cc
tests/bits/point_gradient_hp_01.cc
tests/bits/point_gradient_hp_02.cc
tests/bits/point_value_01.cc
tests/bits/point_value_02.cc
tests/bits/point_value_hp_01.cc
tests/bits/point_value_hp_02.cc
tests/bits/solution_transfer.cc
tests/codim_one/boundary_indicator_01.cc
tests/codim_one/direction_flag_01.cc
tests/codim_one/direction_flag_02.cc
tests/codim_one/direction_flag_03.cc
tests/codim_one/extract_boundary_mesh_00.cc
tests/codim_one/extract_boundary_mesh_01.cc
tests/codim_one/extract_boundary_mesh_02.cc
tests/codim_one/extract_boundary_mesh_03.cc
tests/codim_one/extract_boundary_mesh_04.cc
tests/codim_one/extract_boundary_mesh_05.cc
tests/codim_one/extract_boundary_mesh_06.cc
tests/data_out/data_out_08.cc
tests/data_out/data_out_curved_cells.cc
tests/data_out/data_out_multi_dh_01.cc
tests/data_out/data_out_multi_dh_02.cc
tests/data_out/data_out_multi_dh_03.cc
tests/data_out/data_out_multi_dh_04.cc
tests/data_out/data_out_multi_dh_05.cc
tests/dofs/dof_renumbering.cc
tests/dofs/dof_renumbering_02.cc
tests/dofs/dof_renumbering_03.cc
tests/dofs/dof_renumbering_04.cc
tests/dofs/dof_renumbering_04a.cc
tests/dofs/dof_renumbering_05.cc
tests/dofs/dof_renumbering_06.cc
tests/dofs/dof_renumbering_07.cc
tests/dofs/dof_renumbering_08.cc
tests/dofs/dof_renumbering_zorder_01.cc
tests/dofs/dof_renumbering_zorder_02.cc
tests/dofs/dof_tools_18a_1d.cc
tests/dofs/extract_dofs_by_component_01.cc
tests/dofs/extract_dofs_by_component_01_hp.cc
tests/dofs/extract_dofs_by_component_01_mg.cc
tests/dofs/extract_dofs_by_component_01x.cc
tests/dofs/extract_dofs_by_component_01y.cc
tests/dofs/extract_dofs_by_component_02.cc
tests/dofs/extract_dofs_by_component_02_hp.cc
tests/dofs/extract_dofs_by_component_02_mg.cc
tests/dofs/extract_dofs_by_component_03.cc
tests/dofs/extract_dofs_by_component_04.cc
tests/dofs/extract_dofs_by_component_05.cc
tests/dofs/extract_dofs_by_component_05_hp.cc
tests/dofs/extract_dofs_by_component_06.cc
tests/dofs/extract_dofs_by_component_06_hp.cc
tests/dofs/interpolate_based_on_material_id_01.cc
tests/dofs/interpolate_dgq_01.cc
tests/dofs/interpolate_dgq_02.cc
tests/dofs/interpolate_q_01.cc
tests/dofs/interpolate_q_02.cc
tests/dofs/interpolate_q_system_01.cc
tests/dofs/interpolate_q_system_02.cc
tests/dofs/interpolate_q_system_mask_01.cc
tests/dofs/interpolate_q_system_mask_02.cc
tests/dofs/mg_dof_handler.cc
tests/dofs/range_based_for_step-6.cc
tests/dofs/sparsity_pattern.cc
tests/dofs/sparsity_pattern_01.cc
tests/dofs/sparsity_pattern_02.cc
tests/dofs/sparsity_pattern_03.cc
tests/dofs/sparsity_pattern_04.cc
tests/dofs/sparsity_pattern_05.cc
tests/fail/fe_nothing_04.cc
tests/fe/abf_degree.cc
tests/fe/block_mask_01.cc
tests/fe/block_mask_02.cc
tests/fe/block_mask_03.cc
tests/fe/block_mask_04.cc
tests/fe/block_mask_05.cc
tests/fe/block_mask_06.cc
tests/fe/block_mask_07.cc
tests/fe/block_mask_08.cc
tests/fe/block_mask_09.cc
tests/fe/block_mask_10.cc
tests/fe/block_mask_11.cc
tests/fe/cell_similarity_01.cc
tests/fe/cell_similarity_02.cc
tests/fe/cell_similarity_03.cc
tests/fe/cell_similarity_04.cc
tests/fe/cell_similarity_05.cc
tests/fe/cell_similarity_06.cc
tests/fe/cell_similarity_07.cc
tests/fe/cell_similarity_08.cc
tests/fe/cell_similarity_09.cc
tests/fe/cell_similarity_10.cc
tests/fe/cell_similarity_dgp_monomial_01.cc
tests/fe/cell_similarity_dgp_monomial_02.cc
tests/fe/cell_similarity_dgp_monomial_03.cc
tests/fe/cell_similarity_dgp_monomial_04.cc
tests/fe/cell_similarity_dgp_monomial_05.cc
tests/fe/cell_similarity_dgp_monomial_06.cc
tests/fe/cell_similarity_dgp_monomial_07.cc
tests/fe/cell_similarity_dgp_monomial_08.cc
tests/fe/cell_similarity_dgp_monomial_09.cc
tests/fe/cell_similarity_dgp_monomial_10.cc
tests/fe/cell_similarity_dgp_nonparametric_01.cc
tests/fe/cell_similarity_dgp_nonparametric_02.cc
tests/fe/cell_similarity_dgp_nonparametric_03.cc
tests/fe/cell_similarity_dgp_nonparametric_04.cc
tests/fe/cell_similarity_dgp_nonparametric_05.cc
tests/fe/cell_similarity_dgp_nonparametric_06.cc
tests/fe/cell_similarity_dgp_nonparametric_07.cc
tests/fe/cell_similarity_dgp_nonparametric_08.cc
tests/fe/cell_similarity_dgp_nonparametric_09.cc
tests/fe/cell_similarity_dgp_nonparametric_10.cc
tests/fe/check_derivatives.cc
tests/fe/component_mask_01.cc
tests/fe/component_mask_02.cc
tests/fe/component_mask_03.cc
tests/fe/component_mask_04.cc
tests/fe/component_mask_05.cc
tests/fe/component_mask_06.cc
tests/fe/component_mask_07.cc
tests/fe/component_mask_08.cc
tests/fe/component_mask_09.cc
tests/fe/component_mask_10.cc
tests/fe/component_mask_11.cc
tests/fe/component_mask_12.cc
tests/fe/component_mask_13.cc
tests/fe/component_mask_14.cc
tests/fe/derivatives.cc
tests/fe/derivatives_bernstein.cc
tests/fe/derivatives_face.cc
tests/fe/element_constant_modes.cc
tests/fe/fe_abf_gradient_divergence_theorem.cc
tests/fe/fe_br.cc
tests/fe/fe_dgp_3rd_derivative_divergence_theorem.cc
tests/fe/fe_dgq_3rd_derivative_divergence_theorem.cc
tests/fe/fe_dgq_gradient_divergence_theorem.cc
tests/fe/fe_dgq_hessian_divergence_theorem.cc
tests/fe/fe_enriched_01.cc
tests/fe/fe_enriched_02.cc
tests/fe/fe_enriched_03.cc
tests/fe/fe_enriched_04.cc
tests/fe/fe_enriched_05.cc
tests/fe/fe_enriched_06.cc
tests/fe/fe_enriched_07.cc
tests/fe/fe_enriched_08.cc
tests/fe/fe_enriched_08a.cc
tests/fe/fe_enriched_compare_to_fe_system.cc
tests/fe/fe_enriched_compare_to_fe_system_2.cc
tests/fe/fe_nedelec_gradient_divergence_theorem.cc
tests/fe/fe_nedelec_hessian_divergence_theorem.cc
tests/fe/fe_nedelec_sz_gradient_divergence_theorem.cc
tests/fe/fe_nothing.cc
tests/fe/fe_project_2d.cc
tests/fe/fe_project_3d.cc
tests/fe/fe_q_3rd_derivative_divergence_theorem.cc
tests/fe/fe_q_gradient_divergence_theorem.cc
tests/fe/fe_q_hessian_divergence_theorem.cc
tests/fe/fe_q_hierarchical_3rd_derivative_divergence_theorem.cc
tests/fe/fe_rt_gradient_divergence_theorem.cc
tests/fe/fe_rt_hessian_divergence_theorem.cc
tests/fe/fe_system_3rd_derivative_divergence_theorem.cc
tests/fe/fe_tools.cc
tests/fe/fe_tools_01.cc
tests/fe/fe_values_extractor_01.cc
tests/fe/fe_values_function_manifold.cc
tests/fe/fe_values_no_mapping.cc
tests/fe/fe_values_view_01.cc
tests/fe/fe_values_view_02.cc
tests/fe/fe_values_view_03.cc
tests/fe/fe_values_view_04.cc
tests/fe/fe_values_view_05.cc
tests/fe/fe_values_view_06.cc
tests/fe/fe_values_view_07.cc
tests/fe/fe_values_view_08.cc
tests/fe/fe_values_view_09.cc
tests/fe/fe_values_view_10.cc
tests/fe/fe_values_view_10_single_01.cc
tests/fe/fe_values_view_10_single_02.cc
tests/fe/fe_values_view_10_single_03.cc
tests/fe/fe_values_view_11.cc
tests/fe/fe_values_view_12.cc
tests/fe/fe_values_view_13.cc
tests/fe/fe_values_view_14.cc
tests/fe/fe_values_view_15.cc
tests/fe/fe_values_view_17.cc
tests/fe/fe_values_view_18.cc
tests/fe/fe_values_view_19.cc
tests/fe/fe_values_view_20.cc
tests/fe/fe_values_view_21.cc
tests/fe/fe_values_view_21_nonsymmetric.cc
tests/fe/fe_values_view_22.cc
tests/fe/fe_values_view_23.cc
tests/fe/fe_values_view_23_nonsymmetric.cc
tests/fe/fe_values_view_24.cc
tests/fe/fe_values_view_24_nonsymmetric.cc
tests/fe/fe_values_view_25.cc
tests/fe/fe_values_view_25_nonsymmetric.cc
tests/fe/fe_values_view_25b_nonsymmetric.cc
tests/fe/fe_values_view_26.cc
tests/fe/fe_values_view_27.cc
tests/fe/fe_values_view_28.cc
tests/fe/fe_values_view_29.cc
tests/fe/fe_values_view_30.cc
tests/fe/fe_values_view_invalid_01.cc
tests/fe/fe_values_view_invalid_02.cc
tests/fe/fe_values_view_invalid_03.cc
tests/fe/fe_values_view_invalid_03_nonsymmetric.cc
tests/fe/fe_values_view_tensor_01.cc
tests/fe/interpolate_nedelec.cc
tests/fe/interpolate_q1.cc
tests/fe/interpolate_q_bubbles.cc
tests/fe/interpolate_q_dg0.cc
tests/fe/interpolate_q_iso_q1.cc
tests/fe/interpolate_q_system_mixed_01.cc
tests/fe/interpolate_rt.cc
tests/fe/interpolate_rtn.cc
tests/fe/interpolate_system.cc
tests/fe/jacobians.cc
tests/fe/jacobians_face.cc
tests/fe/jacobians_face_cartesian.cc
tests/fe/jacobians_face_fe_field.cc
tests/fe/p1nc_01.cc
tests/fe/p1nc_02.cc
tests/fe/p1nc_03.cc
tests/fe/p1nc_04.cc
tests/fe/p1nc_05.cc
tests/fe/p1nc_06.cc
tests/fe/p1nc_07.cc
tests/fe/p1nc_08.cc
tests/fe/rt_covariant.cc
tests/fe/rt_hessian.cc
tests/fe/rtdiff.cc
tests/fe/rtn_1.cc
tests/lac/bicgstab_early.cc
tests/lac/bicgstab_large.cc
tests/lac/block_matrices_04.cc
tests/lac/block_minres.cc
tests/lac/block_vector_iterator.cc
tests/lac/block_vector_vector_assign.cc
tests/lac/complex_block_vector_iterator.cc
tests/lac/complex_block_vector_vector_assign.cc
tests/lac/constraint_graph_zero.cc
tests/lac/constraint_matrix_copy_01.cc
tests/lac/constraints_01.cc
tests/lac/constraints_02.cc
tests/lac/constraints_inhomogeneous.cc
tests/lac/constraints_move.cc
tests/lac/constraints_zero.cc
tests/lac/constraints_zero_condense.cc
tests/lac/constraints_zero_merge.cc
tests/lac/copy_transposed.cc
tests/lac/filtered_matrix_06.cc
tests/lac/gmres_eigenvalues.cc
tests/lac/gmres_reorthogonalize_02.cc
tests/lac/gmres_reorthogonalize_03.cc
tests/lac/gmres_reorthogonalize_04.cc
tests/lac/gmres_reorthogonalize_05.cc
tests/lac/householder.cc
tests/lac/identity_matrix_01.cc
tests/lac/identity_matrix_02.cc
tests/lac/identity_matrix_03.cc
tests/lac/identity_matrix_04.cc
tests/lac/identity_matrix_05.cc
tests/lac/identity_matrix_06.cc
tests/lac/matrices.cc
tests/lac/matrices_ez.cc
tests/lac/matrices_ez_add.cc
tests/lac/matrices_lapack.cc
tests/lac/matrices_lapack_fill.cc
tests/lac/print_formatted_ez_01.cc
tests/lac/solver_02.cc
tests/lac/solver_control_01.cc
tests/lac/solver_control_02.cc
tests/lac/solver_control_03.cc
tests/lac/solver_control_04.cc
tests/lac/solver_control_05.cc
tests/lac/solver_control_06.cc
tests/lac/solver_selector_02.cc
tests/lac/solver_signals.cc
tests/lac/sparse_matrices.cc
tests/lac/utilities_03.cc
tests/lac/utilities_04.cc
tests/lac/utilities_05.cc
tests/lac/vector_accumulation_02.cc
tests/mpi/distort_random_01.cc
tests/mpi/distort_random_02.cc
tests/mpi/p4est_save_03.cc
tests/mpi/parallel_vector_03a.cc
tests/mpi/parallel_vector_24.cc
tests/mpi/refine_and_coarsen_fixed_number_07.cc
tests/mpi/renumber_cuthill_mckee.cc
tests/mpi/renumber_cuthill_mckee_02.cc
tests/mpi/renumber_z_order_01.cc
tests/mpi/renumber_z_order_02.cc
tests/mpi/torus.cc
tests/multigrid/boundary_01.cc
tests/multigrid/count_01.cc
tests/multigrid/mg_output_dirichlet.cc
tests/multigrid/mg_output_neumann.cc
tests/multigrid/smoother_block.cc
tests/multigrid/step-16-03.cc
tests/multigrid/step-16-04.cc
tests/multigrid/step-16-05.cc
tests/multigrid/step-16-06.cc
tests/multigrid/step-16-07.cc
tests/multigrid/step-16.cc
tests/multigrid/transfer_01.cc
tests/multigrid/transfer_02.cc
tests/multigrid/transfer_03.cc
tests/multigrid/transfer_block.cc
tests/multigrid/transfer_block_select.cc
tests/multigrid/transfer_compare_01.cc
tests/multigrid/transfer_select.cc
tests/multigrid/transfer_system_01.cc
tests/multigrid/transfer_system_02.cc
tests/multigrid/transfer_system_03.cc
tests/multigrid/transfer_system_04.cc
tests/multigrid/transfer_system_05.cc
tests/multigrid/transfer_system_adaptive_01.cc
tests/multigrid/transfer_system_adaptive_02.cc
tests/multigrid/transfer_system_adaptive_03.cc
tests/multigrid/transfer_system_adaptive_04.cc
tests/multigrid/transfer_system_adaptive_05.cc
tests/multigrid/transfer_system_adaptive_06.cc
tests/multigrid/transfer_system_adaptive_07.cc
tests/multigrid/transfer_system_adaptive_08.cc
tests/multigrid/transfer_system_adaptive_09.cc
tests/opencascade/circle_normal_projection.cc
tests/opencascade/iges_describe.cc
tests/opencascade/iges_describe_02.cc
tests/opencascade/interpolation_curve_boundary.cc
tests/opencascade/step_describe.cc
tests/opencascade/step_describe_02.cc
tests/optimization/bfgs_03.cc
tests/optimization/bfgs_04.cc
tests/optimization/bfgs_05.cc
tests/optimization/bfgs_05b.cc
tests/petsc/deal_solver_04.cc
tests/petsc/deal_solver_05.cc
tests/petsc/vector_print.cc
tests/physics/elasticity-kinematics_01.cc
tests/physics/elasticity-kinematics_02.cc
tests/physics/elasticity-standard_tensors_01.cc
tests/physics/step-18-rotation_matrix.cc
tests/physics/step-18.cc
tests/physics/step-44-standard_tensors-material_push_forward.cc
tests/physics/step-44-standard_tensors-spatial.cc
tests/physics/step-44.cc
tests/physics/transformations-rotations_01.cc
tests/quick_tests/gsl.cc
tests/sparsity/block_dynamic_01.cc
tests/sparsity/block_dynamic_sparsity_pattern_indexset_01.cc
tests/sparsity/block_sparsity_pattern_01.cc
tests/sparsity/block_sparsity_pattern_02.cc
tests/sparsity/chunk_sparsity_pattern_01.cc
tests/sparsity/chunk_sparsity_pattern_02.cc
tests/sparsity/chunk_sparsity_pattern_03.cc
tests/sparsity/chunk_sparsity_pattern_04.cc
tests/sparsity/chunk_sparsity_pattern_05.cc
tests/sparsity/chunk_sparsity_pattern_06.cc
tests/sparsity/chunk_sparsity_pattern_07.cc
tests/sparsity/chunk_sparsity_pattern_09.cc
tests/sparsity/chunk_sparsity_pattern_10.cc
tests/sparsity/chunk_sparsity_pattern_11.cc
tests/sparsity/dynamic_sparsity_pattern_10.cc
tests/sparsity/dynamic_sparsity_pattern_11.cc
tests/sparsity/dynamic_sparsity_pattern_12.cc
tests/sparsity/dynamic_sparsity_pattern_13.cc
tests/sparsity/dynamic_sparsity_pattern_14.cc
tests/sparsity/dynamic_sparsity_pattern_15.cc
tests/sparsity/dynamic_sparsity_pattern_16.cc
tests/sparsity/dynamic_sparsity_pattern_index_set_01.cc
tests/sparsity/dynamic_sparsity_pattern_index_set_02.cc
tests/sparsity/sparsity_pattern.cc
tests/sparsity/sparsity_pattern_01.cc
tests/sparsity/sparsity_pattern_02.cc
tests/sparsity/sparsity_pattern_03.cc
tests/sparsity/sparsity_pattern_04.cc
tests/sparsity/sparsity_pattern_05.cc
tests/sparsity/sparsity_pattern_06.cc
tests/sparsity/sparsity_pattern_07.cc
tests/sparsity/sparsity_pattern_09.cc
tests/sparsity/sparsity_pattern_10.cc
tests/sparsity/sparsity_pattern_11.cc
tests/sparsity/sparsity_pattern_12.cc
tests/sparsity/sparsity_pattern_13.cc
tests/sparsity/sparsity_pattern_copy_from_01.cc
tests/sparsity/sparsity_pattern_copy_from_02.cc
tests/sparsity/sparsity_tools_01.cc
tests/sparsity/sparsity_tools_02.cc
tests/tensors/symmetric_tensor_01.cc
tests/tensors/symmetric_tensor_02.cc
tests/tensors/symmetric_tensor_03.cc
tests/tensors/symmetric_tensor_04.cc
tests/tensors/symmetric_tensor_05.cc
tests/tensors/symmetric_tensor_06.cc
tests/tensors/symmetric_tensor_07.cc
tests/tensors/symmetric_tensor_08.cc
tests/tensors/symmetric_tensor_09.cc
tests/tensors/symmetric_tensor_10.cc
tests/tensors/symmetric_tensor_11.cc
tests/tensors/symmetric_tensor_12.cc
tests/tensors/symmetric_tensor_13.cc
tests/tensors/symmetric_tensor_14.cc
tests/tensors/symmetric_tensor_15.cc
tests/tensors/symmetric_tensor_16.cc
tests/tensors/symmetric_tensor_17.cc
tests/tensors/symmetric_tensor_18.cc
tests/tensors/symmetric_tensor_19.cc
tests/tensors/symmetric_tensor_20.cc
tests/tensors/symmetric_tensor_21.cc
tests/tensors/symmetric_tensor_22.cc
tests/tensors/symmetric_tensor_23.cc
tests/tensors/symmetric_tensor_24.cc
tests/tensors/symmetric_tensor_25.cc
tests/tensors/symmetric_tensor_26.cc
tests/tensors/symmetric_tensor_27.cc
tests/tensors/symmetric_tensor_28.cc
tests/tensors/symmetric_tensor_29.cc
tests/tensors/symmetric_tensor_30.cc
tests/tensors/symmetric_tensor_32.cc
tests/tensors/symmetric_tensor_33.cc
tests/tensors/symmetric_tensor_34.cc
tests/tensors/symmetric_tensor_35.cc
tests/tensors/symmetric_tensor_36.cc
tests/tensors/symmetric_tensor_37.cc
tests/tensors/symmetric_tensor_38.cc
tests/tensors/tensor.cc
tests/tensors/tensor_02.cc
tests/tensors/tensor_03.cc
tests/tensors/tensor_04.cc
tests/tensors/tensor_05.cc
tests/tensors/tensor_06.cc
tests/tensors/tensor_07.cc
tests/tensors/tensor_08.cc
tests/tensors/tensor_24.cc
tests/tensors/tensor_25.cc
tests/tensors/tensor_26.cc
tests/tensors/tensor_27.cc
tests/tensors/tensor_complex.cc
tests/tensors/tensor_complex_06.cc
tests/tensors/tensor_float.cc
tests/tensors/tensor_nondefault_constructor.cc
tests/trilinos/deal_solver_01.cc
tests/trilinos/deal_solver_03.cc
tests/trilinos/deal_solver_04.cc
tests/trilinos/deal_solver_05.cc
tests/trilinos/mg_transfer_prebuilt_01.cc
tests/trilinos/solver_03.cc
tests/trilinos/solver_05.cc
tests/trilinos/solver_07.cc
tests/trilinos/solver_control_01.cc
tests/trilinos/solver_control_02.cc
tests/trilinos/solver_control_03.cc
tests/trilinos/solver_control_04.cc
tests/trilinos/solver_control_05.cc
tests/trilinos/sparse_matrix_set_03.cc
tests/trilinos/sparsity_pattern_01.cc
tests/trilinos/sparsity_pattern_02.cc
tests/trilinos/sparsity_pattern_03.cc
tests/trilinos/trilinos_sparsity_pattern_03.cc
tests/trilinos/trilinos_sparsity_pattern_04.cc

index 68be0abd86a99aaaaa4a4af4ab61994659a01ee3..9fcd4f985af2893f123b09e2bdc46e8e784b4ea9 100644 (file)
@@ -125,9 +125,7 @@ test()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   test();
 }
index ba1846a928a4a5ef241ed5b7493ad18ab114fd15..3b68a5f807aee1e8ad1155d59eec223428b028e4 100644 (file)
@@ -121,9 +121,7 @@ test()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   test<2>();
 }
index 5da4efd6ec7845f59ebbbf633bba9b5632cb8d32..d11b5e86647234f2722f2e2d1c1bc03b38e4063c 100644 (file)
@@ -58,9 +58,7 @@ private:
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   FullMatrix<double> matrix(2);
   matrix(0, 0) = 0.;
index b0850182d0bd29ae31958cde9af7ded0f611003b..538fe3cd44ca722499a0c2d1e4656ff38398b0c1 100644 (file)
@@ -279,9 +279,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(2);
-      deallog.attach(logfile);
 
       ImposeBC<2>().run();
       ImposeBC<3>().run();
index 2f88ab96fe0af9c2a25c8be1d9b3297a5b2a87a8..8129cea8848147aff2a03bda4c4e62325ec2bcd2 100644 (file)
@@ -116,8 +116,7 @@ public:
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
 
   // build test-case trias
index e3537ab1fac54370214375289c87d998c1c6b4d1..6464e821de6f841c90be491ba2d8874668730fdf 100644 (file)
@@ -32,8 +32,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Triangulation<2> tria;
   GridGenerator::hyper_cube(tria, 0, 1);
index a56a1c1d608cb0a6c24a7370ab5373b67c82f96d..0861cc7a4173cf5ddc5e8b650acdd0037f783859 100644 (file)
@@ -133,10 +133,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile << std::setprecision(2);
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 19e17106e4d795ca87a53653bcc3b2afbcf0c38a..10932358b444525e6c91afc77a87a115fe995c1e 100644 (file)
@@ -131,10 +131,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile << std::setprecision(2);
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   check<2>();
   check<3>();
index b16f447a1b659b9c078b034656a9fc5f0bb63632..db9b738af40608d537c43a918816d3d18fa2f378 100644 (file)
@@ -68,9 +68,8 @@ check_solve(SolverType &         solver,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   GrowingVectorMemory<> mem;
   SolverControl         control(100, 1.e-3);
index f62aa84ca795aefd86d61c560d09f9b5f0e739b0..68b647bc6afc24a8cde9e329dbb8a4996919d1fe 100644 (file)
@@ -67,9 +67,8 @@ check_solve(SolverType &         solver,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   GrowingVectorMemory<> mem;
   SolverControl         control(100, 1.e-3);
index 5692e0d2184f3d3827040a41b3f426bcf66ac183..9b523977cbe67182965baa3e9c508bcfbc75aaa7 100644 (file)
@@ -96,9 +96,8 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4) << std::fixed;
-  deallog.attach(logfile);
 
   test();
 
index a217b0c29ed5b6402baa2c7cba4ce8a8d4e2a131..e1f049675293d0d58f8ee74a627988fb9356aa35 100644 (file)
@@ -203,10 +203,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 38481d0e2dca30346e8db8ce4f4bb9f37dd99422..497e316ab94668c59a4962d82389c490912513f9 100644 (file)
@@ -205,10 +205,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 3ec8879d40c2ed33f2a5127b057da12ffaed8beb..c57d7fd6d1b0328de9df310fecdc82ee41ccd192 100644 (file)
@@ -90,10 +90,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   check<3>();
 }
index 17e48e8bd361121ca998e874c3e78a79c9846181..e5fba6f57979aac5c1d3a9eaeb2c23144914b9cd 100644 (file)
@@ -146,9 +146,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(6);
-      deallog.attach(logfile);
 
       check<1>();
       check<2>();
index 00fab6e8b7f71e4a5ddca4c403929270cb698473..91e664c70a776d6820900fcd0678342cc71c5dda 100644 (file)
@@ -157,9 +157,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(6);
-      deallog.attach(logfile);
 
       check<1>();
       check<2>();
index f7d6eb51904ca032887037e00f048ae6403b5c89..f6495a8f5beb40da7a127b013669b284648ae8ef 100644 (file)
@@ -70,9 +70,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(2);
-      deallog.attach(logfile);
 
       CHECK_ALL(Q, 1);
       CHECK_ALL(Q, 2);
index 2b682733f4ced0856739b957333075b7b4f5e12f..f46cea5883cfbf5505cb82b85d1eae9ba3452c1d 100644 (file)
@@ -70,9 +70,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(2);
-      deallog.attach(logfile);
 
       CHECK_ALL(Q, 1);
       CHECK_ALL(Q, 2);
index 22a1a2047f851e074535167a9cfc41f7ae59f1d8..5f5a7c3f96027d90ae882a90546d9fce98a909a7 100644 (file)
@@ -83,9 +83,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(2);
-      deallog.attach(logfile);
 
       CHECK_ALL(Q, 1);
       CHECK_ALL(Q, 2);
index cf873614aadb7d99a125d9ad0b2adb3c5769e21e..11a58e414f97ccc47d1651366f79f379ebe96808 100644 (file)
@@ -177,9 +177,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(8);
-      deallog.attach(logfile);
       deallog.depth_console(0);
 
       CHECK_ALL(Q, 1, Q, 1);
index 9dca934c55664f30d40f248a85ae396edadc562d..006dcc91d7dc76b140ebb559b18cd21e8ce717af 100644 (file)
@@ -1140,10 +1140,8 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(3);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   // The general idea behind the
   // layout of this function is as
index 0d7081f8b8791dd1ea3e9d8145038c9928f21d6e..b6f4e0cf8e11444303f8cfc3984d01337b18ffd3 100644 (file)
@@ -172,9 +172,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 73ed5bd36bca8a405022f2205059fa71dc8a33e1..183ab9fc3e290225e69fb98315f2e4840fbc8c3d 100644 (file)
@@ -178,9 +178,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 4d454df6c46fb98e3c8fcdeb46698f180263f7a5..c7040577136ebe2020f21c2a303209fe81c126df 100644 (file)
@@ -204,9 +204,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 97d6907714f10679020e609173fd4df87111e653..504880c9901d3f55f449edcd36ac48d2344c55bc 100644 (file)
@@ -206,9 +206,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 840852fa027ee03b70da5a7e3a63739122ffaab6..1e79c5134f3ddbb301f9b8c18845f0fb1d1a923a 100644 (file)
@@ -218,9 +218,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 45b4ac958115f194585dbd7ae4fc78de8c777782..b00bd95b5c492c52243063a50df8ac83d3c8c616 100644 (file)
@@ -243,9 +243,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index e265f5768b17682439a4d5189176f4cfc45063dc..f1599f9ebef4530ab271b61f836d8a040248aa32 100644 (file)
@@ -170,9 +170,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index c1e1703a875423f806dfbc31583af7a8da8da2b0..9b16f1d7bd9e23aaca557fd2972896608f7aade2 100644 (file)
@@ -173,9 +173,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index c5de04cddbf8a50a689c6386ec58babdf20c77fd..d71a7ac466055f552da1501713fe706fcdecfd92 100644 (file)
@@ -185,9 +185,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index fad6522d262b8ab8f1f67b37c7834a7e65b67113..229794efd6c0465a1afc80140265cfea6db42847 100644 (file)
@@ -205,9 +205,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 6e3fd6bb30fcb271f747a1b1b13ce0a840f7efc5..ecfcf056f9ad00e5ffea4f1cf48a0475485fdc1e 100644 (file)
@@ -194,8 +194,7 @@ transfer(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "   1D solution transfer" << std::endl;
   transfer<1>(logfile);
index 1117ca981141b8da48074da95abd4fc150af8790..37faae9851d91063d8cb38a4596fc62093181aac 100644 (file)
@@ -51,8 +51,7 @@ save_mesh(const Triangulation<dim, spacedim> &tria)
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   // Extract the boundary of 3/4 of a sphere
   {
index d2588758471e01f3bacc770a03b6db8832aaef16..961913b82830dc8b64c8883454c205e87a85c102 100644 (file)
@@ -65,8 +65,7 @@ test()
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test();
 }
index c761482d25b9c0b81884b20c8a89b82b68b0a9a8..7d0864200c32c442e777e7e948da5fa285f43dc0 100644 (file)
@@ -65,8 +65,7 @@ test()
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test();
 }
index d2074020ead669af3570cc036abd7cb1d91368cc..36a952a54785d76db311c5500cc9b6b71a013783 100644 (file)
@@ -50,8 +50,7 @@ test()
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<1>();
   test<2>();
index 2439ece7796ff9401d3e443a8783ba09fc98f399..3894e4fd5f03a32078d33f95d4b38c024d3dfae9 100644 (file)
@@ -47,8 +47,7 @@ save_mesh(const Triangulation<dim, spacedim> &tria)
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   {
     // Extract the whole boundary of a hyper-cube
index c0cf8d33d6a4e1d45464437de560605bdb2707c7..031071c1c2e5bb41936826dfa32bf3c55a8e5786 100644 (file)
@@ -98,8 +98,7 @@ save_mesh(const Triangulation<dim, spacedim> &tria)
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
 
   {
index e9fb543df8342d375c702a5765725f6a8d1381b7..813bef765ffac246424792022b94c639661bdc9e 100644 (file)
@@ -81,8 +81,7 @@ save_mesh(const Triangulation<dim, spacedim> &tria)
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
 
   {
index dc880466b5f6336683f74209ea24787a27c28db3..765f1d15a0c978533865d1e61abf3b65c1b79994 100644 (file)
@@ -91,8 +91,7 @@ save_mesh(const Triangulation<dim, spacedim> &tria)
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
 
   {
index 15bbfa66278ca3527404fea4e1c57f3c8905cb23..30c30652a7d480c5c059c77f22ba7ba8d6a08ab2 100644 (file)
@@ -91,8 +91,7 @@ save_mesh(const Triangulation<dim, spacedim> &tria)
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
 
   {
index 13dfbd89586624aa47fca89e8e4b86293bfb58f1..5ea165b59e1f42c04d505bde2421b59a44f3ba1c 100644 (file)
@@ -77,8 +77,7 @@ test()
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test();
 }
index a6c7eb413bc20e75c130a5f6a019a185926fc845..b1a936eeb7aedd4daf97a54114d27f5a3c9f57e8 100644 (file)
@@ -64,8 +64,7 @@ test()
 int
 main()
 {
-  ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test();
 }
index ed4a3bd2008f274619263eb04b3968144349ece7..12da3197e326d40b2b844d7e633e130e116d2eea 100644 (file)
@@ -136,10 +136,8 @@ check()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
-  logfile << std::setprecision(2);
-  deallog.attach(logfile);
 
   check<2>();
 
index 95d2be5c464fc5dcc9bb11d8f45b8bbd8c8e8cd2..9e44933fcc25429319f70005b849bbef71f320f9 100644 (file)
@@ -255,8 +255,7 @@ curved_grid(std::ofstream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
   deallog << std::setprecision(4);
   logfile << std::setprecision(4);
 
index 15965ed7ea0e3f369bfe76ed36cdb38df409feb0..b6c7c9015e15996ea4fec19efe63a776bf914b2b 100644 (file)
@@ -69,10 +69,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(8);
-      logfile << std::setprecision(8);
-      deallog.attach(logfile);
 
       test<1>();
       test<2>();
index 814c1ac29fa5ee9eebeb4de33dff79312448b050..f62fbe839b8f46db61e3bbf7a84b36a2806cfa28 100644 (file)
@@ -66,10 +66,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(2);
-      logfile << std::setprecision(2);
-      deallog.attach(logfile);
 
       test<1>();
       test<2>();
index 59d81a875ae957de3af6f9c5ff3784f62e73b7ed..228ce94f8ddb72b513a95ddc424eb92c085ae4ba 100644 (file)
@@ -76,10 +76,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(2);
-      logfile << std::setprecision(2);
-      deallog.attach(logfile);
 
       test<1>();
       test<2>();
index d7586246cb453e56b9074548893c69fa5ea1934b..1fe34c313bf0a6702802cbdfead2363599fe224b 100644 (file)
@@ -70,10 +70,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(2);
-      logfile << std::setprecision(2);
-      deallog.attach(logfile);
 
       test<1>();
       test<2>();
index 9c916f1d123a2d60dcc089e3c2ba1f73ff7565d8..e141418d5b7a11fecb8320cd7eb1c170bec17ded 100644 (file)
@@ -86,10 +86,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(2);
-      logfile << std::setprecision(2);
-      deallog.attach(logfile);
 
       test<1>();
       test<2>();
index 8769316c97fc6983cf2e4ce98f660af8c4a18b7f..c2e1825cb1051e1ec11fc1c73dac96a439526fdc 100644 (file)
@@ -187,10 +187,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index ceecc2c5e16c4fdea005e48c028290f1ecd850e7..f4cbce693cc569432138d96a1accf85b82946372 100644 (file)
@@ -189,10 +189,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 74d8c34898f9a192e8286f712d96915b636bb82a..4effaed5aaf1bdad767ed63b5969dec4b40fa572 100644 (file)
@@ -118,10 +118,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 65227dcad135952726b9ea6312c68b04212b4b82..11b0b76701d33714e60cc74bd1076cb7b3de3fdb 100644 (file)
@@ -118,10 +118,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 0abdd995c5f00d21d4ef043a12ff275e01c0d4a3..d292869438f4852de4e8dc9d09e498b25edab5a0 100644 (file)
@@ -81,10 +81,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   check<2>();
 }
index ec04623949986ad0b472d1795d17a32e73199edf..981161a89a8fbbfb44c804b8dce4b473725fcc31 100644 (file)
@@ -118,10 +118,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 4fe181187b921a3a0f5e41cd514242db7358d7b2..4b81b2bb9578abc456bc875ba62201935ece4ef6 100644 (file)
@@ -118,10 +118,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 51666d6f7587bf761b730808bb3bbba424f7fa88..7f6b1cb5336a36efceb5203ef8e754c654aa06a1 100644 (file)
@@ -123,10 +123,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 85e3b7531f41ac21d0b70106887d27c06eaaace6..75190cd431a6fd0a1ab00b414141d58acaf873bb 100644 (file)
@@ -120,10 +120,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 85411446dfe69016901899bfe04acf1b46ed322a..f071eddbcc3c66b0cb5750b6096bcde90a7046a8 100644 (file)
@@ -102,10 +102,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 3d55625ee95109b0502b9f84c86cfca8be710ca4..db6dd863503d7c10650b01decfb2cf68248f726a 100644 (file)
@@ -120,10 +120,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 58ad9b7fdb631991bf286e6304621fecfd83535e..4f78b19c0995ad4ed0a5eee8b55af9fd85b80057 100644 (file)
@@ -119,10 +119,8 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      logfile << std::setprecision(2);
+      initlog();
       deallog << std::setprecision(2);
-      deallog.attach(logfile);
 
       check_this();
       return 0;
index 078b468e6b376d54467c053fdea6fbfbf5f80039..27c82f7d891fee5b0b5a489dcdee158d6a1b6148 100644 (file)
@@ -82,10 +82,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index b98ed1c162992ad1948f3d86719cb43a91bd15e1..e00255df0ccae267b1c02deb8f55de7e12346791 100644 (file)
@@ -83,10 +83,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 577a5e85e055c6f702fe05c4c30c4153c59a86f3..bfdfe10a0f8e9f1ce1cf4fd4501bcaaa7a38ae31 100644 (file)
@@ -86,10 +86,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 6d982b436ea4171a05d315c407dae54859bc6efd..cc2d4a5bf9c1eda61313349dc33b75d56ec2d8e6 100644 (file)
@@ -74,10 +74,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 9c8f34280c475c9d00bcb1b43894b0116c43b923..9f5515a3b0963065eccb4603ff3f9f994ef853aa 100644 (file)
@@ -79,10 +79,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index b2ffdffd2138ee11fcd8d74e220cc181d0dac77b..8ec38e572685c2bf87c4f3633726edc6453532eb 100644 (file)
@@ -82,10 +82,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 1a57c05df190941a5ed3126386f45265414ecf4a..abb036a7baa4ec40aba5f9507e3e7cb90dab3f6c 100644 (file)
@@ -83,10 +83,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 226c75cf67961c6eb54bece3509091c2594be72f..74372035e51581698ab66ff5ba54d979e053cd03 100644 (file)
@@ -87,10 +87,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 055bbeb9f42fd9e979dd9f123ac351c1b6a9543f..9dc8233ebab2ded862286c3d1ea08fb537fc01f5 100644 (file)
@@ -71,10 +71,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 50e0dff3546a95899e9edc5dc11352cdf80147c0..6ce5a8d6a214ac277080750fa2a7ba64039ebddf 100644 (file)
@@ -85,10 +85,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 0eeb2bff9583948e86fa7983049c78459e909c1d..d9234352a8f5ed22c2690a872a30eb1b8a74225d 100644 (file)
@@ -70,10 +70,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 667d68b543efa83a57f54dcd2af2aae9fe022ce7..e579ac5969bbbd4fb96618dd7c54c5848fd30c85 100644 (file)
@@ -71,10 +71,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 9f3d7c9bc41d94260b340745ab2d8a20e8709cf2..10437e9a0976e226ea8eae8aebf421cb62a7bc55 100644 (file)
@@ -70,10 +70,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 66812cdd94d2d4ade35c7e89fe32ac7502234f7e..3cc73f4164db0051d4b2daf498835f91b21c9e46 100644 (file)
@@ -71,10 +71,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("2d");
   check<2>();
index 21aeeef7e73a8fd4faba14390209afd6d024de0c..8644c8db17647a319b9fa34c322810f4f4f9d8a5 100644 (file)
@@ -122,11 +122,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 18ea80fa961bd4321db420e967d8612b511f2f1d..77db9a86bbcbb56c82dccb22e8299a865c2bb8b0 100644 (file)
@@ -111,11 +111,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 2f6a0fc6f6ae69f05ca68b9d0b7d2aab59ecbe3a..240b811b605af78d05bce360487c6fa27cb1fe5e 100644 (file)
@@ -120,11 +120,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index c01fd7b006db4fbb0df7baa81b71c8a13e99f431..9e0e2b5cd50324a38ab0f372f0bf56bea86d0393 100644 (file)
@@ -111,11 +111,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index af69b42a720c27e1cc2767dc47cecd74506c8126..f9b07ce57756e1fa812d99864280eb9b94626f6d 100644 (file)
@@ -120,11 +120,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 775e82a15b1d871b1330401ff0b0734dd1a7cb69..2f962d80f397ea34d979e3396de1174e071b9aa3 100644 (file)
@@ -117,11 +117,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 9d842262d3d76208f27a9a6517eff9deb124858a..816c71d845e896432000d30f93dc8137b22ec14f 100644 (file)
@@ -126,11 +126,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index e7f8d72f1b29cbca6977dd8dbb80e7880548c791..d252ba4c749c66cd8c5dea1e6450dec3889a693e 100644 (file)
@@ -158,11 +158,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 3dd37bab007af06e646560afb32c97eb5e966f99..392e47293073c48a26c29cf1d90d584e21f56db3 100644 (file)
@@ -165,11 +165,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 331defcb54603ef7c00a73ab4551ff1b8261b6e5..306096a2456317f6fe2f1ca1d469d49622866184 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   const unsigned int dim = 2;
   Triangulation<dim> tria;
   GridGenerator::hyper_cube(tria);
index d2eed0e340cdf8cba8ec140cf8aa50d418ff2212..1d90ce246a2677b4b2519ee2c1346b24d545a84f 100644 (file)
@@ -351,11 +351,9 @@ Step6<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   Step6<2> laplace_problem_2d;
   laplace_problem_2d.run();
 }
index 3bc7017e7e010cc272f252b751d2f26aaffcce2a..fe8601d559ba7b3300cb38a9b2fdf67682c6808e 100644 (file)
@@ -201,10 +201,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 5da96f3d7369d6fb54d3b72fb59a050908147de8..0ef503a6c47bff00e413a8e0185edfd693c2b517 100644 (file)
@@ -201,10 +201,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index 28ce24e1f5420d1f3274c5cbec459c8ae08e4842..cf9e6dac3422cd19972e81de4423f04ac2d022d6 100644 (file)
@@ -96,10 +96,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index ca0a1f11970d573450fe5af321dc5e605a2a1fff..9c652fd38f1752310a3a6b03933eee6a689aee93 100644 (file)
@@ -98,10 +98,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index dd3506592b639c92973838381c4bf0bf674c7c86..4dfe3da7c28a7b5595e543a05f8c63f7e2185cb1 100644 (file)
@@ -100,10 +100,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index c8ebdb6012f53985a5f8876b6c013ded18d87cf7..f1f4938e81ca4bf1110ce3a6a3e6b1617fba3fa0 100644 (file)
@@ -156,10 +156,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index d2b698bddce92d44e567d9757c923c28e634d731..874747e8e3a390a634a8e408ef6fb3cdd9dc8384 100644 (file)
@@ -99,10 +99,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   // test<1> ();
   test<2>();
index 52b293bb38e4e5a932423706c7bb6e1e17e5091b..554fbf2c7603565d393528a34b11bcf3d45c48b3 100644 (file)
@@ -26,8 +26,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "dim=2:" << std::endl;
   for (unsigned int degree = 0; degree < 2; ++degree)
index f9cb5e570da513be37a2ab4c46ec4b52448d04b2..ba4fa6023ecff473354bb55f5666a3351093bec5 100644 (file)
@@ -41,10 +41,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 006f01de9c5ab09cd9161d9080b26c3261d2fc64..0a97d02dd579cdcb929f2f203f9756a2bfeaad82 100644 (file)
@@ -58,10 +58,8 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 1dbfbfcb080586088d8656b9e6faa6681897fde2..97f734655d8de9b5e5cf1630eb2023953615e215 100644 (file)
@@ -44,10 +44,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 67ff97188f75f8edffe0973b3823d0bed46fe199..e0eb4a58358c8b0fb73feca6df6bbaee2148a012 100644 (file)
@@ -39,10 +39,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index b5bd9a91e6638f94239890eeeaab8ad1faab9d59..8477fa5a6ca9cd71bcaf24a5aefb2ebf50a8ca63 100644 (file)
@@ -45,10 +45,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index f24d423046c0a391a03ac96d4b887f1b43d77bd8..e6ed3fae8361ae1f95d16ce31f2dddcbf30a98b3 100644 (file)
@@ -58,10 +58,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 04664d51586362f83a33fd23a8ad0e5f40a406b7..68f77b3df26f221ed3525f8f407f98bc5bd1b40a 100644 (file)
@@ -71,10 +71,8 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 2e5b0df3aea0a879c84fa9f836fb1c25c938f101..64f52579563f1f9a357b4a068eed56a2f1b9c2eb 100644 (file)
@@ -47,10 +47,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index d419299e4dd1751b318f9c24b3b38fa6e58f82d2..80c3f43f84d62b9d72a0ce1768f4403a4c82bed6 100644 (file)
@@ -51,10 +51,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index a41cb0d271f182ddefa8c6253d268dfa8e3e8122..494de74ac52e72e760fbb00090c87b7141fd932b 100644 (file)
@@ -51,10 +51,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index a64564d782e0a86c8b742c2f7cce7ea0ddd3baa3..4728a3b311bf858bff9683b276f33b76f7160338 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 38be8c9e7ed156911ab9e0cb861c683d0703a939..7dc6a732a062e98e6956a783ff193c276343b5f2 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 95d5b3f5fe14241988e68c9d2efb521334a5b1e8..73067ab107ab3ae5b261067771d48a4c74a7f92c 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 9f764cb6216e7852b6e5b4fcf7006d8d22015a5f..d807d19e7cc505ece7e45d4fffaa0f60bf8b3367 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index b9b7e2066d714b418b16f9fbbc52e110cbe53176..72cd08ed006def5af91a8cf0c5051d01924086f3 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index b6589fa60fd45a10a01314bd9ef1f3c4e3f913f1..4e10010572f3d1a35bafa5aa980cf21f2e6c375f 100644 (file)
@@ -169,11 +169,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 41b801efe1c304fc1c178aea89211189eb00a335..39fb43dc5f5d987a3a79b633d138600d0406c781 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 28f4b9fc6d6b7f7bae99ca00c1bbf0f9bfab6f53..1466548ad00f0b8e9c32df635fadb868fcae5c78 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index b78b53cda8246c04d4f0c1180ceedbfcce1e1987..1aa5d57cf4a6b14180c9eeb928ec17fbfae540c3 100644 (file)
@@ -170,11 +170,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 9ef8f758e645d60857222c36a9fae31cb872c0b0..4b1f32862bba6020d2bdc53368b426b6c84ef89a 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 7e6531d8cbf0b82c6d494faf434bdd7a59ea1d40..27bda8a178b71cc8ab0c5f0c49f485daa43355e7 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 1498eb86b2fd5791e40d28bdefe2fb3917e2846b..02ce3a308c318cdfdd0adf6ca08f3a44db30263a 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 23b12151f37463892097d2399cc0c56ae2f76e4a..5776c9e5b18bdd802fcdfefab8a854493ab6c508 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 1a20355c0f27c09683d80e86b5296481352fa81f..37bd38e25bd9e00851f65afb703cb6b0c5d1d4e0 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index cf863e6c2057447019d04b164fc1594c234545ba..40d8a8915952925c472a1ad24dd8fc6e9d051070 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index f637975e8d0d1a8bfc1a66cdc502114a94fdf2c6..1b7a92a3b29e3d934c8272a9cc4fc7d83ccd9b40 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 36bc7f7b147020123785e6355a16f0ba3d45fc2c..b7b1abe500908387502ae00ed33f1d0675a0ce9d 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index a5e4907098d23ac98abdb64ac1360dca223cf494..9954e81c7443e112dbacd6e49172949e21263006 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 93ef484675cfaa273ec367c3f787241880d6a5f3..79b936cacd946d45240c2f4d0657ee8c437616b9 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 054c6a40897ac11839acbe2ba109fa309ccd3050..29edc9f9ca2bb16bc8c9603ad227789664574b20 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 7647443cdd8aae19b29a4a02535db58ee4f2381a..ee614283e3af86ef514d8333bd775df2c06e7e09 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index ee39d1b6b813342f314c8a3cb1a0404ba9d83e33..b3b5b000cb7974a1fff29b1e00f35485dc589858 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index a0134814d9644075d42039e3d7fac015f61abfe9..a3501bae539bd1fbc5ca28497772a9ba95f33b58 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 6500977516f68f64c35405f0f61dc19ee659711e..0772e8a03404ba3f9af2c74a02c1c69b4cd4225f 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 64b0a9ac8671569a127a460965519f59feb86a6a..e61a88ffa53c98e3842e8937f6159f0df10b6ff0 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 1c1c46c0fa7b6496733011cb2d85a7c683f10bad..3210727d5daf95e474df69db0dc01e9033d68078 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index 2fd67e6ae01015e2e6a73410bbb7da1f322af419..0752d9eac1f526b6f420079382c104ba4dc61a5e 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   test<3>();
 }
index e9fe3f666595e1e3f380327abbfa40051f1ee095..37c819df4f277a30a49cc6dcc61f929880d6bdde 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index c43ec01ae5f62c8face6738d07e685f0e3d7700d..72dae1e699b3171afbf9f9f3ff5ab20d96d03e9f 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 1d1b3071c09a8a8ada1268d797aa77b616de7461..81b20dc69dc614314a4c1ad387fc308fae48c1e0 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 23ef34ee0fbdfedc9a747345cfa0dab43e3bd289..2ed99a3eae0f025137e54b55028af53dda2bf45d 100644 (file)
@@ -168,11 +168,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test<2>();
   // test<3>();
 }
index 39554e003de542a2494985ee9be2cab4d25673ba..d101aa7fa6edec74bce2e3fe48ae9a51f6c49593 100644 (file)
@@ -144,10 +144,8 @@ check1<FE_RaviartThomasNodal>(const unsigned int min_degree,
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   check<FE_Q>(1, 4);
   check1<FE_Q_Hierarchical>(1, 4);
index 6e475a3bb1fbf46f46ed2bf15ec8c4106fb548d7..f317420ed03770131c6566d6ee68a58c6a7368e3 100644 (file)
@@ -41,10 +41,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 5e414f2896138988f5334852e3be99c3f3fc21af..17c77f880b2400fb51c4006233d758b83f3351db 100644 (file)
@@ -58,10 +58,8 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 34ad1c68cd050b45b049946c4b0796e986286858..9f20011f8b2a76261ff0789d1897c47319c1f88f 100644 (file)
@@ -44,10 +44,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 04cc98a7b60ea276b4806dd3b7101183d66ed553..a37a9f861b2a28f46db5ea0b744158c44fc07e65 100644 (file)
@@ -39,10 +39,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index a7da8ae660b9205f793395b1e57258f6a242a6ee..0b65040e71306edf73f43e162bd702dd29b00607 100644 (file)
@@ -47,10 +47,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index d00bd531d8f46a1957d1efbe57053e0ce610a218..eb8df8a4543643da4dccb961330c0f75b1bf8d80 100644 (file)
@@ -60,10 +60,8 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 8b91cefb68d11ee69e02a65d270faaff8cbd4a2f..1be791e40fec96c057d6d7b735e4b91e1ab63c94 100644 (file)
@@ -72,10 +72,8 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index be3c624f502a0a8f4a0a3c14e632ff3658e1bf2b..427e81d6d0f94a66a6057b1938cdc871b369d0fe 100644 (file)
@@ -49,10 +49,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 38403b025bae3895e7b7a1de20e668652c2f159e..dd8d67d9966dca8d3a06393b169be8786b322fda 100644 (file)
@@ -51,10 +51,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 900728e978e3e536bf55d2df68f100e09b63eb3e..86270435005d4460f411d91f2d79453eec994818 100644 (file)
@@ -51,10 +51,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 49ddd228278873f3b99f21456bb3d1f6a2e730f3..c22a11e5fc9dfa4a821c2e556dfdc62f9e28da90 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index dab5f097c961200ac6f3723bb89c94b8bd55fb03..80f174d3b9577f6b625c3261574eb8ed72d202d0 100644 (file)
@@ -73,10 +73,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index 9ed75bf19fa9fa0359d07b53e3bf3f70ec577636..d4c683f661705c1091ef0ef396379c3667ce3002 100644 (file)
@@ -59,10 +59,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index f80be40ec2b935eaa46b873fd0730c4e496c6a9d..10d8ad2e81198cfea778d3e09c185f1070fbfd3f 100644 (file)
@@ -68,10 +68,8 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
-
   test();
 }
index b22501926e3d8314fe89e32b8b4771a6a197aa2e..8fefc285e70b367f999fdf36a5ae98fd2fba60ea 100644 (file)
@@ -151,10 +151,8 @@ plot_FE_DGQ_shape_functions()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(8);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(8) << std::fixed;
 
   deallog.push("1d");
   plot_FE_Q_shape_functions<1>();
index 61f7875a8529688afbfa9c61f77f76da559bf8ab..3572a5ac6cabb0143ca70bb238a5ec616d6bd6fa 100644 (file)
@@ -106,10 +106,8 @@ plot_FE_Bernstein_shape_functions()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(8);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(8) << std::fixed;
 
   deallog.push("1d");
   plot_FE_Bernstein_shape_functions<1>();
index 5b5494dc89d251974dbf620a643a3caf7de6b7c0..9d8c6d970d6dfebcf24c3f5637d06483bbb10f0b 100644 (file)
@@ -112,10 +112,8 @@ plot_FE_DGQ_shape_functions()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(8);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(8) << std::fixed;
 
   deallog.push("2d");
   plot_FE_Q_shape_functions<2>();
index 84389f0db935292686200bf79b152e6b4085a6a7..3df9d83545fdc9a057c214fdce2d87b8cd6a604b 100644 (file)
@@ -81,8 +81,7 @@ test<1>()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<1>();
   test<2>();
index b42f9a0d68de4089b6266b8acf84b7989bdc765e..c9567cd7f3d06e4ec7a97d802b06af49bfa3db99 100644 (file)
@@ -176,11 +176,9 @@ test_hyper_cube(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<2>(1e-6);
 
   deallog << "done..." << std::endl;
index 784eccb4dac89de7e99ad7e29ab3b2d589b0f643..9ab8642472741510cc7574bdc3773cb583be4eaa 100644 (file)
@@ -130,11 +130,9 @@ test_hyper_cube(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<2>(1e-6);
   test_hyper_cube<3>(1e-6);
 }
index 5b6faa996711ae8519b97449ab963e84f6f60cd5..2b4d330e3cffb9ab5bc3ee6c520915f341b898e1 100644 (file)
@@ -182,11 +182,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 711ec0f415b1ffe6c4a744348dbf7b819d0bd3c5..4b3caaf8c359c4d43e66c3956b205253e0c3be23 100644 (file)
@@ -181,11 +181,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 21b8be5e4e6a7156295e3fd315486f51475ecce9..abba3ad3d849d5524ede08ef198e3ddb01112210 100644 (file)
@@ -172,11 +172,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index e83c015e84d96847cd67564baebcb818a44536d6..4182e1e567a2e5ba8e1d85fb11c4b79c1f4205ec 100644 (file)
@@ -176,11 +176,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index f62210a15007cfb089c006c38509e6cf28b13ec4..e6e1be0e9af15390df5392a6e8ab803d6371b801 100644 (file)
@@ -89,10 +89,8 @@ test_base()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
   try
index fef05c81df7e9e41c7cb73e89487bd7dadf4e038..6d40d14c7481041cd24988921317b2499c182c01 100644 (file)
@@ -126,10 +126,8 @@ test1()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
 
index d3866ab5a40e506c544a92ebce098d12a3c25c3e..1a9ab4b20c3d1f980c0235afda132fc2474c0cba 100644 (file)
@@ -121,10 +121,8 @@ test2()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
   try
index 6fca494a2516c58de66a20158fffdaee8d42e717..3efda2310f784b9f19b9b3afaeae73675938935a 100644 (file)
@@ -195,10 +195,8 @@ plot_shape_function()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
   try
index ab3e1ea05ee1e48d489ed4fad59ffe0a54af20ab..e2d271bbc3677b3b4e2f68cb10c092581159951a 100644 (file)
@@ -147,10 +147,8 @@ test4()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
 
index bf8535f0af4b9803c3018f42e6201bd7d6daf2fb..fa1acd207c0ad44590603a1f19d0824d061b2b65 100644 (file)
@@ -183,10 +183,8 @@ test5()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
   try
index 09a9ba0ff4291ddd395904c929a0f893cf3fe54b..1bfd33c0c2add4d46b4522052ca75cba6f5a3b5c 100644 (file)
@@ -198,10 +198,8 @@ test6(const bool         do_href,
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
 
index eeacb3a3ddb5b27dae440bc984b606cb2bb91a04..b018f25cc3c077fa14dca54ad214f86956be618b 100644 (file)
@@ -186,10 +186,8 @@ test2cells(const unsigned int p_feq = 2, const unsigned int p_feen = 1)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
 
index 5e3e6ecc4587d2f7a074c2850fe49c42f5ec1bfb..3718565c3301687a5f560fdea150299b76f66187 100644 (file)
@@ -99,10 +99,8 @@ test2cellsFESystem(const unsigned int p_feq = 2, const unsigned int p_feen = 1)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
 
index b762f0cc6982428ed7dc6e0eba801325e71b6bf0..6eb84b1feb59fe1b41fd24c7cca0b2108da61394 100644 (file)
@@ -281,10 +281,8 @@ test(const FiniteElement<dim> & fe1,
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
 
index d9adfba7ab1efbfcd9660f154088817f2e002428..9ed07ad497df0067511cc8ead25ca1189c80ba4a 100644 (file)
@@ -376,10 +376,8 @@ test(const FiniteElement<dim> & fe_base,
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
 
index a393a5f54caeb7b95371cd55e3cecf77bb51d8dd..54a50e99b483e786273d66fb00e8879d7ed0154a 100644 (file)
@@ -172,11 +172,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 9fc681e1e1395c5da9ac0bb131111a4d276de866..cb99a791f1f99ae720e0361b63e092686010d714 100644 (file)
@@ -176,11 +176,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 848e21286d027ee38a744d4bac4ffda41c34e441..68a3674e4362e734492d2adbf7c895091a14497a 100644 (file)
@@ -171,11 +171,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 472d21fbde769863d1bb8ab73fc025c4cf2a4313..d3a4224a318e2dfe285d0e35bdd03c85d6ebcfd7 100644 (file)
@@ -84,10 +84,8 @@ test2cells(const unsigned int p1 = 2, const unsigned int p2 = 1)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4) << std::fixed;
   deallog.depth_console(0);
 
 
index ae249ea59c9d18aa54fc4183225bbfcb68e79dc2..62b389318a3fecb43590e5e0437a773b262095da 100644 (file)
@@ -256,10 +256,8 @@ test(const FiniteElement<dim> &fe,
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(7);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(7) << std::fixed;
 
   const static unsigned dim      = 2;
   unsigned              order    = 1;
index 9f603b775a9ff505c74e7db48aa91d4718f034ba..b3908be1c2b518bc98fbd1a8fec8c90880310bdd 100644 (file)
@@ -410,10 +410,8 @@ test(const FiniteElement<dim> &fe,
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(7);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(7) << std::fixed;
 
   const static unsigned dim      = 3;
   unsigned              order    = 1;
index a936e76613223248a7f447ea740ffb7104c8663f..0f7c7e7517dee8fd9830fe1d9cfc3a41bdf63890 100644 (file)
@@ -181,11 +181,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 7cf67b9801c52590112af261abd733ad1f4bff8e..012881d5e4ea2cb7c87d265d12716f2932c5176e 100644 (file)
@@ -172,11 +172,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 68ed2b002acb04ca23f69b417d8975dcd85be10d..b7286a4573a9188434194b4c25cdfcef15785e94 100644 (file)
@@ -176,11 +176,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index f439f16733e0572d9332ad46a1a13c1ba8bb4c22..043c6536e8be90dfca01bd9e5146fc14e7569b37 100644 (file)
@@ -182,11 +182,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 991300ca2f47237c4f9d7e5db315c6a55862926f..171fd3d7f007018f3c8e67ef53d424a1aa81e068 100644 (file)
@@ -177,11 +177,9 @@ test_hyper_cube(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<2>(1e-6);
   test_hyper_cube<3>(1e-6);
 
index 868108c43227eb526bcb6aed1ae48e3b095d92cf..bd5fcf2b74f994c41a2876a1f8ac6f0dfaab5cf0 100644 (file)
@@ -175,11 +175,9 @@ test_hyper_cube(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<2>(1e-6);
   test_hyper_cube<3>(1e-6);
 
index e73074878a61f5502e1c513aebb596557bb1e7b5..1e4ff968579d5464c63cbc8d0f550889abbae8d5 100644 (file)
@@ -181,11 +181,9 @@ test_hyper_ball(const double tolerance)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
 
-  deallog.attach(logfile);
-
   test_hyper_ball<2>(1e-6);
   test_hyper_ball<3>(1e-6);
 
index 6fa20c2c4636fa744fa80dcb9597706a15c39291..6075479ffbcfefb7f8102d9c7c9348ab3273b6ab 100644 (file)
@@ -200,8 +200,7 @@ test_renumbering()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test_projection<1>(logfile);
   test_projection<2>(logfile);
index 086cea2d11d02ceec59fc1d2bf0d5e0db3527691..636ff52e81b90686c852ffd2a16269f70d1f6f11 100644 (file)
@@ -43,8 +43,7 @@ test_fe(const char *name)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   // These names are all correct.
   test_fe<1>("FE_Q(1)");
index 8da565eaa423e214b7f80061a74f664563e2fc4f..ef722d8cd7126e0751c2fe1be5a193b2d04a5d97 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   {
     std::vector<FEValuesExtractors::Scalar> x;
     x.push_back(FEValuesExtractors::Scalar(42));
index 31e8988d5770c3054d3d87a7f0382639452e2391..e08ec3042929d81e93e445649b8352d8901543b1 100644 (file)
@@ -411,9 +411,8 @@ main(int argc, char **argv)
 
   static const int dim = 2;
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(10);
-  deallog.attach(logfile);
   for (unsigned int n_global_refines = 3; n_global_refines < 6;
        ++n_global_refines)
     {
index 7f75e572f9902fefb42c3520851f44cbdda94a85..12cd9d2c46e7ec4cdd9ecbfdae9e75292b21fc42 100644 (file)
@@ -144,9 +144,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 5fe7fc6936545865af5f222bb8e640f745f0b17f..9c91670ba6e96414b83c74c1ced395ffc0276dfc 100644 (file)
@@ -110,11 +110,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 174f5436f86ca3a3eb97bbc0bc41457901009f36..3876bec6bda6151b6d030fcc9aeb2cfa6a609cc2 100644 (file)
@@ -139,11 +139,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 04be84d071aef62b8aa7ea274f2af4c05969a0d8..c9fddb271ff69d9680e1cacbc75ce885930b7e8b 100644 (file)
@@ -115,11 +115,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index cb20b91a011f8814f6e4b44dd862d86853c09fc3..71349450cb9f1d44915eceb37d70d44702465ee3 100644 (file)
@@ -144,11 +144,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 8c07430b3a0ac2ae23df8266403d5d06b4025cbe..ea7e34643821added63bda50068696b86099f96d 100644 (file)
@@ -105,11 +105,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index d64e902b0b61ea330eef114ddedff97d145eab8e..7a94c8ed6635d039f230f34716f30a5a5565a7bb 100644 (file)
@@ -100,11 +100,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 7a8644b5f0d48478bfccb045c6d0448dc339d92e..3edbbb0b2cdc4cb4defdbfb469a57b40b9904c98 100644 (file)
@@ -105,11 +105,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 430470dc81d6818a8a6ffa59c40107247e2be50e..c6672347a5213b41218ef20ed17481a0e2362a3f 100644 (file)
@@ -103,11 +103,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index eb5160772ead840c091051c907ee255c28cb1da6..fba93b0b80385a535908b385e930e85b71bce741 100644 (file)
@@ -105,11 +105,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 2f7c5372af601c842066ad042d03997a1a7d435f..d458788d2f7dc466c6fce9f9f8de4d283f191565 100644 (file)
@@ -107,11 +107,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index ae08ee47a16af27f6510ac0ce1fb9863fb0204a3..3f62b6aca0b1993428512ffa9fd356edc9c7c817 100644 (file)
@@ -110,11 +110,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 1817cff5da0e46ef9159e5b912741e6e3333dc92..d12c5388b9d12c3d7b905c0dda5cf9779559da41 100644 (file)
@@ -110,11 +110,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 73d83d6815e59f628687fc23e747a9b73e5282b2..4d211b6f10156fcd25401d9f11e983a376cbba9a 100644 (file)
@@ -110,11 +110,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index bff44880297025e0f528a7a4a21f4f50644dfa47..5468337e949f1ffe537d8dd8131dbc23bd35ef56 100644 (file)
@@ -112,11 +112,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 7f9caf36c8fa7a7dd6cde25dd02d36a79719921d..e71e558ec91161335288677066be513043274707 100644 (file)
@@ -106,11 +106,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 6addbc0006a1d0e7db33c96473bded6d2b71c63e..4f11d8bc15ea376570d55e6fd7f5023ca950d791 100644 (file)
@@ -111,11 +111,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index cd388a898926886c987aa922251ad00bce67c353..418d0411a3ed0875499037e72b2498b5acefbf86 100644 (file)
@@ -111,11 +111,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index d73f3c069d92f430c57b820c92e6c1cfe8113f0a..828608e5756e455a0a1e6b786f15ba211303a28d 100644 (file)
@@ -112,11 +112,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index d3381eb46f2fbebd2366a5b7f5134fd07609ebd7..4f179c88a2034562005187b0a3cb2086797c5fa9 100644 (file)
@@ -112,11 +112,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index f43651332c504156b3c844776da8654889483395..2ccbc247ddd5418ddabd8181c2ec7c24d8caabbf 100644 (file)
@@ -119,11 +119,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index d7c83cacc9fd86651aa58d1b20e9903d8417cc19..d39fb0c8fc6f31ad75892142ddc066d662ea2c30 100644 (file)
@@ -110,11 +110,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 4e47d5e47024c4f27eb3e42b0a6400378952fb27..8f22e121146db1f1bdb42f9177fd7d32ba278643 100644 (file)
@@ -114,11 +114,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 4769ec92c6c154ef879760f0029695ed02dcbef1..459a8c699f927c989345752b8347354d19c5f99d 100644 (file)
@@ -211,11 +211,9 @@ MixedElastoPlasticity<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   MixedElastoPlasticity<3> elasto_plasticity(1);
   elasto_plasticity.run();
 }
index 66021e8a179146d7e64663383c64e61e966483bb..62d6f41738c0c5b242cbf891009c05235209a87b 100644 (file)
@@ -212,11 +212,9 @@ MixedElastoPlasticity<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   MixedElastoPlasticity<3> elasto_plasticity(1);
   elasto_plasticity.run();
 }
index 9461c81244fdd2705124c5f83629a70065930c7b..c29ebe138380eb39e3c6345c9761ec1d26e44ada 100644 (file)
@@ -249,11 +249,9 @@ MixedElastoPlasticity<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   MixedElastoPlasticity<3> elasto_plasticity(1);
   elasto_plasticity.run();
 
index 0e0c045acf26d251c1e83d7c27e9c308154ee8bf..31ef04c07189f9b491adf70eddc997c745333f4b 100644 (file)
@@ -102,11 +102,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 897e16a42ba7815bac8c9eff42bf37c259d65028..094da04ce1e1c5fb1061aa1399374d554ab49f68 100644 (file)
@@ -100,11 +100,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index cfacdfd7921a3ba9b78b50f2922aa3ec7e913fe0..6ba5e5322a8b236933d110608fa751f6c3c519a0 100644 (file)
@@ -97,11 +97,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index fe61189e063d497adbe31bae1f3c872619574589..71e73f6a9c1428e3c8637d8a51add7a741aa4527 100644 (file)
@@ -91,11 +91,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index f04b6483555115316ff6062d3b66726bf280bade..014f88d32b6b028022f4c6577d3736ae43dcfba7 100644 (file)
@@ -98,11 +98,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<1>();
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index 50a3b2b13dfb3bdf62eab3d75ef9b3685235ffe5..d945c90bbb5aa7cac9e5407ce80b8a061c6d39b5 100644 (file)
@@ -97,11 +97,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<1>();
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index 10e8c75d1d530dc0ebc16887ca64974aed40924b..a85fed70f26bb33180ff75b0b2348ccdbd7e4ed5 100644 (file)
@@ -221,11 +221,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<1>();
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index cd75c96574f970b826b4ea4b513d7177bacf02e9..b5f76d10163fb46b150eff2882b70961e833b490 100644 (file)
@@ -109,11 +109,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<2>();
   test_hyper_cube<3>();
 }
index 1c116538f272629e3887f6e13f2c1ae148483249..fe92a7d6282e42a6dfe8db0e7ad13b0d729aa4cb 100644 (file)
@@ -109,11 +109,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<2>();
   test_hyper_cube<3>();
 }
index 805a8321ed1c1acf4f9449811969687bebde17ec..73416c79e2768a4d7857ac43f001947a829a655f 100644 (file)
@@ -140,10 +140,8 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<2>();
 }
index 78ee65b918e21a37471a975233e92c9e231bd2c1..75686a24463716484db96527afc9177aecbe95ef 100644 (file)
@@ -145,10 +145,8 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_cube<2>();
 }
index 7b884a22be1ed20d0524315cff7ecdd31d8c4a35..3796c427f120fd0d7255943ae0ad3aa945870dc8 100644 (file)
@@ -195,11 +195,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 7a5200e6daf74fd4fec9b2d7f3769725dccf750f..9ab030337650c40228d7ff21bd92b2cf2306ba54 100644 (file)
@@ -78,11 +78,9 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 257e8ad7840a0b19c68808b25831fe9aee261373..ceecce7080ca5624fd9bfbbef9d02f4e5f4f43b1 100644 (file)
@@ -78,11 +78,9 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 8c27619dcf41a7ddb09e66b91f1bd702e5324b26..21dd00b9c7d74c171fcde648eee985aa87317236 100644 (file)
@@ -78,11 +78,9 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 3ce1e89a08bbc001ac990bf4055995a51fcf26c5..705bd2e10409b68cb5495ab906b769438dceef08 100644 (file)
@@ -78,11 +78,9 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index eb9e7b4ee751b380f9ace97f1dce517097f0900b..4a437d0491db8d0ec9dfc50d9c2d86c8db1cb686 100644 (file)
@@ -244,10 +244,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   check();
 }
index 0af6f0c4b2947ae733b76dbf4b24aa539ef9f33c..3f34c3b92a2646be77dea089db4b37b4f504c346 100644 (file)
@@ -43,8 +43,7 @@ check1(const Function<dim> &f, const unsigned int degree)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   {
     Q1WedgeFunction<2, 0, 2> w20;
index 17e3e0b5247eb4713a6f4b0852d36befecf2eecb..f79c24a6b6293dec991155e10fb0acd59cc8fa80 100644 (file)
@@ -77,8 +77,7 @@ check_dg_lobatto(const Function<dim> &f, const unsigned int degree)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Q1WedgeFunction<1, 1> w1;
   check(w1, 1);
index 19048d984cff314b1cfc57ac4f2407ecb65b01f7..64107c077ca53be7a1d67577bc642587e3c25aa2 100644 (file)
@@ -40,8 +40,7 @@ check_q_bubbles(const Function<dim> &f, const unsigned int degree)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Q1WedgeFunction<1, 1> w1;
   check_q_bubbles(w1, 1);
index 2f0d927b85c5c94cea5869352020a6f51e2eadea..8b06ce0c3ad4981783cc2416d40b9b0890a7f4e5 100644 (file)
@@ -40,8 +40,7 @@ check_q_dg0(const Function<dim> &f, const unsigned int degree)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Q1WedgeFunction<1, 1> w1;
   check_q_dg0(w1, 1);
index 3156f6810b4695618459d3c9218c93eacd788d33..9853ae65a9c91c18d26ae5a7f7da3a4d526ccefb 100644 (file)
@@ -42,8 +42,7 @@ check(const Function<dim> &f, const unsigned int degree)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Q1WedgeFunction<1, 1> w1;
   check(w1, 1);
index 0aa00e2757fc90ba883a73ab45770cc6ce88741e..ad97244c74566b22a36fc5c30d94c25a56079db7 100644 (file)
@@ -182,11 +182,9 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 2f434a2855a06b11e32cc9ed29c57f376ba3636d..9d63b2f0582ee815355a9c28e500136180f40794 100644 (file)
@@ -43,8 +43,7 @@ check1(const Function<dim> &f, const unsigned int degree)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   //   Q1WedgeFunction<1,1,2> w1;
   //   check1(w1,1,2);
index 494120bf8318597728d82f25595c5454fe79349f..e926dc12514f1c563b116aaeab60803912a8e76d 100644 (file)
@@ -43,8 +43,7 @@ check1(const Function<dim> &f, const unsigned int degree)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   //    Q1WedgeFunction<1,1,2> w1;
   //    check1(w1,1,2);
index f8aed58b3f77232b022922a146195fa9bc20ccc8..7dad82287a2a7f6d287faa181dab14f9cc2808f8 100644 (file)
@@ -69,8 +69,7 @@ check3(const Function<dim> &f,
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Q1WedgeFunction<1, 1, 2> w1;
   check1(w1, 1, 2);
index 83fa84a876daf49c298378ff1dce2157cc7ff6b7..3a8086fff6579d6af0e635028359fc096e860abe 100644 (file)
@@ -251,9 +251,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index df1a94f7eda55c41e1c805613e90de1fd6e20abf..ae40ba3854db824c84fa011948a00248fc0556c8 100644 (file)
@@ -411,9 +411,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 5e28e3a5568d9ab5abedc7578e04a10b40faaa4d..557427b5510ce5a809cf70961d0d5c1f3993ac8c 100644 (file)
@@ -409,9 +409,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 6e4218efea70c493131221cb910b329be231bfd9..6639c06de80685b66ee17f52731d98329bd2d51b 100644 (file)
@@ -428,9 +428,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 387a71f99b65aa0b2935e3d9f462188fc631bcf4..cda834088d994f546ab963e08a371267df77da04 100644 (file)
@@ -61,10 +61,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(5);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(5) << std::fixed;
   deallog.depth_console(0);
 
   check<2>();
index 7b88c36b90ac1cfe7ff44cc1dfe8a525c8cefb8c..ab2124719fcee9de96106c91aefa73c9c8fb55c6 100644 (file)
@@ -75,10 +75,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(5);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(5) << std::fixed;
   deallog.depth_console(0);
 
   check<2>();
index 1365a2c121a23f0cf5717730806ff6066c2f4213..9beaaed4e472a32a27a01c38bb2c9fbae38b846c 100644 (file)
@@ -79,10 +79,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(5);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(5) << std::fixed;
   deallog.depth_console(0);
 
   check<2>();
index 2a1457123ff8dc4fb5d02e26337d7ff44f23667f..56f1c4437762e80d05d0d874ae3fd3b3743fd015 100644 (file)
@@ -79,10 +79,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(5);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(5) << std::fixed;
   deallog.depth_console(0);
 
   check<2>();
index 380b28722b1312b32e5faa32357f77f404951479..fac57ea35f23c8d64c3d3513b5fbc5f32c3a3b9c 100644 (file)
@@ -61,10 +61,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(5);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(5) << std::fixed;
   deallog.depth_console(0);
 
   check<2>();
index 383ac23aacf88eb86c9d9f97b4b6237f2f5afab2..31ec5c9f6bcef683bb9d6e736cb134bae9d6ab4a 100644 (file)
@@ -75,10 +75,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(5);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(5) << std::fixed;
   deallog.depth_console(0);
 
   check<2>();
index bfaeafb9cf0c16fb239ebd2d74c8d1cd2cbb130d..4a22f055b128e602e8d56b65e14f0f5b38fd980a 100644 (file)
@@ -79,10 +79,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(5);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(5) << std::fixed;
   deallog.depth_console(0);
 
   check<2>();
index 98259800d9afae22de97e702b35664660df69ab1..39be71e63b1e20ec981796a521022ac216d1efa2 100644 (file)
@@ -79,10 +79,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(5);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(5) << std::fixed;
   deallog.depth_console(0);
 
   check<2>();
index e42e0c2493c6e2c60be1f7971024aeead12bcd6c..a3563266bf7f1873e6159344ecf40c9f522f27d3 100644 (file)
@@ -74,11 +74,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 287442fb20506518d067d8dbcf7fb6f0d910b816..e6c21676c278ec25445ee2bc675b51b64de0bd2f 100644 (file)
@@ -84,11 +84,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index d1c5badf5e9264b08b50a1eaa9645a4228848d04..ccd516652e432794f19305a5d3b04f2c6b0eab37 100644 (file)
@@ -154,8 +154,7 @@ test(unsigned int degree)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<2>(0);
   test<2>(1);
index 2552f08aa22f07ddbbbf951da6c13d9a727fe798..b6821e7705caea4c38b08ce2ce9e5cd853748304 100644 (file)
@@ -140,8 +140,7 @@ check_face_support_points(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   FE_RaviartThomasNodal<2> e20(0);
   check_support_points(e20);
index 027484810bb388f0135cee3b007253e237885055..6163fe2892ce3aa8ad034d471de4a241d2aefffd 100644 (file)
@@ -31,9 +31,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   GrowingVectorMemory<> mem;
   SolverControl         control(100, 1.e-3);
index 84de73146919da8a53a742b584c248dd05096871..154935a036457215ae0d841bd85c6bd0c39a1874 100644 (file)
@@ -28,9 +28,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   SparsityPattern sparsity_pattern(4, 4);
   sparsity_pattern.compress();
index be627fd00195d48a50e416e2e946318f74c11a1f..dd1d8dd6d33fc15a9f6b4db5f340210ebc91b10a 100644 (file)
@@ -384,11 +384,9 @@ LaplaceProblem<VectorType, Matrix, Sparsity>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
 
   // vector of solution vectors
   std::vector<std::vector<double>> solutions;
index ca5798c0a8141e0dbea093ec0d4ea8ee54e880e2..ed9aa8b2250e240f689fce481710233c7898b0a2 100644 (file)
@@ -30,9 +30,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
 
   // assemble a 2x2 block identity
index 16d2ec40298df58a961eab937cf1151c3f003d76..7cc1919e60122a25458aed36647970dbe2d75c76 100644 (file)
@@ -326,10 +326,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   try
     {
index ec31211b832461ba0c6d5e1a6b309bbbcfe795d5..e301760fb3f7f5e8fb0476cf0aa7aa06682b637d 100644 (file)
@@ -69,10 +69,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   try
     {
index c19b984fa9c0da73c05fe30b3458456bf6c2b8b5..6a3639f742b881cdcf2d4dbdbc2a506e16b10a42 100644 (file)
@@ -329,10 +329,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   try
     {
index 13b04cb4490bf8bd56bb4cb1aed86a0c012da840..e6f5e9d8c6967a3f9b39e8b89a3462a4dd92a731 100644 (file)
@@ -69,10 +69,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   try
     {
index 98bfdc00585e2ccaa7c7a5dd4af2ee0fd963d279..f695b7a54603029457df358f5599412ebe5c8c6a 100644 (file)
@@ -49,10 +49,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   test();
 
index 63730c59ad7bc015bfdd4676250a547824dbcf60..29e26dc10548ca22b0421ac8ee79a8e3135abe95 100644 (file)
@@ -54,10 +54,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   test();
 
index 89e4f5040216674fb53ef37e540e748640b29d7e..f8415d13e2794cc9acc00f8f63c44e566253fc58 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   test();
 
index 5fe3f0a9185035fed0425f6f2f0497570b18c35d..bcc00930ab94bdb40c09e6b04f756569b0a09aa2 100644 (file)
@@ -53,10 +53,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   test();
 
index a4eac8c3022b0c77482bd74a39f051faec3da6df..badabb1a699bf3a24a9641034066aa349a13a81c 100644 (file)
@@ -58,10 +58,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   test();
 
index 964a96245aba040bd36e53680bcf77cf1203d20f..c0fbf476e06b512474cb47f6f46e6c22f84d0561 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   AffineConstraints<double> constraints;
   unsigned int              IDs[]  = {1, 2, 3, 5, 8, 13, 21};
index 7721b53f81438013c1cec91ecfeb3cf2299898d6..e7caf49b00f8200deb84a321b00821f494690ebc 100644 (file)
@@ -49,10 +49,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   test();
 
index 95b1a1c860374abe5152d7767a44914cf4e7e4ba..1b00454248e87c1869f180f17f3d6788cfc47187 100644 (file)
@@ -68,11 +68,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test();
 
   deallog << "OK" << std::endl;
index b3ac4a38e775c3a5fffef8d2c37c4e8806b8f297..c77aa6a38c93ea5aa6474defdd929eeadab52434 100644 (file)
@@ -56,10 +56,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   test();
 
index 8ccbae4dbca881e6ff23dd98e0263edba3365a0d..bcb04cb6830a62bb16c71e284eb8af6615fc4605 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   SparseMatrixEZ<double> ez(5, 4);
   ez.set(0, 0, 2.);
index 86a32f001739337eb6b539048f47a52dfdebdcfe..4df8737b3121f96c8f57d44fe2d8363a473b514b 100644 (file)
@@ -209,10 +209,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(2);
-  deallog << std::fixed;
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   deallog.push("1d");
   check<1>();
index a375e365931b0473f80cd3c7b1de6606721cc63d..db1ae815ca72e4cc5ea1a35596631b4153c39aab 100644 (file)
@@ -117,9 +117,8 @@ test(unsigned int variant)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(10);
-  deallog.attach(logfile);
 
   deallog.push("double");
   test<double>(0);
index 0dd4a49aa0a480ed343085ad8144db3ca20a9926..ca3ddcb25958e39b7e43afa167cf49e3337dea1a 100644 (file)
@@ -58,9 +58,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   deallog.push("double");
   test<double>();
index c175e045f3f8eaf5d3f42e2cc719f7c3215dfa6d..f0765fe85676eac6d082b11ed30442eedefd02bb 100644 (file)
@@ -85,9 +85,8 @@ test(unsigned int variant)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("double");
   test<double>(0);
index 76bceaa6b7f8ac4ffc2f2df0ed4acd976fc615c3..c31f18ed08242e5ebf98faf41a52807a8bd2d4ed 100644 (file)
@@ -87,9 +87,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("double");
   test<double>();
index c3e1a1e07152f050593253988a2e124d56e3ad7b..c0c9367f12cd639c17e5c26351ed29d09a4511df 100644 (file)
@@ -85,9 +85,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("double");
   test<double>();
index 737fb17bbf4eb1100bf8ef6c8429c38a6123f90b..7d2e5dadb10b5b3791bc4da0cd4825e074c736a8 100644 (file)
@@ -31,9 +31,8 @@ const double rect[3][4] = {{4., 3., 2., 1.},
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   FullMatrix<double>  A(4, 3, &rect[0][0]);
   Householder<double> H(A);
index 4d009dafba992aeafaa82b6907f494f9f8e21851..2be68f9c5c4674b63a1f95645b17e940361e5b11 100644 (file)
@@ -65,10 +65,8 @@ check_vmult()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(0);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(0) << std::fixed;
 
   check_vmult<double>();
   check_vmult<float>();
index e9ae0259c525be5d16b4cb566dccbe628e5f99d6..844617c3f626b5b1416527df9da6d8b76b2acbde 100644 (file)
@@ -66,10 +66,8 @@ check_vmult()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(0);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(0) << std::fixed;
 
   check_vmult<double>();
   check_vmult<float>();
index 49f13322c80eae7d7c853cc4cd03ca35c0cf1626..4c90e6c8b48ee61384d1b16f94378c2fa3963e2d 100644 (file)
@@ -67,10 +67,8 @@ check_vmult()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(0);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(0) << std::fixed;
 
   check_vmult<double>();
   check_vmult<float>();
index 07ba8221226c22ee8d0ed985c7480729f30e1682..1d331eb18c2f232fe279351ba5381db0e149b714 100644 (file)
@@ -71,10 +71,8 @@ check_vmult()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(0);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(0) << std::fixed;
 
   check_vmult<double>();
   check_vmult<float>();
index 023dd27286c779aca6b0af890c30847cc665a045..3230473b710befb89551d0b3932febb3fa8fb424 100644 (file)
@@ -72,10 +72,8 @@ check_vmult()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(0);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(0) << std::fixed;
 
   check_vmult<double>();
   check_vmult<float>();
index 3a46d6f0afe12eea4a86fdb802cd1c55d18a1503..bbf9571447310b0382c1e64fa5b111a972866369 100644 (file)
@@ -70,10 +70,8 @@ check_vmult()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(0);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(0) << std::fixed;
 
   check_vmult<double>();
   check_vmult<float>();
index b40ec5367c7947e99ce6efdc11f935a2f82956b4..928f23a84e777fb6d0534b684b9409a6f80f9fac 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   SparseMatrixEZ<double> ez(5, 4);
   ez.set(0, 0, 2.);
index 881f237f8ca904984081ddbf90289cb062aeceb1..3c41414cc247ada897968a1bdfcb6b8880ee10b5 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   SparseMatrixEZ<double> ez(5, 4);
   ez.set(0, 0, 2.);
index dbb7927d90c15c07bf02ea887d737d3021e3ed0b..2646ccdcbac17d27b9e7ffc3911e26d14ed68b0e 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   SparseMatrixEZ<double> ez(5, 4);
   ez.set(0, 0, 2.);
index 57e1beeab191f95bd6146d7c8a246162bb0ef4c8..704a7ee727fbcab1632571aa898517c7384b155f 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   SparseMatrixEZ<double> ez(5, 4);
   ez.set(0, 0, 2.);
index 823e9679297efd38451695689072f76ea00930d3..da4997f9b4a387ebb23349ba605fffbd73db3488 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   SparseMatrixEZ<double> ez(5, 4);
   ez.set(0, 0, 2.);
index 12ff1933abfcbfd77fbe26f8a96093790b1fcdf0..42e219e9140ba036bd7f1b5d96a60903fa297162 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   SparseMatrixEZ<double> ez(5, 4);
   ez.set(0, 0, 2.);
index a046cc8136cc38cc22d75b4d2f596807a48d88ec..38c64137fd0ac6e497c05585dfc8a06ad3cf3c6d 100644 (file)
@@ -60,9 +60,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   test<SolverGMRES<Vector<double>>>();
   test<SolverCG<Vector<double>>>();
index ff4ab124310926e3d1a8b74063a6e30d7a753103..06a0ec171b32653885d0a3ad615c96fe3d88ae2e 100644 (file)
@@ -67,9 +67,8 @@ check_solve(SolverControl &     solver_control,
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   {
     const unsigned int size = 32;
index 34b1852616b00851579ec8627607b6638feae961..27b092e7a116e69794b2802efef19ea7b5e31558 100644 (file)
@@ -67,9 +67,8 @@ check_solve(SolverControl &     solver_control,
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
 
   {
index 29e21167cdd2e8e4d14e7a331c675f9806a19e69..00194c22d1c58a935a815dbbc4a536193272d4d0 100644 (file)
@@ -67,9 +67,8 @@ check_solve(SolverControl &     solver_control,
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
 
   {
index c84795d262e874d51d2f69b3a9641011e862647e..b114635378531afbd8e6ce0ce9f49dbc6a219333 100644 (file)
@@ -67,9 +67,8 @@ check_solve(SolverControl &     solver_control,
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   {
     const unsigned int size = 32;
index 872af2a4a57c79bcbf42e7119404732af0a90683..d6715d13f74388dbb3fcd976ff8c5f101a2d52ee 100644 (file)
@@ -29,9 +29,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   {
     ConsecutiveControl solver_control(12345, 1.e-3, 3, false, false);
index 87e299640581bf3c07f2425bf473ec263ddcb5a5..af3a41d379de2840e1ac6fad664689dd649aadfc 100644 (file)
@@ -29,9 +29,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   {
     ConsecutiveControl solver_control(12345, 1.e-3, 3, true, true);
index bcbb6d71f62273d3060d117cec307c5406b8cc57..e3874205d0c426f40b5fa83e473bdba733f70fd8 100644 (file)
@@ -72,9 +72,8 @@ check(const MatrixType &A, const VectorType &f)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   unsigned int size = 37;
   unsigned int dim  = (size - 1) * (size - 1);
index 87ad383f6cd5eeb7438b43cbd0e5a8aab5ed8820..d82ccb01a8753592a247edcd2ba7e4379d2ad835 100644 (file)
@@ -111,9 +111,8 @@ check_solve(SolverType &        solver,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   SolverControl solver_control(100, 1.e-3);
 
index aa5302a95fe5a88357938ab85f7703b11e1899f3..2d937a601e1024f6350d85f8336e91be4b2f123d 100644 (file)
@@ -281,10 +281,8 @@ check_conjugate(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile << std::setprecision(3);
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   const unsigned int size       = 5;
   const unsigned int row_length = 3;
index bca8db0aef7ba3e24e38c0f6caeefcebe0c323ab..b578216f55a7f83033f690d65229a11eaeb61837 100644 (file)
@@ -166,9 +166,8 @@ check(const int          degree,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(6);
-  deallog.attach(logfile);
 
   deallog << "No scaling:" << std::endl;
   // no scaling:
index 0332537a699b6371d57465a3213ba8206af1ea41..6021ecdcd17828e99d35bf410fe8a1f6ece3c2e0 100644 (file)
@@ -65,9 +65,8 @@ test(const NumberType a, const NumberType b)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(6);
-  deallog.attach(logfile);
 
   deallog << "Residuals:" << std::endl;
   // g==0
index 9ed3dacf55a5273555a3c7d36c912ab087b81cd4..a99d6004f4712442e85cd0a27d3063c10ea91626 100644 (file)
@@ -65,9 +65,8 @@ test(const NumberType a, const NumberType b)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(6);
-  deallog.attach(logfile);
 
   deallog << "Residuals:" << std::endl;
   // check all combinations with real solutions: |f| > |g|
index bd2e243478010f43ebb18f8ced5146a844b375ed..9180ad3200e5ef0204e3b6fd08dff72b712763cc 100644 (file)
@@ -70,9 +70,8 @@ check_norms()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   check_norms<float>();
   check_norms<double>();
index 6ae49b78fe41b7587d898ed61fd6b2aedb7bbc47..94b2d8eb8b129689cd8fcc2cb2f3955d2e922cd2 100644 (file)
@@ -76,10 +76,8 @@ main(int argc, char *argv[])
 
   if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(4);
-      logfile << std::setprecision(4);
-      deallog.attach(logfile);
 
       test1<2>(true);
       test1<2>(false);
index f13213c78e51155f2b8283bf258bce2dfbebce49..507f0b6b9139398038e7362e0fb058190400f943 100644 (file)
@@ -91,10 +91,8 @@ main(int argc, char *argv[])
 
   if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
     {
-      std::ofstream logfile("output");
+      initlog();
       deallog << std::setprecision(4);
-      logfile << std::setprecision(4);
-      deallog.attach(logfile);
 
       test1<2>(true);
       test1<2>(false);
index 0372c0007c04fe988ac932de5c72ee24534d6437..60f058ecd26fa4a654775fb19ccd287d30598078 100644 (file)
@@ -186,8 +186,7 @@ main(int argc, char *argv[])
 
   if (myid == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       deallog.push("2d");
       test<2>();
index aad1ca498b1f46bfb05b08f57166a1b2110cd9db..b7aaa5bb3be8783cea36c5177ee7745f279c0880 100644 (file)
@@ -120,8 +120,7 @@ main(int argc, char **argv)
 
   if (myid == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
       deallog << std::setprecision(4);
 
       test();
index 9d510bcd28cd00742214a5680f6c62c30238a2c4..9fdb1dc8f7ed24df2a6704b8f05cd389d07d5fdc 100644 (file)
@@ -132,8 +132,7 @@ main(int argc, char **argv)
 
   if (myid == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
       deallog << std::setprecision(4);
 
       test();
index 4ecf679d8ecf217c29f32659037bc56e272db19a..ca7c127f3746c8de8b6cb1e1fdf5278a2ed1b47b 100644 (file)
@@ -127,8 +127,7 @@ main(int argc, char *argv[])
 
     if (myid == 0)
       {
-        std::ofstream logfile("output");
-        deallog.attach(logfile);
+        initlog();
 
         test(max_n_cell_ratio);
       }
index 4bc681096030adf557380d88a630d09e2a4ae6c7..b4ef68f8fcfeb27ca0e6c4ce613065d18aa503f6 100644 (file)
@@ -120,8 +120,7 @@ main(int argc, char *argv[])
 
   if (myid == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       deallog.push("2d");
       test<2>();
index 29ab2a870cbdb3bbcf5e1b80c0b01fd8b127b365..a8c4c356f7d69d4187c983570565ffb0aa49c190 100644 (file)
@@ -123,8 +123,7 @@ main(int argc, char *argv[])
 
   if (myid == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       deallog.push("2d");
       test<2>();
index 9aab5f5576fdb99a577f7d5486947ec656b55ab7..580f05c9bdbf1ed1c5aa20d786d97f581d2c31f4 100644 (file)
@@ -139,8 +139,7 @@ main(int argc, char *argv[])
 
   if (myid == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       deallog.push("2d");
       test<2>();
index 286a9f6ea4c39f864973b595dc53726d8d5ddf2c..42427dc5d1ee59df1a89453e847d36d1f6dc4604 100644 (file)
@@ -140,8 +140,7 @@ main(int argc, char *argv[])
 
   if (myid == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       deallog.push("2d");
       test<2>();
index cf1a0e873a603e512598a969eef111da64382390..ff026ac5efca6ca76ac2f5fc7b63ed3a9da2e0bb 100644 (file)
@@ -78,8 +78,7 @@ main(int argc, char *argv[])
 
   if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
     {
-      static std::ofstream logfile("output");
-      deallog.attach(logfile);
+      static initlog();
     }
 
   parallel::distributed::Triangulation<2, 3> triangulation(
index b59735df926b70c8562177ad401b9b71a6e9eb44..94cb229b4eb7860c0d882564dc1f4f0014044c33 100644 (file)
@@ -99,9 +99,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<2>();
   check<3>();
index 936faff7a6e819fcd2df0bc30fc5c6281098d820..4e9a43855ecd3cb3b36e71b4fee2b8b8aa139374 100644 (file)
@@ -112,9 +112,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 0f64d717f84b734404f06079d9160dfc2c5b82a8..cecf194417cdb9d907ef4700da2c345ea44a5750 100644 (file)
@@ -285,9 +285,8 @@ check_simple(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // check_simple (FESystem<2>(FE_Q<2>(1), 2));
   check_simple(FESystem<2>(FE_Q<2>(1), 4));
index 66016f252a403b195f5e952e7a46d1754d5ef82f..1c1b972afaee1904a40b0d092b978725ef357200 100644 (file)
@@ -290,9 +290,8 @@ check_simple(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // check_simple (FESystem<2>(FE_Q<2>(1), 2));
   check_simple(FESystem<2>(FE_Q<2>(1), 4));
index 604af5e61997db714e86c1e36dc53d67f322752a..01939cd9158b03db7ed0776ac4644c874c127f1d 100644 (file)
@@ -215,9 +215,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check();
 }
index f3d2e9d343c1785537403c509395ba4ccc405b0b..fa08257f3bc9e4a6ea8eea7bd148a5ad45555323 100644 (file)
@@ -484,9 +484,8 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   try
     {
index 03fe52a520499efcc451020f0ec20f9796f96cd6..9ebe0c078cc5500ee7a97a382cbb890b60c79b39 100644 (file)
@@ -505,9 +505,8 @@ LaplaceProblem<dim>::run()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   Utilities::MPI::MPI_InitFinalize mpi(argc, argv, 1);
 
index d9ae93ef1fcea2be2cc2e738957a41252c040bd7..41ffeac8d36b26ef7ee45e76ac4f477d530aa5f8 100644 (file)
@@ -483,9 +483,8 @@ LaplaceProblem<dim>::run()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   Utilities::MPI::MPI_InitFinalize mpi(argc, argv, 1);
 
index d0ce88b1e6b2b5aed00de28a3f1e81411e799ab0..a86282173b755b5d13783e4a30ab64321a55bd56 100644 (file)
@@ -483,9 +483,8 @@ LaplaceProblem<dim>::run()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   Utilities::MPI::MPI_InitFinalize mpi(argc, argv, 1);
 
index dfbba0998369f6cb2006ddc626e509715bdfc33d..3c059879cc3129d242f21b1079e0b560e36604f7 100644 (file)
@@ -607,9 +607,8 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   try
     {
index c3f3cf02b5203d99416c3a93d26e9a87377218f6..a75942d45fc678056a617e52834bbc322cf37ba5 100644 (file)
@@ -608,9 +608,8 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   try
     {
index f6b4047c7af119cde2fbc338ad92cda18df37875..12a96dda6e71d644230e142ecded586ed09153fd 100644 (file)
@@ -140,9 +140,8 @@ check_simple(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(10);
-  deallog.attach(logfile);
 
   check_simple(FE_DGP<2>(0));
   check_simple(FE_DGP<2>(1));
index 0f96af7013b3e768bfc762c7a49cc116ff376601..57be7fdf0a3240adcb5ac3f6cda3cd9d1052e141 100644 (file)
@@ -173,9 +173,8 @@ check_simple(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(10);
-  deallog.attach(logfile);
 
   check_simple(FE_DGP<2>(0));
   check_simple(FE_DGP<2>(1));
index 554adbd9d5ab43c32cd04d52ad4ace069ac715bd..e3db315a8763d0fd28c8406100e0bc1d0a593d52 100644 (file)
@@ -252,9 +252,8 @@ check_simple(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // check_simple (FESystem<2>(FE_Q<2>(1), 2));
   check_simple(FESystem<2>(FE_Q<2>(1), 4));
index 8fdaa259bb45510b0f6e480801eaef7f56fea7fc..49367030add5d71b89b2842fa7b3fca3af6ee3e5 100644 (file)
@@ -200,9 +200,8 @@ check_block(const FiniteElement<dim> &fe,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   std::vector<double> factors;
 
index 55ad85dc32c71bfb5793e9cc8217d53fa79dccae..88a7c1bc740612018075b4867603970f6e82a5fa 100644 (file)
@@ -171,9 +171,8 @@ check_select(const FiniteElement<dim> &fe, unsigned int selected)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   FE_DGQ<2>                q0(0);
   FE_DGQ<2>                q1(1);
index a1f1003a753ebfc4c00a18d1b129509c4adee75b..ebb29b110c5adf5c026b62c8e6a55a84efc95c29 100644 (file)
@@ -266,9 +266,8 @@ check_block(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   std::vector<double> factors;
 
index 426c8167109d0e2cf470caa4ef349a4c0a7ce027..aee55d1203b3d732efbdd0c0319111d016979589 100644 (file)
@@ -125,9 +125,8 @@ check_select(const FiniteElement<dim> &fe,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   std::vector<unsigned int> v1(4);
   std::vector<unsigned int> v2(4);
index dbf3144115b2165c833e9aec613a82901fad60aa..4a7be5bfa6cbfc70828f152a09839c199e7409d6 100644 (file)
@@ -126,9 +126,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index 948c1028ff8720c98afa6591ef0d3d3b38403d5b..d3edf984e5426bbe830fec2a3da7b217fad81b28 100644 (file)
@@ -135,9 +135,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index c77556fa2e35bcd776d237746d0e1c39836d9b51..d530fb2280d7d18c85dec85c1c70864dbc065463 100644 (file)
@@ -134,9 +134,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index 7e8b361c9787568954bd83910eb14027665da419..8b9be12867b2ee70409f5ab1b3126a21ef532322 100644 (file)
@@ -135,9 +135,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 3));
index fd5c45e38bdde5f8530c415dcc13f2a67d0f733c..667185dd9fefde7206c18eba6ac5a599e3452f6f 100644 (file)
@@ -133,9 +133,8 @@ check(const FiniteElement<dim> &fe, const unsigned int selected_block)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 5), 0);
index f05ff2c70b7f27a023fb1e9b468c567c505a9f0f..07173a67b934348185df0c22c871226efab05ff7 100644 (file)
@@ -166,9 +166,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index 66c16704fcb1075307af8bef29553bb8a595c90b..122a6904f2ae46e673094e97f3ceeaca61b089e0 100644 (file)
@@ -174,9 +174,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index 28dc238c5afece3649726cd4ead6faf9b28731de..ac2ae17d70fbd919cde32ef1704ab564624104c0 100644 (file)
@@ -168,9 +168,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index 2f2767a1c39eba084b4fcdad262b6a103c7544f2..e5651e383314400aa3a231469f3102f1d449f31f 100644 (file)
@@ -178,9 +178,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index e7d45735857631fe92deabbdd9ddeb8fe18bd996..3fd282b69dd87d8531cb94b7b64d6606509ef9f0 100644 (file)
@@ -173,9 +173,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index 82ec612805e12c3f55cc5d9e6a2cba52308ee865..e2900a8ce31dad46a3d40163b7ec518daed156ec 100644 (file)
@@ -182,9 +182,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 2));
index 89681a91fcebff4509f4acb3dbe0fe501bb1b8db..df6f6b365db4cb5041e33c4948873a48a58e2618 100644 (file)
@@ -174,9 +174,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 3));
index 6221788444d80eb4e5fe6cb80a4636acedd13237..b9103862f70ed268991c2fb559d6d6bea2849299 100644 (file)
@@ -184,9 +184,8 @@ check(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 3));
index b8b338406a82aee454863376dc9c27f8b5180f93..186bc57ddec75227d1ae0284a145b08eb433ea10 100644 (file)
@@ -179,9 +179,8 @@ check(const FiniteElement<dim> &fe, const unsigned int selected_block)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   // TODO: do in 1d
   check(FESystem<2>(FE_Q<2>(1), 5), 0);
index 7d6c0c71b59aa05c7a89b24d7ff142a4f1bc267d..d1789dd1323ff3fc981f537e06979414439ac9d7 100644 (file)
@@ -44,8 +44,7 @@ using namespace OpenCASCADE;
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   // The circle passing through the
   // vertices of the unit square
index 907bbd2cb8bbdaf1d2e8d06bdcab1e8cdfde9279..194d5343f7119810dd0a1c50515dda158e9bd9ea 100644 (file)
@@ -30,8 +30,7 @@ using namespace OpenCASCADE;
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   TopoDS_Shape sh = read_IGES(SOURCE_DIR "/iges_files/goteborg.iges");
   std::vector<TopoDS_Face>   faces;
index 548fa4e85d4d0d8c82e3073e3f9161d0f7b32164..ff9d87afded2ff2ff86575ec8e314ad2e88e396e 100644 (file)
@@ -30,8 +30,7 @@ using namespace OpenCASCADE;
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   TopoDS_Shape sh = read_IGES(SOURCE_DIR "/iges_files/goteborg.iges");
   std::vector<TopoDS_Compound>  compounds;
index 1886048b437de393b5113dc6fda782ccd863f518..7c0997f8358d5e0cf60d6f28679b8bcef4aeca2b 100644 (file)
@@ -44,8 +44,7 @@ using namespace OpenCASCADE;
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   // The curve passing through the vertices of the unit square.
   std::vector<Point<3>> vertices;
index db2d32ecdf75033fadd7cf2b25f3f3c0f4e10766..5c8e804075ddb24193b9a6d344eeb9cf9c1d0ef2 100644 (file)
@@ -30,8 +30,7 @@ using namespace OpenCASCADE;
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   TopoDS_Shape sh = read_STEP(SOURCE_DIR "/step_files/goteborg.step");
   std::vector<TopoDS_Face>   faces;
index 9ee5089b10b5a861e4a2a97b5e3e1fe3a3b073df..1d5e7a64ac7f2e3749e2e0f4d86a530472d75d7e 100644 (file)
@@ -30,8 +30,7 @@ using namespace OpenCASCADE;
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   TopoDS_Shape sh = read_STEP(SOURCE_DIR "/step_files/goteborg.step");
   std::vector<TopoDS_Compound>  compounds;
index 9853dce836b8a670ed6658f4a1da8da29020c32f..aefaf45bb33fbaf9da10ed24b440a57c6ec4e5cd 100644 (file)
@@ -152,9 +152,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   test<double>();
 }
index 2052447c08225c53c5d675fbc47140f6f3945634..12fd629802e7039793ff369c02c1fd3ed1a81fb8 100644 (file)
@@ -155,9 +155,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   test<double>();
 }
index 81d51cac2cee51d35477b2c356674df04ee07f02..d9fbbf2238ac568743edd90efcce33dc63adeba0 100644 (file)
@@ -229,9 +229,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   test<double>();
 }
index 47efae06d1bdabd1bae12b01a7978db0c21ceb13..76ffdebe85549b3aee7c32c6f22451f24f1f14ba 100644 (file)
@@ -130,9 +130,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   test<double>();
 }
index ee7f689e230400dea35f2f86d5e83bd4a813de5e..edd784b850eded384f3a5f13cf74db18b415b188 100644 (file)
@@ -39,9 +39,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
   {
index a2548c7925df86a7b6874391952bb786cbf734f8..8e04c5bc81e8a7784c810f791dfb4f1c32279946 100644 (file)
@@ -38,9 +38,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
   {
index 791d6aab8d4534ad0d620b310c7629ecf720e771..0b4a5e1261fe08933e5f1f10cf94316f028b3810 100644 (file)
@@ -29,8 +29,7 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   try
     {
index f7814474f868cdddfae0d8d1413b53541ddcd12f..466d6d32dcffe1586cdef25a935b9bfbef6f2d5d 100644 (file)
@@ -205,9 +205,8 @@ test_kinematic_tensors()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test_kinematic_tensors<2>();
   test_kinematic_tensors<3>();
index 09aa495fba1576cb596e152ebb8c769c3ffd75dd..41f01072d9244ff9118c919df85e2d41a07f25e7 100644 (file)
@@ -32,9 +32,8 @@ using namespace dealii::Physics::Elasticity;
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   const int dim = 3;
 
index af1c86dd28576ffe8d9e2203c80f5c91946458f9..74e88bcb63398b89672c5dbaff32423c0f86ea3b 100644 (file)
@@ -152,9 +152,8 @@ test_standard_tensors()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test_standard_tensors<2>();
   test_standard_tensors<3>();
index 94258ef85eccd398e05e50c63f0deff9ee5a25b5..b0383610735f6c76ebdbacf902887e2830a0c70e 100644 (file)
@@ -781,9 +781,8 @@ namespace Step18
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   try
     {
index 7c491414f389799c4cd37fb2b50e40d90f97c0ed..2fb4baea6e14eb55204b26421333d07a3bb08c98 100644 (file)
@@ -797,9 +797,8 @@ namespace Step18
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   try
     {
index dbe238c94a7f05b4d4595fa6ee48766431387a03..02ef07beea8ae604569954fce591b1b989af880b 100644 (file)
@@ -2272,9 +2272,8 @@ namespace Step44
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index 2414e99529dc9c955d7a6e3d2596f4c35390316e..9cba78c764d74150b430740efa6aec0acb92f064 100644 (file)
@@ -2072,9 +2072,8 @@ namespace Step44
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index 250f6556a37b7cf1961b9d05c6f935646c128d24..544dc1233fa914350f16e434bc29b22a73cf12d1 100644 (file)
@@ -2083,9 +2083,8 @@ namespace Step44
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index d998768706b089631c0bc83b2ebfabba361a8a82..6150ffeb466cb6975070d26430aa5f5467801980 100644 (file)
@@ -95,9 +95,8 @@ normalise(const Point<3> &p)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   const double deg_to_rad = numbers::PI / 180.0;
 
index acf81e5ed59248012eaead2c7d12b04c776a7358..05d2cb560b1f6c0cb7095971c57bf01defc9fb79 100644 (file)
@@ -53,9 +53,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<1>();
 }
index 07f253f45096c6075c97bf487c529dcbb05dbd3d..070a08dcdf3ed1e1144544c21f45844cffb5788a 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(2);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   BlockDynamicSparsityPattern csp(2, 2);
   csp.block(0, 0).reinit(2, 2);
index 8bb2b9356827742b306c6c4392df16d8bed206d2..4a7bcd61acbdc1ef9022b9e2aafb2301086ee935 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(2);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   IndexSet a(5);
   IndexSet b(3);
index 0d0ce5be32617882096dc2b533e4491c314a8746..e307ecc6303e7fe1a18aa3cf2d8cc618243d6d22 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(2);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   BlockSparsityPattern                 sparsity;
   std::vector<types::global_dof_index> row_blocks(4);
index f56383981a7458a8b700b7a030b125e4955e7d64..96bb5367b4d587855766308fc9888eb590407d7a 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(2);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2) << std::fixed;
 
   std::vector<types::global_dof_index> row_blocks(4);
   row_blocks[0] = 4;
index 37aa3f424c3f89c0d90258e3c70ac9e43b0352bb..ff25035f0d427065196d64adefeca8f7cd909678 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index 85ad75201e95bb2b54926786c98742ea11b7ae59..02b9ae1a57011e321f839a04620328043ddbdc93 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index 0ef6834c6f12ae86c4574547bfdd0d3091667c58..b29abe60c7ca39f8144bac7a04a5c3cb78794b45 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index 361a820a8bcab265a9fc7ea28bd9f6715a47da90..d857535b1ad4c6b6ed674d3e2f219fda05d42e8b 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index aa130af88d2ba1d8c287aec516e98575603ee8a3..6a419928beacf54286d5c3ac6cdbec6af14faed9 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index 6f73e081ebd6c198d85d46a392e193c2f556cf07..b46f732204c7e59d5d526d01cda7e3186ea6aa64 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index 4b247c34769ae4a70a3222b59cba3ee6fe1ec30b..7eaab51be6ca75276b0a3f258a9fb2146cc41f42 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index c879873d98def23fae968ba578871d565af21efe..e128d8925263d15c7f84e7f9d9a370df64261fd8 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index c65c2d20ac096ef51247132003d440b695ecc07c..74a205c4372ac10728528959101fae629df7d123 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index 09215108c4f1c47b4b0283874e50f2497d010e41..4c04ea67863d4a42abc71977baf4191443a08479 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   const unsigned int chunk_sizes[] = {1, 2, 4, 5, 7};
   for (unsigned int i = 0; i < sizeof(chunk_sizes) / sizeof(chunk_sizes[0]);
index 8a521276f513e9429cd11eee8569b5b87924e4ba..67612baa6bd4ebe6978f6d205a6a962a5b4381fa 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   matrix_position<DynamicSparsityPattern>();
 }
index f0e65c3dc3a08172b691e2d83ab4d78eb474784d..1de795b84b2b4ddb326219dda5fb7af06d26e036 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   block_read_write<DynamicSparsityPattern>();
 }
index e737d9250346a3b9fa189930775ccd5c2676bb3f..403f69353247975e63d426a1d6c1c7525c83b84d 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   row_length<DynamicSparsityPattern>();
 }
index 646d469238d5573ee2f20c22528c1e74cf89e78f..f2373aa70ba4e78f47c864cf881051aeb42240fc 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   print_gnuplot<DynamicSparsityPattern>();
 }
index 565a3b1d616dfe8590a9290bb38483786eaa7bad..f8df8114716647a3c00f7041cdd1e7c6af8e7c28 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   print<DynamicSparsityPattern>();
 }
index e7f638f26bdfc114494c690d9b0b370d9d6b6787..63b73ca9098f5f4ed4fc19475035dcfdb93d236a 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   copy_with_offdiagonals_1<DynamicSparsityPattern>();
 }
index 60daa61b60db9332eaf88b2d216f69c09e1df8c9..882d81188ce76a1a83595106077b606c35b77cb8 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   copy_with_offdiagonals_2<DynamicSparsityPattern>();
 }
index 771fa03d44087a6766277fad8e67679a6a3fa7f5..2c84954b2c455c5475fa4e8e8b512ea119ee13f7 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   test_index_set<DynamicSparsityPattern>(true);
 }
index 57567de8ebfe7d96a65ae00ff189d75d284032ef..8063ed801a6885112169d88a4a66f584b383959d 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   test_index_set<DynamicSparsityPattern>(false);
 }
index 4d1be31568f3da614b15d1222b7f52a568ad79e3..8cd9687cb2da3829d323a9c14a3dec85169d7839 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   // generate usual sparsity pattern
   const unsigned int N = 15;
index be5d9c425bfe4e87f3ac3620d68db7f53ea1b0bb..3f1586501293df06c19a194e2e87ca4f77cba578 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   row_length<SparsityPattern>();
 }
index 31cdd20d194e3faf450e8b89a2dd915468de2580..2b687426f88462aae0b3f53df039dccf9f207eaa 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   print_gnuplot<SparsityPattern>();
 }
index 161b9db0ed9504c9842cda42e836c9ee09d4fdb4..a38b620cee4fd6d86b965565513d6a1b7d45ebf6 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   print<SparsityPattern>();
 }
index 6fb3172b7ea094a588345c54dc76d223479aa3e1..2a0cfe0d97d85842320a6171d1d5d44a2cfd6a06 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   copy_with_offdiagonals_1<SparsityPattern>();
 }
index 7fe5193ff0fd31fc27ab9deddbb5b92674a0ea17..15dc4e794092236ac7f29609d477196b3fd74e1b 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   copy_with_offdiagonals_2<SparsityPattern>();
 }
index a516d1b9d8e4ee13781e6cf1ddb9d2a82e5e7b1c..6cf0d2c4e79347c47603755d1e1b9e87b041e539 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   copy_from_1<SparsityPattern>();
 }
index 65a088b07cb49cecf31548650055c29c5b754e54..bebf75c6710bf7f23aed7edbd63ea1f4ca5e2abf 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   copy_from_2<SparsityPattern, DynamicSparsityPattern>();
 }
index 57e456e6dbe1d46e0e3e08c98406c2ea2acf6379..f3b85e858c7598bc881bdf53afd0ce5c8aba500a 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   copy_from_4<SparsityPattern>();
 }
index 57905a17d6e5dd29327a1f98c9feb00dd0c8e882..beda76a42d8df385fdf689784ebfef87f93e686c 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   matrix_position<SparsityPattern>();
 }
index bacc0b5a9b2d3ca0ee3bf7fe5ef235e6cdc7276d..52b293a879faeda0171e9ffcf1d5a186ea2ec908 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   block_read_write<SparsityPattern>();
 }
index 20477280cde6733e74787163d4f1dac344e168b0..68419d9d214d87083dc966157ef866f3337106d4 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   global_index<SparsityPattern>();
 }
index ca09904045a29c2151c3ee0713827632da1a4577..6782a5dc4a5488b4faac326be4605f77432ee402 100644 (file)
@@ -149,10 +149,8 @@ public:
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   DynamicSparsityPattern dsp(2);
   dsp.add(0, 1);
index 86ef1e3c0fe3a6e698244691a35302a1a07e803b..16445ae35a35df924fef6894276c8cbe66d51e23 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   DynamicSparsityPattern csp(10, 0);
 
index eb78ee7b4b7f58171df0e4136a97a080859c84d9..d8caab5d74765e042005d861b5829fabd36d71af 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   DynamicSparsityPattern csp(10000000, 100);
   csp.add(9999999, 1);
index a28fab84da6c65511cfb17413673c9e7e83a1372..e1bb5545e5e559c41234f6fa4fdb837659be3823 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   DynamicSparsityPattern dsp(4, 4);
   for (unsigned int i = 0; i < 4; ++i)
index b2d16560563afcba3dde437a69b4d58df621ecb3..352e1ba92abb60dde6d08473c4827fec2e4c020e 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   DynamicSparsityPattern dsp(8, 8);
   for (unsigned int i = 0; i < 8; ++i)
index b67f4b4f092f15d50da367dabd4c5dfd547af29c..6b9f91cf60317b7122c35f4ca88a0e06720fd3d8 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   SymmetricTensor<2, 2> t;
   t[0][0] = 1;
index 1eb0db727ee2e44b80688af29e4e8529d33345be..88b22acd7891787c5b00bc9fbc5b68a11ca96717 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   SymmetricTensor<2, 3> t;
   t[0][0] = 1;
index fdbc16b9d58ec5a896a87ae7dac53bb355b5eb7b..33ade8f8f9bbe47b36bf3f1d488c48a0317b0ce2 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   SymmetricTensor<4, 2> t;
   t[0][0][0][0] = 1;
index 94a886be201d26f50e675fbab82fceb00c43eca5..d0538b9564743a00ec6057a47125a2b4b2f4a1ba 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   SymmetricTensor<4, 3> t;
   t[0][0][0][0] = 1;
index c9a1089b02376c6419adec193eb23d216c3255b9..305227455200effa65ef859c734ede346590ba32 100644 (file)
@@ -77,9 +77,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index a0d7d0dcd1c5ebe2648a6a559964648b35068db7..ee09b48508548a17948182e065201e5f7200ba83 100644 (file)
@@ -79,9 +79,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 4e76ab4bdd4e73cd409ba19cbbfd953f366c5204..c6af36aa32e5ccf785a99bfd57782a13032883c1 100644 (file)
@@ -81,9 +81,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 77f082eaf683b34e3b1fea3670405cfc84fff9f4..2006206beb35134d9463dc8899ca9a73284ac264 100644 (file)
@@ -77,9 +77,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index eb19b7b6769f193d59172ed8d2170cd1d2b80ef4..1476ed647fec82435effeb6fae8bb49b464739fc 100644 (file)
@@ -42,9 +42,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 8d3f58261fb48d4b015d18a674e42b1eef78a1f5..0aa33559b1d40f048a3c7c46e5fb1fc0060033a4 100644 (file)
@@ -54,9 +54,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 4345a248c6739b7f2151a0fe5aec7c3135ac38ca..f223bcafc69445b317366cd705a38cc6a2acadf4 100644 (file)
@@ -56,9 +56,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 1f939313d83f40b2dc52c21af9ec6b30adf38b3d..fb7aa77ff39f2a64a3913ed48729a930ea96ec36 100644 (file)
@@ -40,9 +40,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 03d3de765acaacc81f62c67503f09d95e7065b17..566f029c879a0d1065c771db05d5e5ea7179b847 100644 (file)
@@ -41,9 +41,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 72f44667c52cdbc8c9def3faa2e78d13eddbc1c2..180e18e521ea791d9a02cf40785e8611dc41e54f 100644 (file)
@@ -46,9 +46,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 567cc4d0d60866370f9335b0cd21b3cc6ac9b39c..f5611c8b7b0d9f55f7f664d9dbf9225675434511 100644 (file)
@@ -74,9 +74,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 2e95a92d49c59fb8f4aa76248d5fde9c225cd69c..7a4dc3b74f5208c2b82b8fda5807096c9669339c 100644 (file)
@@ -41,9 +41,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 502e42d1564fdcf05d1f181e56e7b2ba975e4460..5c46d06dbed1b3c61a4c54faf887d8e8e719a441 100644 (file)
@@ -68,9 +68,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 246e71afb4cc38fe81dcf55011753c453b435510..6cc76a1efea36b27e895746b8b9815f1f48faf6a 100644 (file)
@@ -68,9 +68,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index b1323ce22cf3d49d3b43c8d59799e622acdf6c51..09b61303b1e603d5e4652f743ba5e5fa3b537332 100644 (file)
@@ -117,9 +117,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 2be667f3a848d6ef591ea26c71852b36f4b6c0d6..2d282262a9a507aeaa2a016e2726e9e050e8bf41 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   const unsigned int      dim = 3;
   SymmetricTensor<2, dim> t;
index 805ea9388d734238e2c05a5ba060efcdd6d1038b..f0c7632d5a4ea23bab538a1a472e7c8039373b4b 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   const unsigned int      dim = 3;
   SymmetricTensor<4, dim> t;
index 7f59ec594dd30c5f8346073144ac722678216fd6..11e217639e7ced6dc34296de857fa376a7bf6822 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   {
     const unsigned int      dim = 2;
index a0ca47223288cc97d6657a3273df726f6d159131..c5883e80f1206c873db828b45d1b944855679d1a 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   {
     SymmetricTensor<2, 1> t;
index 879a3e7167b6cdbb21c5883b47b0e89a5dab0348..e6aaa01a9fcc5a32108fecb0806a832a0cb6d797 100644 (file)
@@ -43,9 +43,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index b22e1e09f2df1f727b93899979c6bfd07b9b572d..a0d63831787e57b68e3434a698237214fcb7bffa 100644 (file)
@@ -65,9 +65,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<3>();
 
index 7951496934a8142c96188982905a22733c6b69c5..4d6340f778c6c6dc80649aeb3e564b37d46bd3b2 100644 (file)
@@ -44,9 +44,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 5fa5944d3395cea3e095723e37c2e768e9f6820f..662824dd616be71a6d1409d72928349cea0a1ddc 100644 (file)
@@ -56,9 +56,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index 1bf55fe080cf8860f9d0e1adb4763d6d8ce108b7..0314361052136a007980917a3431e4d174f43631 100644 (file)
@@ -47,9 +47,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<3>();
   test<5>();
index 3814afc9c59d7226338ffe99ddd9b19dda50d0c6..a3eacd35f275738c8f25a8dc35eda875d4dc57b2 100644 (file)
@@ -46,9 +46,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<3>();
   test<5>();
index 5ba02c364a3606a9ac55434e754d12a8341803b2..a2a41827e310eb510e73a7de0a86425e6a224d73 100644 (file)
@@ -103,9 +103,8 @@ check_4()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog << "check rank 2 tensors" << std::endl;
   check_2<1>();
index c23fc664ad6bbea72914afc0574a968112b952bd..452d784f1af8de43f46733aa97c302c07d91d7fb 100644 (file)
@@ -48,9 +48,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog << "check rank 2 tensors" << std::endl;
   check<2, 1>();
index fbb07bba55239a146f125b602e4d9ac16bd5dc16..7cdd3a4ec1497c9a4e01a641ea994eb9593a54ff 100644 (file)
@@ -57,9 +57,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog << "check rank 2 tensors" << std::endl;
   check<2, 1>();
index 87958802eed2d7a36da68119d874361cf42764cc..1d0167674220e1e619c1c4569fc9cbdd809839fe 100644 (file)
@@ -61,9 +61,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog << "checking rank 2 tensors" << std::endl;
   check<2, 1>();
index 85df1d19d64eb9e003f78b7befe031f6ba54a54a..cbf77b70ea1e74231cba771396d665ae28033dc1 100644 (file)
@@ -68,9 +68,8 @@ inv(t2)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   deallog << "Symmetric Tensor dim 1" << std::endl;
   SymmetricTensor<2, 1> t1;
index 300240c6e8bd1d771a2ac7dcedb0430b3d618c60..a1919bc5c8c9149dd11705fe6f7425d08303c0ff 100644 (file)
@@ -109,9 +109,8 @@ test_fixed_rank()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   test_fixed_rank<2>();
   test_fixed_rank<3>();
index 526248482635e057e281af0e1900ddf542ff7cfa..f608520704d754b0c4b16e73f08b83c1f7597fae 100644 (file)
@@ -47,9 +47,8 @@ test_symm_tensor_contract_3(const T1<rank1, dim, number> &    l,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   const int               dim = 3;
   Tensor<1, dim>          v1;
index 8cd8dcafa685acc325cea2540a0bb91387109ab6..1c1e40153f34e4b1f63cd929914e837ccf35e703 100644 (file)
@@ -26,9 +26,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   const int                                        dim = 3;
   SymmetricTensor<2, dim, VectorizedArray<float>>  s1;
index c6d25661ee76ec44552cc78027390cf4166f47a2..92fdd925c81adacd76ce5c869537096aefe05e0d 100644 (file)
@@ -24,9 +24,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   double a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}};
   double b[3][3] = {{25, 31, 37}, {45, 57, 69}, {75, 96, 117}};
index 2e5108777750935b7b92054adeabdd8a5adec21d..f6185e6e2ec09cc0b1ac3ed0b95454f5a83c2237 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   double a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}};
 
index 738addd4055884d9b62b5cceb583e0a4c7bc5948..dcffda6ff024c1ef4ce058be66a5816bb72a6fed 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   double a[3] = {1, 2, 3};
 
index 9393ee255ce5f3d95a07fe36b7b07a39b05d6d32..81f69e2bc2d1c4159ef8f140947ad5973a0334cb 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   double a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}};
 
index 114e0a1db21c2f45850d433684c9249871928876..5e1e0cebb00e1b5547fa9a89201270e04c79367b 100644 (file)
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
-  deallog << std::setprecision(3);
+  initlog() deallog << std::setprecision(3);
 
   double a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}};
 
index 61d8e721f5ce17525c0b1a4e199448651db64759..5bc7ce2b64e8656bf2ed50042c5e0abae18bfa41 100644 (file)
@@ -37,9 +37,8 @@ test_tensor()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test_tensor<1>();
   test_tensor<2>();
index 3aba5280252c5386eaf61bc25d201243698bf612..0ebd8763b9304e693c708ff238c366900f1e709a 100644 (file)
@@ -76,9 +76,7 @@ test_unequal()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   test_constant<2>();
   test_constant<3>();
index 417238fdfd02a2194b7efd4646b4dce24a97efa0..ee7f2ac2d6b41854b6adeb4441a0899365f104ae 100644 (file)
@@ -47,10 +47,7 @@ test_select(double f1, double f2)
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
-  deallog << std::setprecision(3);
+  initlog() deallog << std::setprecision(3);
 
   test_select<2>(1., 1.);
   test_select<3>(1., 1.);
index a4fa20e37af55b39122a00eb0599cc4d8632c92c..968d22738d2316b36adceaae0110392b9e0d2e26 100644 (file)
@@ -43,9 +43,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 5234e38b239bb68a801f0afb061211ef00f7482a..19c14a10013d19d7d8ffcec75401fa096d2c0013 100644 (file)
@@ -54,9 +54,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 6b9bf998f935c7f85f78c04b1969bef00d527a34..e92d7aecae1ee4b01733f4ee3c6c222a3f658f9d 100644 (file)
@@ -63,9 +63,8 @@ test_tensor()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test_tensor<1>();
   test_tensor<2>();
index e23c75045faccf580fe46a94d7ff81b10d797f39..17934dd5697894a91de5b8dab47366212267f0f9 100644 (file)
@@ -39,9 +39,8 @@ inv(t3)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(5);
-  deallog.attach(logfile);
 
   deallog << "Tensor dim 1" << std::endl;
   Tensor<2, 1> t1;
index da2a30adc26facbc58db1a37d81dff9090f1ba35..74e46b916815b96dc7a9a50315bed00f6ca4617e 100644 (file)
@@ -28,9 +28,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   double a_double[3][3][2] = {{{1, -1}, {2, 0}, {3, 0}},
                               {{3, 0}, {4, 0}, {5, 0}},
index 94cd1b0884de2237f9718bee25c8aa78484fcb5e..947f2f47c3f34d8edce64f9d5e85e4df4bfe4a14 100644 (file)
@@ -56,9 +56,8 @@ test_tensor_02()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog << "First test" << std::endl;
 
index c10a0654348af2c7bd942a044bf761a7bee94fe4..0a5815c5db9e09e29be5752a6b30b6c096f49f0a 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   float a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}};
   float b[3][3] = {{25, 31, 37}, {45, 57, 69}, {75, 96, 117}};
index 46be0292ab9cb372acdc71be259835ce3bdc56ad..d70ee3547a4b13f25c8bc5f7410d6220c3067edf 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   float a[3][3] = {{1, 2, 3}, {3, 4, 5}, {6, 7, 8}};
   float b[3]    = {25, 31, 37};
index 75326050847b930bf88525724cd230da648484b2..bb2105f637578a1fcc2c05e61186f90dcf3940ac 100644 (file)
@@ -40,9 +40,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index 0d056e95373667fa6b27d1f18b815a6021e6e6dc..86a11be8595ed19c49d356c37d2ece2caa5982ab 100644 (file)
@@ -42,9 +42,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(2);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index ab641a7686ed4498b6954f18385b95e2ef9189a4..a73f6d7d23cbcc5cba3feec0afa52a85de7de33f 100644 (file)
@@ -41,9 +41,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index d9d89276ee461fa0435097dc58c79d094b3142c2..819f0121c6ff8bd70c5926967904b36b0dca217a 100644 (file)
@@ -40,9 +40,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index c41afe3eecba76760bb6650b8474eddedbaa304f..ca51e152532eed055e7d80a6cb8bb1f7206c4dd7 100644 (file)
@@ -154,9 +154,8 @@ main(int argc, char **argv)
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
 
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(10);
-  deallog.attach(logfile);
 
   check_simple(FE_DGP<2>(0));
   check_simple(FE_DGP<2>(1));
index eeb59c3a9708afdcd63362cca78a5b29e1ae1e42..df3cd7f165cc36d2ca88d48c92f9b79b707eec33 100644 (file)
@@ -35,9 +35,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index f8567b8d1c2cb7cf3123821cc9cdd241d7425f74..704c78a1fde903974c050a5d16155223d38e3df8 100644 (file)
@@ -35,9 +35,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index 7f7fbbf8e7268b1abafc8c2d9ecea964c56c50a4..60b015fc9d566f43614430ae853d64db71bc399e 100644 (file)
@@ -35,9 +35,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index 1eba2eec82fff28910b06270f8170f12c8481708..8609a349055271d2d81a0ebb71d27aa2549a3155 100644 (file)
@@ -36,9 +36,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index c1213003d750fdc2d7f081d9a1e014964d73a7c2..430e4f13e00943344a4dad00ec6a33a3563a9823 100644 (file)
@@ -36,9 +36,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index cd42337990d0edf51e9eefe9fd87c7ed6412c515..a1b3de12e5e0cdfeb7b9c558be585aca42ed2189 100644 (file)
@@ -36,9 +36,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index 8fa3f3aa5714eba3297dd0a60d460dd17429be49..2075f76bd5c4009cf37c58b659aeb019ed5296f9 100644 (file)
@@ -35,9 +35,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index f87b02570c1a2f298d5100c3ee46af0437715a2a..d40c7c5518531554b54365c9d069287ebc8bbab9 100644 (file)
@@ -37,9 +37,8 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(4);
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
index e996b4bf7e7a0ab3d911b3a18b02e1ea9f4c6f53..5b26f7a3b5b25d48c69b05b6dccdae9dcbe407fc 100644 (file)
@@ -152,8 +152,7 @@ main(int argc, char **argv)
 
   if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       test();
     }
index 77c0f22c37d9f4be6a07d6a1f8b77ce167b7f02f..b5081bb07fdecaa09f1dd557c69f9d690aceea8f 100644 (file)
@@ -26,10 +26,8 @@ main(int argc, char **argv)
 {
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   row_length();
 }
index c0f73f2ff2c6dcc600cf7ed6aafae92739fdac53..32626ea86311340ac03887cf37f975406d006c05 100644 (file)
@@ -26,10 +26,8 @@ main(int argc, char **argv)
 {
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   print_gnuplot();
 }
index ed2750ac739ac052cbe4532a751aa1ac0a46153d..f1622d5facecd12a516f60ea53e0b7257bf7fa9d 100644 (file)
@@ -27,10 +27,8 @@ main(int argc, char **argv)
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
 
-  std::ofstream logfile("output");
-  logfile.setf(std::ios::fixed);
-  deallog << std::setprecision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog << std::setprecision(3) << std::fixed;
 
   print();
 }
index 127a1f058614f0918193197d88bf8bff7ccaa888..0a94771c47e8988094749458ae12a95f134d7f54 100644 (file)
@@ -78,16 +78,14 @@ test()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Utilities::MPI::MPI_InitFinalize mpi_initialization(
     argc, argv, testing_max_num_threads());
 
   if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       test();
     }
index 6754990b40b8f456e17aae0e331997dabe1138e3..5dbcaac3af3016db6df3fa8a3a52e0fe764236b3 100644 (file)
@@ -202,8 +202,7 @@ main(int argc, char **argv)
 
   if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       test();
     }

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.