From 8ff2205ee94dd911a3c0da9a25ca2817b08d6948 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 11 Mar 2020 09:33:41 -0400 Subject: [PATCH] Replace logfile in more tests --- tests/algorithms/newton_01.cc | 4 +--- tests/algorithms/newton_02.cc | 4 +--- tests/algorithms/theta_01.cc | 4 +--- tests/bits/anna_6.cc | 3 +-- tests/bits/christian_1.cc | 3 +-- tests/bits/christian_2.cc | 3 +-- tests/bits/count_dofs_per_block_01.cc | 4 +--- tests/bits/count_dofs_per_block_02.cc | 4 +--- tests/bits/deal_solver_04.cc | 3 +-- tests/bits/deal_solver_05.cc | 3 +-- tests/bits/distorted_mapped_cells_01.cc | 3 +-- tests/bits/error_estimator_01.cc | 6 ++---- tests/bits/error_estimator_02.cc | 6 ++---- tests/bits/face_orientation_crash.cc | 6 ++---- tests/bits/faceq_face_interpolation.cc | 3 +-- tests/bits/faceq_subface_interpolation.cc | 3 +-- tests/bits/fe_tools_01a.cc | 3 +-- tests/bits/fe_tools_01b.cc | 3 +-- tests/bits/fe_tools_01c.cc | 3 +-- tests/bits/fe_tools_cpfqpm_05.cc | 3 +-- tests/bits/joa_1.cc | 6 ++---- tests/bits/point_difference_01.cc | 3 +-- tests/bits/point_difference_02.cc | 3 +-- tests/bits/point_gradient_01.cc | 3 +-- tests/bits/point_gradient_02.cc | 3 +-- tests/bits/point_gradient_hp_01.cc | 3 +-- tests/bits/point_gradient_hp_02.cc | 3 +-- tests/bits/point_value_01.cc | 3 +-- tests/bits/point_value_02.cc | 3 +-- tests/bits/point_value_hp_01.cc | 3 +-- tests/bits/point_value_hp_02.cc | 3 +-- tests/bits/solution_transfer.cc | 3 +-- tests/codim_one/boundary_indicator_01.cc | 3 +-- tests/codim_one/direction_flag_01.cc | 3 +-- tests/codim_one/direction_flag_02.cc | 3 +-- tests/codim_one/direction_flag_03.cc | 3 +-- tests/codim_one/extract_boundary_mesh_00.cc | 3 +-- tests/codim_one/extract_boundary_mesh_01.cc | 3 +-- tests/codim_one/extract_boundary_mesh_02.cc | 3 +-- tests/codim_one/extract_boundary_mesh_03.cc | 3 +-- tests/codim_one/extract_boundary_mesh_04.cc | 3 +-- tests/codim_one/extract_boundary_mesh_05.cc | 3 +-- tests/codim_one/extract_boundary_mesh_06.cc | 3 +-- tests/data_out/data_out_08.cc | 4 +--- tests/data_out/data_out_curved_cells.cc | 3 +-- tests/data_out/data_out_multi_dh_01.cc | 4 +--- tests/data_out/data_out_multi_dh_02.cc | 4 +--- tests/data_out/data_out_multi_dh_03.cc | 4 +--- tests/data_out/data_out_multi_dh_04.cc | 4 +--- tests/data_out/data_out_multi_dh_05.cc | 4 +--- tests/dofs/dof_renumbering.cc | 6 ++---- tests/dofs/dof_renumbering_02.cc | 6 ++---- tests/dofs/dof_renumbering_03.cc | 6 ++---- tests/dofs/dof_renumbering_04.cc | 6 ++---- tests/dofs/dof_renumbering_04a.cc | 6 ++---- tests/dofs/dof_renumbering_05.cc | 6 ++---- tests/dofs/dof_renumbering_06.cc | 6 ++---- tests/dofs/dof_renumbering_07.cc | 6 ++---- tests/dofs/dof_renumbering_08.cc | 6 ++---- tests/dofs/dof_renumbering_zorder_01.cc | 6 ++---- tests/dofs/dof_renumbering_zorder_02.cc | 6 ++---- tests/dofs/dof_tools_18a_1d.cc | 4 +--- tests/dofs/extract_dofs_by_component_01.cc | 6 ++---- tests/dofs/extract_dofs_by_component_01_hp.cc | 6 ++---- tests/dofs/extract_dofs_by_component_01_mg.cc | 6 ++---- tests/dofs/extract_dofs_by_component_01x.cc | 6 ++---- tests/dofs/extract_dofs_by_component_01y.cc | 6 ++---- tests/dofs/extract_dofs_by_component_02.cc | 6 ++---- tests/dofs/extract_dofs_by_component_02_hp.cc | 6 ++---- tests/dofs/extract_dofs_by_component_02_mg.cc | 6 ++---- tests/dofs/extract_dofs_by_component_03.cc | 6 ++---- tests/dofs/extract_dofs_by_component_04.cc | 6 ++---- tests/dofs/extract_dofs_by_component_05.cc | 6 ++---- tests/dofs/extract_dofs_by_component_05_hp.cc | 6 ++---- tests/dofs/extract_dofs_by_component_06.cc | 6 ++---- tests/dofs/extract_dofs_by_component_06_hp.cc | 6 ++---- tests/dofs/interpolate_based_on_material_id_01.cc | 4 +--- tests/dofs/interpolate_dgq_01.cc | 4 +--- tests/dofs/interpolate_dgq_02.cc | 4 +--- tests/dofs/interpolate_q_01.cc | 4 +--- tests/dofs/interpolate_q_02.cc | 4 +--- tests/dofs/interpolate_q_system_01.cc | 4 +--- tests/dofs/interpolate_q_system_02.cc | 4 +--- tests/dofs/interpolate_q_system_mask_01.cc | 4 +--- tests/dofs/interpolate_q_system_mask_02.cc | 4 +--- tests/dofs/mg_dof_handler.cc | 4 +--- tests/dofs/range_based_for_step-6.cc | 4 +--- tests/dofs/sparsity_pattern.cc | 6 ++---- tests/dofs/sparsity_pattern_01.cc | 6 ++---- tests/dofs/sparsity_pattern_02.cc | 6 ++---- tests/dofs/sparsity_pattern_03.cc | 6 ++---- tests/dofs/sparsity_pattern_04.cc | 6 ++---- tests/dofs/sparsity_pattern_05.cc | 6 ++---- tests/fail/fe_nothing_04.cc | 6 ++---- tests/fe/abf_degree.cc | 3 +-- tests/fe/block_mask_01.cc | 4 +--- tests/fe/block_mask_02.cc | 4 +--- tests/fe/block_mask_03.cc | 4 +--- tests/fe/block_mask_04.cc | 4 +--- tests/fe/block_mask_05.cc | 4 +--- tests/fe/block_mask_06.cc | 4 +--- tests/fe/block_mask_07.cc | 4 +--- tests/fe/block_mask_08.cc | 4 +--- tests/fe/block_mask_09.cc | 4 +--- tests/fe/block_mask_10.cc | 4 +--- tests/fe/block_mask_11.cc | 4 +--- tests/fe/cell_similarity_01.cc | 4 +--- tests/fe/cell_similarity_02.cc | 4 +--- tests/fe/cell_similarity_03.cc | 4 +--- tests/fe/cell_similarity_04.cc | 4 +--- tests/fe/cell_similarity_05.cc | 4 +--- tests/fe/cell_similarity_06.cc | 4 +--- tests/fe/cell_similarity_07.cc | 4 +--- tests/fe/cell_similarity_08.cc | 4 +--- tests/fe/cell_similarity_09.cc | 4 +--- tests/fe/cell_similarity_10.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_01.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_02.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_03.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_04.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_05.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_06.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_07.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_08.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_09.cc | 4 +--- tests/fe/cell_similarity_dgp_monomial_10.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_01.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_02.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_03.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_04.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_05.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_06.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_07.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_08.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_09.cc | 4 +--- tests/fe/cell_similarity_dgp_nonparametric_10.cc | 4 +--- tests/fe/check_derivatives.cc | 6 ++---- tests/fe/component_mask_01.cc | 4 +--- tests/fe/component_mask_02.cc | 4 +--- tests/fe/component_mask_03.cc | 4 +--- tests/fe/component_mask_04.cc | 4 +--- tests/fe/component_mask_05.cc | 4 +--- tests/fe/component_mask_06.cc | 4 +--- tests/fe/component_mask_07.cc | 4 +--- tests/fe/component_mask_08.cc | 4 +--- tests/fe/component_mask_09.cc | 4 +--- tests/fe/component_mask_10.cc | 4 +--- tests/fe/component_mask_11.cc | 4 +--- tests/fe/component_mask_12.cc | 4 +--- tests/fe/component_mask_13.cc | 4 +--- tests/fe/component_mask_14.cc | 4 +--- tests/fe/derivatives.cc | 6 ++---- tests/fe/derivatives_bernstein.cc | 6 ++---- tests/fe/derivatives_face.cc | 6 ++---- tests/fe/element_constant_modes.cc | 3 +-- tests/fe/fe_abf_gradient_divergence_theorem.cc | 4 +--- tests/fe/fe_br.cc | 4 +--- tests/fe/fe_dgp_3rd_derivative_divergence_theorem.cc | 4 +--- tests/fe/fe_dgq_3rd_derivative_divergence_theorem.cc | 4 +--- tests/fe/fe_dgq_gradient_divergence_theorem.cc | 4 +--- tests/fe/fe_dgq_hessian_divergence_theorem.cc | 4 +--- tests/fe/fe_enriched_01.cc | 6 ++---- tests/fe/fe_enriched_02.cc | 6 ++---- tests/fe/fe_enriched_03.cc | 6 ++---- tests/fe/fe_enriched_04.cc | 6 ++---- tests/fe/fe_enriched_05.cc | 6 ++---- tests/fe/fe_enriched_06.cc | 6 ++---- tests/fe/fe_enriched_07.cc | 6 ++---- tests/fe/fe_enriched_08.cc | 6 ++---- tests/fe/fe_enriched_08a.cc | 6 ++---- tests/fe/fe_enriched_compare_to_fe_system.cc | 6 ++---- tests/fe/fe_enriched_compare_to_fe_system_2.cc | 6 ++---- tests/fe/fe_nedelec_gradient_divergence_theorem.cc | 4 +--- tests/fe/fe_nedelec_hessian_divergence_theorem.cc | 4 +--- tests/fe/fe_nedelec_sz_gradient_divergence_theorem.cc | 4 +--- tests/fe/fe_nothing.cc | 6 ++---- tests/fe/fe_project_2d.cc | 6 ++---- tests/fe/fe_project_3d.cc | 6 ++---- tests/fe/fe_q_3rd_derivative_divergence_theorem.cc | 4 +--- tests/fe/fe_q_gradient_divergence_theorem.cc | 4 +--- tests/fe/fe_q_hessian_divergence_theorem.cc | 4 +--- .../fe_q_hierarchical_3rd_derivative_divergence_theorem.cc | 4 +--- tests/fe/fe_rt_gradient_divergence_theorem.cc | 4 +--- tests/fe/fe_rt_hessian_divergence_theorem.cc | 4 +--- tests/fe/fe_system_3rd_derivative_divergence_theorem.cc | 4 +--- tests/fe/fe_tools.cc | 3 +-- tests/fe/fe_tools_01.cc | 3 +-- tests/fe/fe_values_extractor_01.cc | 4 +--- tests/fe/fe_values_function_manifold.cc | 3 +-- tests/fe/fe_values_no_mapping.cc | 3 +-- tests/fe/fe_values_view_01.cc | 4 +--- tests/fe/fe_values_view_02.cc | 4 +--- tests/fe/fe_values_view_03.cc | 4 +--- tests/fe/fe_values_view_04.cc | 4 +--- tests/fe/fe_values_view_05.cc | 4 +--- tests/fe/fe_values_view_06.cc | 4 +--- tests/fe/fe_values_view_07.cc | 4 +--- tests/fe/fe_values_view_08.cc | 4 +--- tests/fe/fe_values_view_09.cc | 4 +--- tests/fe/fe_values_view_10.cc | 4 +--- tests/fe/fe_values_view_10_single_01.cc | 4 +--- tests/fe/fe_values_view_10_single_02.cc | 4 +--- tests/fe/fe_values_view_10_single_03.cc | 4 +--- tests/fe/fe_values_view_11.cc | 4 +--- tests/fe/fe_values_view_12.cc | 4 +--- tests/fe/fe_values_view_13.cc | 4 +--- tests/fe/fe_values_view_14.cc | 4 +--- tests/fe/fe_values_view_15.cc | 4 +--- tests/fe/fe_values_view_17.cc | 4 +--- tests/fe/fe_values_view_18.cc | 4 +--- tests/fe/fe_values_view_19.cc | 4 +--- tests/fe/fe_values_view_20.cc | 4 +--- tests/fe/fe_values_view_21.cc | 4 +--- tests/fe/fe_values_view_21_nonsymmetric.cc | 4 +--- tests/fe/fe_values_view_22.cc | 4 +--- tests/fe/fe_values_view_23.cc | 4 +--- tests/fe/fe_values_view_23_nonsymmetric.cc | 4 +--- tests/fe/fe_values_view_24.cc | 4 +--- tests/fe/fe_values_view_24_nonsymmetric.cc | 4 +--- tests/fe/fe_values_view_25.cc | 4 +--- tests/fe/fe_values_view_25_nonsymmetric.cc | 4 +--- tests/fe/fe_values_view_25b_nonsymmetric.cc | 4 +--- tests/fe/fe_values_view_26.cc | 4 +--- tests/fe/fe_values_view_27.cc | 4 +--- tests/fe/fe_values_view_28.cc | 4 +--- tests/fe/fe_values_view_29.cc | 4 +--- tests/fe/fe_values_view_30.cc | 4 +--- tests/fe/fe_values_view_invalid_01.cc | 4 +--- tests/fe/fe_values_view_invalid_02.cc | 4 +--- tests/fe/fe_values_view_invalid_03.cc | 4 +--- tests/fe/fe_values_view_invalid_03_nonsymmetric.cc | 4 +--- tests/fe/fe_values_view_tensor_01.cc | 4 +--- tests/fe/interpolate_nedelec.cc | 3 +-- tests/fe/interpolate_q1.cc | 3 +-- tests/fe/interpolate_q_bubbles.cc | 3 +-- tests/fe/interpolate_q_dg0.cc | 3 +-- tests/fe/interpolate_q_iso_q1.cc | 3 +-- tests/fe/interpolate_q_system_mixed_01.cc | 4 +--- tests/fe/interpolate_rt.cc | 3 +-- tests/fe/interpolate_rtn.cc | 3 +-- tests/fe/interpolate_system.cc | 3 +-- tests/fe/jacobians.cc | 3 +-- tests/fe/jacobians_face.cc | 3 +-- tests/fe/jacobians_face_cartesian.cc | 3 +-- tests/fe/jacobians_face_fe_field.cc | 3 +-- tests/fe/p1nc_01.cc | 6 ++---- tests/fe/p1nc_02.cc | 6 ++---- tests/fe/p1nc_03.cc | 6 ++---- tests/fe/p1nc_04.cc | 6 ++---- tests/fe/p1nc_05.cc | 6 ++---- tests/fe/p1nc_06.cc | 6 ++---- tests/fe/p1nc_07.cc | 6 ++---- tests/fe/p1nc_08.cc | 6 ++---- tests/fe/rt_covariant.cc | 4 +--- tests/fe/rt_hessian.cc | 4 +--- tests/fe/rtdiff.cc | 3 +-- tests/fe/rtn_1.cc | 3 +-- tests/lac/bicgstab_early.cc | 3 +-- tests/lac/bicgstab_large.cc | 3 +-- tests/lac/block_matrices_04.cc | 4 +--- tests/lac/block_minres.cc | 3 +-- tests/lac/block_vector_iterator.cc | 6 ++---- tests/lac/block_vector_vector_assign.cc | 6 ++---- tests/lac/complex_block_vector_iterator.cc | 6 ++---- tests/lac/complex_block_vector_vector_assign.cc | 6 ++---- tests/lac/constraint_graph_zero.cc | 6 ++---- tests/lac/constraint_matrix_copy_01.cc | 6 ++---- tests/lac/constraints_01.cc | 6 ++---- tests/lac/constraints_02.cc | 6 ++---- tests/lac/constraints_inhomogeneous.cc | 6 ++---- tests/lac/constraints_move.cc | 6 ++---- tests/lac/constraints_zero.cc | 6 ++---- tests/lac/constraints_zero_condense.cc | 4 +--- tests/lac/constraints_zero_merge.cc | 6 ++---- tests/lac/copy_transposed.cc | 6 ++---- tests/lac/filtered_matrix_06.cc | 6 ++---- tests/lac/gmres_eigenvalues.cc | 3 +-- tests/lac/gmres_reorthogonalize_02.cc | 3 +-- tests/lac/gmres_reorthogonalize_03.cc | 3 +-- tests/lac/gmres_reorthogonalize_04.cc | 3 +-- tests/lac/gmres_reorthogonalize_05.cc | 3 +-- tests/lac/householder.cc | 3 +-- tests/lac/identity_matrix_01.cc | 6 ++---- tests/lac/identity_matrix_02.cc | 6 ++---- tests/lac/identity_matrix_03.cc | 6 ++---- tests/lac/identity_matrix_04.cc | 6 ++---- tests/lac/identity_matrix_05.cc | 6 ++---- tests/lac/identity_matrix_06.cc | 6 ++---- tests/lac/matrices.cc | 6 ++---- tests/lac/matrices_ez.cc | 6 ++---- tests/lac/matrices_ez_add.cc | 6 ++---- tests/lac/matrices_lapack.cc | 6 ++---- tests/lac/matrices_lapack_fill.cc | 6 ++---- tests/lac/print_formatted_ez_01.cc | 6 ++---- tests/lac/solver_02.cc | 3 +-- tests/lac/solver_control_01.cc | 5 ++--- tests/lac/solver_control_02.cc | 5 ++--- tests/lac/solver_control_03.cc | 5 ++--- tests/lac/solver_control_04.cc | 5 ++--- tests/lac/solver_control_05.cc | 5 ++--- tests/lac/solver_control_06.cc | 5 ++--- tests/lac/solver_selector_02.cc | 3 +-- tests/lac/solver_signals.cc | 3 +-- tests/lac/sparse_matrices.cc | 4 +--- tests/lac/utilities_03.cc | 3 +-- tests/lac/utilities_04.cc | 3 +-- tests/lac/utilities_05.cc | 3 +-- tests/lac/vector_accumulation_02.cc | 3 +-- tests/mpi/distort_random_01.cc | 4 +--- tests/mpi/distort_random_02.cc | 4 +--- tests/mpi/p4est_save_03.cc | 3 +-- tests/mpi/parallel_vector_03a.cc | 3 +-- tests/mpi/parallel_vector_24.cc | 3 +-- tests/mpi/refine_and_coarsen_fixed_number_07.cc | 3 +-- tests/mpi/renumber_cuthill_mckee.cc | 3 +-- tests/mpi/renumber_cuthill_mckee_02.cc | 3 +-- tests/mpi/renumber_z_order_01.cc | 3 +-- tests/mpi/renumber_z_order_02.cc | 3 +-- tests/mpi/torus.cc | 3 +-- tests/multigrid/boundary_01.cc | 3 +-- tests/multigrid/count_01.cc | 3 +-- tests/multigrid/mg_output_dirichlet.cc | 3 +-- tests/multigrid/mg_output_neumann.cc | 3 +-- tests/multigrid/smoother_block.cc | 3 +-- tests/multigrid/step-16-03.cc | 3 +-- tests/multigrid/step-16-04.cc | 3 +-- tests/multigrid/step-16-05.cc | 3 +-- tests/multigrid/step-16-06.cc | 3 +-- tests/multigrid/step-16-07.cc | 3 +-- tests/multigrid/step-16.cc | 3 +-- tests/multigrid/transfer_01.cc | 3 +-- tests/multigrid/transfer_02.cc | 3 +-- tests/multigrid/transfer_03.cc | 3 +-- tests/multigrid/transfer_block.cc | 3 +-- tests/multigrid/transfer_block_select.cc | 3 +-- tests/multigrid/transfer_compare_01.cc | 3 +-- tests/multigrid/transfer_select.cc | 3 +-- tests/multigrid/transfer_system_01.cc | 3 +-- tests/multigrid/transfer_system_02.cc | 3 +-- tests/multigrid/transfer_system_03.cc | 3 +-- tests/multigrid/transfer_system_04.cc | 3 +-- tests/multigrid/transfer_system_05.cc | 3 +-- tests/multigrid/transfer_system_adaptive_01.cc | 3 +-- tests/multigrid/transfer_system_adaptive_02.cc | 3 +-- tests/multigrid/transfer_system_adaptive_03.cc | 3 +-- tests/multigrid/transfer_system_adaptive_04.cc | 3 +-- tests/multigrid/transfer_system_adaptive_05.cc | 3 +-- tests/multigrid/transfer_system_adaptive_06.cc | 3 +-- tests/multigrid/transfer_system_adaptive_07.cc | 3 +-- tests/multigrid/transfer_system_adaptive_08.cc | 3 +-- tests/multigrid/transfer_system_adaptive_09.cc | 3 +-- tests/opencascade/circle_normal_projection.cc | 3 +-- tests/opencascade/iges_describe.cc | 3 +-- tests/opencascade/iges_describe_02.cc | 3 +-- tests/opencascade/interpolation_curve_boundary.cc | 3 +-- tests/opencascade/step_describe.cc | 3 +-- tests/opencascade/step_describe_02.cc | 3 +-- tests/optimization/bfgs_03.cc | 3 +-- tests/optimization/bfgs_04.cc | 3 +-- tests/optimization/bfgs_05.cc | 3 +-- tests/optimization/bfgs_05b.cc | 3 +-- tests/petsc/deal_solver_04.cc | 5 ++--- tests/petsc/deal_solver_05.cc | 5 ++--- tests/petsc/vector_print.cc | 3 +-- tests/physics/elasticity-kinematics_01.cc | 3 +-- tests/physics/elasticity-kinematics_02.cc | 3 +-- tests/physics/elasticity-standard_tensors_01.cc | 3 +-- tests/physics/step-18-rotation_matrix.cc | 3 +-- tests/physics/step-18.cc | 3 +-- .../step-44-standard_tensors-material_push_forward.cc | 3 +-- tests/physics/step-44-standard_tensors-spatial.cc | 3 +-- tests/physics/step-44.cc | 3 +-- tests/physics/transformations-rotations_01.cc | 3 +-- tests/quick_tests/gsl.cc | 4 +--- tests/sparsity/block_dynamic_01.cc | 6 ++---- .../sparsity/block_dynamic_sparsity_pattern_indexset_01.cc | 6 ++---- tests/sparsity/block_sparsity_pattern_01.cc | 6 ++---- tests/sparsity/block_sparsity_pattern_02.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_01.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_02.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_03.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_04.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_05.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_06.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_07.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_09.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_10.cc | 6 ++---- tests/sparsity/chunk_sparsity_pattern_11.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_10.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_11.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_12.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_13.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_14.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_15.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_16.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_index_set_01.cc | 6 ++---- tests/sparsity/dynamic_sparsity_pattern_index_set_02.cc | 6 ++---- tests/sparsity/sparsity_pattern.cc | 6 ++---- tests/sparsity/sparsity_pattern_01.cc | 6 ++---- tests/sparsity/sparsity_pattern_02.cc | 6 ++---- tests/sparsity/sparsity_pattern_03.cc | 6 ++---- tests/sparsity/sparsity_pattern_04.cc | 6 ++---- tests/sparsity/sparsity_pattern_05.cc | 6 ++---- tests/sparsity/sparsity_pattern_06.cc | 6 ++---- tests/sparsity/sparsity_pattern_07.cc | 6 ++---- tests/sparsity/sparsity_pattern_09.cc | 6 ++---- tests/sparsity/sparsity_pattern_10.cc | 6 ++---- tests/sparsity/sparsity_pattern_11.cc | 6 ++---- tests/sparsity/sparsity_pattern_12.cc | 6 ++---- tests/sparsity/sparsity_pattern_13.cc | 6 ++---- tests/sparsity/sparsity_pattern_copy_from_01.cc | 6 ++---- tests/sparsity/sparsity_pattern_copy_from_02.cc | 6 ++---- tests/sparsity/sparsity_tools_01.cc | 6 ++---- tests/sparsity/sparsity_tools_02.cc | 6 ++---- tests/tensors/symmetric_tensor_01.cc | 3 +-- tests/tensors/symmetric_tensor_02.cc | 3 +-- tests/tensors/symmetric_tensor_03.cc | 3 +-- tests/tensors/symmetric_tensor_04.cc | 3 +-- tests/tensors/symmetric_tensor_05.cc | 3 +-- tests/tensors/symmetric_tensor_06.cc | 3 +-- tests/tensors/symmetric_tensor_07.cc | 3 +-- tests/tensors/symmetric_tensor_08.cc | 3 +-- tests/tensors/symmetric_tensor_09.cc | 3 +-- tests/tensors/symmetric_tensor_10.cc | 3 +-- tests/tensors/symmetric_tensor_11.cc | 3 +-- tests/tensors/symmetric_tensor_12.cc | 3 +-- tests/tensors/symmetric_tensor_13.cc | 3 +-- tests/tensors/symmetric_tensor_14.cc | 3 +-- tests/tensors/symmetric_tensor_15.cc | 3 +-- tests/tensors/symmetric_tensor_16.cc | 3 +-- tests/tensors/symmetric_tensor_17.cc | 3 +-- tests/tensors/symmetric_tensor_18.cc | 3 +-- tests/tensors/symmetric_tensor_19.cc | 3 +-- tests/tensors/symmetric_tensor_20.cc | 3 +-- tests/tensors/symmetric_tensor_21.cc | 3 +-- tests/tensors/symmetric_tensor_22.cc | 3 +-- tests/tensors/symmetric_tensor_23.cc | 3 +-- tests/tensors/symmetric_tensor_24.cc | 3 +-- tests/tensors/symmetric_tensor_25.cc | 3 +-- tests/tensors/symmetric_tensor_26.cc | 3 +-- tests/tensors/symmetric_tensor_27.cc | 3 +-- tests/tensors/symmetric_tensor_28.cc | 3 +-- tests/tensors/symmetric_tensor_29.cc | 3 +-- tests/tensors/symmetric_tensor_30.cc | 3 +-- tests/tensors/symmetric_tensor_32.cc | 3 +-- tests/tensors/symmetric_tensor_33.cc | 3 +-- tests/tensors/symmetric_tensor_34.cc | 3 +-- tests/tensors/symmetric_tensor_35.cc | 3 +-- tests/tensors/symmetric_tensor_36.cc | 3 +-- tests/tensors/symmetric_tensor_37.cc | 3 +-- tests/tensors/symmetric_tensor_38.cc | 3 +-- tests/tensors/tensor.cc | 3 +-- tests/tensors/tensor_02.cc | 3 +-- tests/tensors/tensor_03.cc | 3 +-- tests/tensors/tensor_04.cc | 3 +-- tests/tensors/tensor_05.cc | 5 +---- tests/tensors/tensor_06.cc | 3 +-- tests/tensors/tensor_07.cc | 4 +--- tests/tensors/tensor_08.cc | 5 +---- tests/tensors/tensor_24.cc | 3 +-- tests/tensors/tensor_25.cc | 3 +-- tests/tensors/tensor_26.cc | 3 +-- tests/tensors/tensor_27.cc | 3 +-- tests/tensors/tensor_complex.cc | 3 +-- tests/tensors/tensor_complex_06.cc | 3 +-- tests/tensors/tensor_float.cc | 3 +-- tests/tensors/tensor_nondefault_constructor.cc | 3 +-- tests/trilinos/deal_solver_01.cc | 5 ++--- tests/trilinos/deal_solver_03.cc | 5 ++--- tests/trilinos/deal_solver_04.cc | 5 ++--- tests/trilinos/deal_solver_05.cc | 5 ++--- tests/trilinos/mg_transfer_prebuilt_01.cc | 3 +-- tests/trilinos/solver_03.cc | 5 ++--- tests/trilinos/solver_05.cc | 5 ++--- tests/trilinos/solver_07.cc | 5 ++--- tests/trilinos/solver_control_01.cc | 5 ++--- tests/trilinos/solver_control_02.cc | 5 ++--- tests/trilinos/solver_control_03.cc | 5 ++--- tests/trilinos/solver_control_04.cc | 5 ++--- tests/trilinos/solver_control_05.cc | 5 ++--- tests/trilinos/sparse_matrix_set_03.cc | 3 +-- tests/trilinos/sparsity_pattern_01.cc | 6 ++---- tests/trilinos/sparsity_pattern_02.cc | 6 ++---- tests/trilinos/sparsity_pattern_03.cc | 6 ++---- tests/trilinos/trilinos_sparsity_pattern_03.cc | 6 ++---- tests/trilinos/trilinos_sparsity_pattern_04.cc | 3 +-- 486 files changed, 638 insertions(+), 1407 deletions(-) diff --git a/tests/algorithms/newton_01.cc b/tests/algorithms/newton_01.cc index 68be0abd86..9fcd4f985a 100644 --- a/tests/algorithms/newton_01.cc +++ b/tests/algorithms/newton_01.cc @@ -125,9 +125,7 @@ test() int main() { - std::string logname = "output"; - std::ofstream logfile(logname.c_str()); - deallog.attach(logfile); + initlog(); test(); } diff --git a/tests/algorithms/newton_02.cc b/tests/algorithms/newton_02.cc index ba1846a928..3b68a5f807 100644 --- a/tests/algorithms/newton_02.cc +++ b/tests/algorithms/newton_02.cc @@ -121,9 +121,7 @@ test() int main() { - std::string logname = "output"; - std::ofstream logfile(logname.c_str()); - deallog.attach(logfile); + initlog(); test<2>(); } diff --git a/tests/algorithms/theta_01.cc b/tests/algorithms/theta_01.cc index 5da4efd6ec..d11b5e8664 100644 --- a/tests/algorithms/theta_01.cc +++ b/tests/algorithms/theta_01.cc @@ -58,9 +58,7 @@ private: int main() { - std::string logname = "output"; - std::ofstream logfile(logname.c_str()); - deallog.attach(logfile); + initlog(); FullMatrix matrix(2); matrix(0, 0) = 0.; diff --git a/tests/bits/anna_6.cc b/tests/bits/anna_6.cc index b0850182d0..538fe3cd44 100644 --- a/tests/bits/anna_6.cc +++ b/tests/bits/anna_6.cc @@ -279,9 +279,8 @@ main() { try { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(2); - deallog.attach(logfile); ImposeBC<2>().run(); ImposeBC<3>().run(); diff --git a/tests/bits/christian_1.cc b/tests/bits/christian_1.cc index 2f88ab96fe..8129cea884 100644 --- a/tests/bits/christian_1.cc +++ b/tests/bits/christian_1.cc @@ -116,8 +116,7 @@ public: int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); // build test-case trias diff --git a/tests/bits/christian_2.cc b/tests/bits/christian_2.cc index e3537ab1fa..6464e821de 100644 --- a/tests/bits/christian_2.cc +++ b/tests/bits/christian_2.cc @@ -32,8 +32,7 @@ int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); Triangulation<2> tria; GridGenerator::hyper_cube(tria, 0, 1); diff --git a/tests/bits/count_dofs_per_block_01.cc b/tests/bits/count_dofs_per_block_01.cc index a56a1c1d60..0861cc7a41 100644 --- a/tests/bits/count_dofs_per_block_01.cc +++ b/tests/bits/count_dofs_per_block_01.cc @@ -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>(); diff --git a/tests/bits/count_dofs_per_block_02.cc b/tests/bits/count_dofs_per_block_02.cc index 19e17106e4..10932358b4 100644 --- a/tests/bits/count_dofs_per_block_02.cc +++ b/tests/bits/count_dofs_per_block_02.cc @@ -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>(); diff --git a/tests/bits/deal_solver_04.cc b/tests/bits/deal_solver_04.cc index b16f447a1b..db9b738af4 100644 --- a/tests/bits/deal_solver_04.cc +++ b/tests/bits/deal_solver_04.cc @@ -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); diff --git a/tests/bits/deal_solver_05.cc b/tests/bits/deal_solver_05.cc index f62aa84ca7..68b647bc6a 100644 --- a/tests/bits/deal_solver_05.cc +++ b/tests/bits/deal_solver_05.cc @@ -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); diff --git a/tests/bits/distorted_mapped_cells_01.cc b/tests/bits/distorted_mapped_cells_01.cc index 5692e0d218..9b523977cb 100644 --- a/tests/bits/distorted_mapped_cells_01.cc +++ b/tests/bits/distorted_mapped_cells_01.cc @@ -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(); diff --git a/tests/bits/error_estimator_01.cc b/tests/bits/error_estimator_01.cc index a217b0c29e..e1f0496752 100644 --- a/tests/bits/error_estimator_01.cc +++ b/tests/bits/error_estimator_01.cc @@ -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>(); diff --git a/tests/bits/error_estimator_02.cc b/tests/bits/error_estimator_02.cc index 38481d0e2d..497e316ab9 100644 --- a/tests/bits/error_estimator_02.cc +++ b/tests/bits/error_estimator_02.cc @@ -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>(); diff --git a/tests/bits/face_orientation_crash.cc b/tests/bits/face_orientation_crash.cc index 3ec8879d40..c57d7fd6d1 100644 --- a/tests/bits/face_orientation_crash.cc +++ b/tests/bits/face_orientation_crash.cc @@ -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>(); } diff --git a/tests/bits/faceq_face_interpolation.cc b/tests/bits/faceq_face_interpolation.cc index 17e48e8bd3..e5fba6f579 100644 --- a/tests/bits/faceq_face_interpolation.cc +++ b/tests/bits/faceq_face_interpolation.cc @@ -146,9 +146,8 @@ main() { try { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(6); - deallog.attach(logfile); check<1>(); check<2>(); diff --git a/tests/bits/faceq_subface_interpolation.cc b/tests/bits/faceq_subface_interpolation.cc index 00fab6e8b7..91e664c70a 100644 --- a/tests/bits/faceq_subface_interpolation.cc +++ b/tests/bits/faceq_subface_interpolation.cc @@ -157,9 +157,8 @@ main() { try { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(6); - deallog.attach(logfile); check<1>(); check<2>(); diff --git a/tests/bits/fe_tools_01a.cc b/tests/bits/fe_tools_01a.cc index f7d6eb5190..f6495a8f5b 100644 --- a/tests/bits/fe_tools_01a.cc +++ b/tests/bits/fe_tools_01a.cc @@ -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); diff --git a/tests/bits/fe_tools_01b.cc b/tests/bits/fe_tools_01b.cc index 2b682733f4..f46cea5883 100644 --- a/tests/bits/fe_tools_01b.cc +++ b/tests/bits/fe_tools_01b.cc @@ -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); diff --git a/tests/bits/fe_tools_01c.cc b/tests/bits/fe_tools_01c.cc index 22a1a2047f..5f5a7c3f96 100644 --- a/tests/bits/fe_tools_01c.cc +++ b/tests/bits/fe_tools_01c.cc @@ -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); diff --git a/tests/bits/fe_tools_cpfqpm_05.cc b/tests/bits/fe_tools_cpfqpm_05.cc index cf873614aa..11a58e414f 100644 --- a/tests/bits/fe_tools_cpfqpm_05.cc +++ b/tests/bits/fe_tools_cpfqpm_05.cc @@ -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); diff --git a/tests/bits/joa_1.cc b/tests/bits/joa_1.cc index 9dca934c55..006dcc91d7 100644 --- a/tests/bits/joa_1.cc +++ b/tests/bits/joa_1.cc @@ -1140,10 +1140,8 @@ LaplaceProblem::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 diff --git a/tests/bits/point_difference_01.cc b/tests/bits/point_difference_01.cc index 0d7081f8b8..b6f4e0cf8e 100644 --- a/tests/bits/point_difference_01.cc +++ b/tests/bits/point_difference_01.cc @@ -172,9 +172,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_difference_02.cc b/tests/bits/point_difference_02.cc index 73ed5bd36b..183ab9fc3e 100644 --- a/tests/bits/point_difference_02.cc +++ b/tests/bits/point_difference_02.cc @@ -178,9 +178,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_gradient_01.cc b/tests/bits/point_gradient_01.cc index 4d454df6c4..c704057713 100644 --- a/tests/bits/point_gradient_01.cc +++ b/tests/bits/point_gradient_01.cc @@ -204,9 +204,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_gradient_02.cc b/tests/bits/point_gradient_02.cc index 97d6907714..504880c990 100644 --- a/tests/bits/point_gradient_02.cc +++ b/tests/bits/point_gradient_02.cc @@ -206,9 +206,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_gradient_hp_01.cc b/tests/bits/point_gradient_hp_01.cc index 840852fa02..1e79c5134f 100644 --- a/tests/bits/point_gradient_hp_01.cc +++ b/tests/bits/point_gradient_hp_01.cc @@ -218,9 +218,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_gradient_hp_02.cc b/tests/bits/point_gradient_hp_02.cc index 45b4ac9581..b00bd95b5c 100644 --- a/tests/bits/point_gradient_hp_02.cc +++ b/tests/bits/point_gradient_hp_02.cc @@ -243,9 +243,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_value_01.cc b/tests/bits/point_value_01.cc index e265f5768b..f1599f9ebe 100644 --- a/tests/bits/point_value_01.cc +++ b/tests/bits/point_value_01.cc @@ -170,9 +170,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_value_02.cc b/tests/bits/point_value_02.cc index c1e1703a87..9b16f1d7bd 100644 --- a/tests/bits/point_value_02.cc +++ b/tests/bits/point_value_02.cc @@ -173,9 +173,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_value_hp_01.cc b/tests/bits/point_value_hp_01.cc index c5de04cddb..d71a7ac466 100644 --- a/tests/bits/point_value_hp_01.cc +++ b/tests/bits/point_value_hp_01.cc @@ -185,9 +185,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/point_value_hp_02.cc b/tests/bits/point_value_hp_02.cc index fad6522d26..229794efd6 100644 --- a/tests/bits/point_value_hp_02.cc +++ b/tests/bits/point_value_hp_02.cc @@ -205,9 +205,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("1d"); check<1>(); diff --git a/tests/bits/solution_transfer.cc b/tests/bits/solution_transfer.cc index 6e3fd6bb30..ecfcf056f9 100644 --- a/tests/bits/solution_transfer.cc +++ b/tests/bits/solution_transfer.cc @@ -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); diff --git a/tests/codim_one/boundary_indicator_01.cc b/tests/codim_one/boundary_indicator_01.cc index 1117ca9811..37faae9851 100644 --- a/tests/codim_one/boundary_indicator_01.cc +++ b/tests/codim_one/boundary_indicator_01.cc @@ -51,8 +51,7 @@ save_mesh(const Triangulation &tria) int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); // Extract the boundary of 3/4 of a sphere { diff --git a/tests/codim_one/direction_flag_01.cc b/tests/codim_one/direction_flag_01.cc index d258875847..961913b828 100644 --- a/tests/codim_one/direction_flag_01.cc +++ b/tests/codim_one/direction_flag_01.cc @@ -65,8 +65,7 @@ test() int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); test(); } diff --git a/tests/codim_one/direction_flag_02.cc b/tests/codim_one/direction_flag_02.cc index c761482d25..7d0864200c 100644 --- a/tests/codim_one/direction_flag_02.cc +++ b/tests/codim_one/direction_flag_02.cc @@ -65,8 +65,7 @@ test() int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); test(); } diff --git a/tests/codim_one/direction_flag_03.cc b/tests/codim_one/direction_flag_03.cc index d2074020ea..36a952a547 100644 --- a/tests/codim_one/direction_flag_03.cc +++ b/tests/codim_one/direction_flag_03.cc @@ -50,8 +50,7 @@ test() int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); test<1>(); test<2>(); diff --git a/tests/codim_one/extract_boundary_mesh_00.cc b/tests/codim_one/extract_boundary_mesh_00.cc index 2439ece779..3894e4fd5f 100644 --- a/tests/codim_one/extract_boundary_mesh_00.cc +++ b/tests/codim_one/extract_boundary_mesh_00.cc @@ -47,8 +47,7 @@ save_mesh(const Triangulation &tria) int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); { // Extract the whole boundary of a hyper-cube diff --git a/tests/codim_one/extract_boundary_mesh_01.cc b/tests/codim_one/extract_boundary_mesh_01.cc index c0cf8d33d6..031071c1c2 100644 --- a/tests/codim_one/extract_boundary_mesh_01.cc +++ b/tests/codim_one/extract_boundary_mesh_01.cc @@ -98,8 +98,7 @@ save_mesh(const Triangulation &tria) int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); { diff --git a/tests/codim_one/extract_boundary_mesh_02.cc b/tests/codim_one/extract_boundary_mesh_02.cc index e9fb543df8..813bef765f 100644 --- a/tests/codim_one/extract_boundary_mesh_02.cc +++ b/tests/codim_one/extract_boundary_mesh_02.cc @@ -81,8 +81,7 @@ save_mesh(const Triangulation &tria) int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); { diff --git a/tests/codim_one/extract_boundary_mesh_03.cc b/tests/codim_one/extract_boundary_mesh_03.cc index dc880466b5..765f1d15a0 100644 --- a/tests/codim_one/extract_boundary_mesh_03.cc +++ b/tests/codim_one/extract_boundary_mesh_03.cc @@ -91,8 +91,7 @@ save_mesh(const Triangulation &tria) int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); { diff --git a/tests/codim_one/extract_boundary_mesh_04.cc b/tests/codim_one/extract_boundary_mesh_04.cc index 15bbfa6627..30c30652a7 100644 --- a/tests/codim_one/extract_boundary_mesh_04.cc +++ b/tests/codim_one/extract_boundary_mesh_04.cc @@ -91,8 +91,7 @@ save_mesh(const Triangulation &tria) int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); { diff --git a/tests/codim_one/extract_boundary_mesh_05.cc b/tests/codim_one/extract_boundary_mesh_05.cc index 13dfbd8958..5ea165b59e 100644 --- a/tests/codim_one/extract_boundary_mesh_05.cc +++ b/tests/codim_one/extract_boundary_mesh_05.cc @@ -77,8 +77,7 @@ test() int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); test(); } diff --git a/tests/codim_one/extract_boundary_mesh_06.cc b/tests/codim_one/extract_boundary_mesh_06.cc index a6c7eb413b..b1a936eeb7 100644 --- a/tests/codim_one/extract_boundary_mesh_06.cc +++ b/tests/codim_one/extract_boundary_mesh_06.cc @@ -64,8 +64,7 @@ test() int main() { - ofstream logfile("output"); - deallog.attach(logfile); + initlog(); test(); } diff --git a/tests/data_out/data_out_08.cc b/tests/data_out/data_out_08.cc index ed4a3bd200..12da3197e3 100644 --- a/tests/data_out/data_out_08.cc +++ b/tests/data_out/data_out_08.cc @@ -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>(); diff --git a/tests/data_out/data_out_curved_cells.cc b/tests/data_out/data_out_curved_cells.cc index 95d2be5c46..9e44933fcc 100644 --- a/tests/data_out/data_out_curved_cells.cc +++ b/tests/data_out/data_out_curved_cells.cc @@ -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); diff --git a/tests/data_out/data_out_multi_dh_01.cc b/tests/data_out/data_out_multi_dh_01.cc index 15965ed7ea..b6c7c9015e 100644 --- a/tests/data_out/data_out_multi_dh_01.cc +++ b/tests/data_out/data_out_multi_dh_01.cc @@ -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>(); diff --git a/tests/data_out/data_out_multi_dh_02.cc b/tests/data_out/data_out_multi_dh_02.cc index 814c1ac29f..f62fbe839b 100644 --- a/tests/data_out/data_out_multi_dh_02.cc +++ b/tests/data_out/data_out_multi_dh_02.cc @@ -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>(); diff --git a/tests/data_out/data_out_multi_dh_03.cc b/tests/data_out/data_out_multi_dh_03.cc index 59d81a875a..228ce94f8d 100644 --- a/tests/data_out/data_out_multi_dh_03.cc +++ b/tests/data_out/data_out_multi_dh_03.cc @@ -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>(); diff --git a/tests/data_out/data_out_multi_dh_04.cc b/tests/data_out/data_out_multi_dh_04.cc index d7586246cb..1fe34c313b 100644 --- a/tests/data_out/data_out_multi_dh_04.cc +++ b/tests/data_out/data_out_multi_dh_04.cc @@ -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>(); diff --git a/tests/data_out/data_out_multi_dh_05.cc b/tests/data_out/data_out_multi_dh_05.cc index 9c916f1d12..e141418d5b 100644 --- a/tests/data_out/data_out_multi_dh_05.cc +++ b/tests/data_out/data_out_multi_dh_05.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering.cc b/tests/dofs/dof_renumbering.cc index 8769316c97..c2e1825cb1 100644 --- a/tests/dofs/dof_renumbering.cc +++ b/tests/dofs/dof_renumbering.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_02.cc b/tests/dofs/dof_renumbering_02.cc index ceecc2c5e1..f4cbce693c 100644 --- a/tests/dofs/dof_renumbering_02.cc +++ b/tests/dofs/dof_renumbering_02.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_03.cc b/tests/dofs/dof_renumbering_03.cc index 74d8c34898..4effaed5aa 100644 --- a/tests/dofs/dof_renumbering_03.cc +++ b/tests/dofs/dof_renumbering_03.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_04.cc b/tests/dofs/dof_renumbering_04.cc index 65227dcad1..11b0b76701 100644 --- a/tests/dofs/dof_renumbering_04.cc +++ b/tests/dofs/dof_renumbering_04.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_04a.cc b/tests/dofs/dof_renumbering_04a.cc index 0abdd995c5..d292869438 100644 --- a/tests/dofs/dof_renumbering_04a.cc +++ b/tests/dofs/dof_renumbering_04a.cc @@ -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>(); } diff --git a/tests/dofs/dof_renumbering_05.cc b/tests/dofs/dof_renumbering_05.cc index ec04623949..981161a89a 100644 --- a/tests/dofs/dof_renumbering_05.cc +++ b/tests/dofs/dof_renumbering_05.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_06.cc b/tests/dofs/dof_renumbering_06.cc index 4fe181187b..4b81b2bb95 100644 --- a/tests/dofs/dof_renumbering_06.cc +++ b/tests/dofs/dof_renumbering_06.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_07.cc b/tests/dofs/dof_renumbering_07.cc index 51666d6f75..7f6b1cb533 100644 --- a/tests/dofs/dof_renumbering_07.cc +++ b/tests/dofs/dof_renumbering_07.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_08.cc b/tests/dofs/dof_renumbering_08.cc index 85e3b7531f..75190cd431 100644 --- a/tests/dofs/dof_renumbering_08.cc +++ b/tests/dofs/dof_renumbering_08.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_zorder_01.cc b/tests/dofs/dof_renumbering_zorder_01.cc index 85411446df..f071eddbcc 100644 --- a/tests/dofs/dof_renumbering_zorder_01.cc +++ b/tests/dofs/dof_renumbering_zorder_01.cc @@ -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>(); diff --git a/tests/dofs/dof_renumbering_zorder_02.cc b/tests/dofs/dof_renumbering_zorder_02.cc index 3d55625ee9..db6dd86350 100644 --- a/tests/dofs/dof_renumbering_zorder_02.cc +++ b/tests/dofs/dof_renumbering_zorder_02.cc @@ -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>(); diff --git a/tests/dofs/dof_tools_18a_1d.cc b/tests/dofs/dof_tools_18a_1d.cc index 58ad9b7fdb..4f78b19c09 100644 --- a/tests/dofs/dof_tools_18a_1d.cc +++ b/tests/dofs/dof_tools_18a_1d.cc @@ -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; diff --git a/tests/dofs/extract_dofs_by_component_01.cc b/tests/dofs/extract_dofs_by_component_01.cc index 078b468e6b..27c82f7d89 100644 --- a/tests/dofs/extract_dofs_by_component_01.cc +++ b/tests/dofs/extract_dofs_by_component_01.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_01_hp.cc b/tests/dofs/extract_dofs_by_component_01_hp.cc index b98ed1c162..e00255df0c 100644 --- a/tests/dofs/extract_dofs_by_component_01_hp.cc +++ b/tests/dofs/extract_dofs_by_component_01_hp.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_01_mg.cc b/tests/dofs/extract_dofs_by_component_01_mg.cc index 577a5e85e0..bfdfe10a0f 100644 --- a/tests/dofs/extract_dofs_by_component_01_mg.cc +++ b/tests/dofs/extract_dofs_by_component_01_mg.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_01x.cc b/tests/dofs/extract_dofs_by_component_01x.cc index 6d982b436e..cc2d4a5bf9 100644 --- a/tests/dofs/extract_dofs_by_component_01x.cc +++ b/tests/dofs/extract_dofs_by_component_01x.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_01y.cc b/tests/dofs/extract_dofs_by_component_01y.cc index 9c8f34280c..9f5515a3b0 100644 --- a/tests/dofs/extract_dofs_by_component_01y.cc +++ b/tests/dofs/extract_dofs_by_component_01y.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_02.cc b/tests/dofs/extract_dofs_by_component_02.cc index b2ffdffd21..8ec38e5726 100644 --- a/tests/dofs/extract_dofs_by_component_02.cc +++ b/tests/dofs/extract_dofs_by_component_02.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_02_hp.cc b/tests/dofs/extract_dofs_by_component_02_hp.cc index 1a57c05df1..abb036a7ba 100644 --- a/tests/dofs/extract_dofs_by_component_02_hp.cc +++ b/tests/dofs/extract_dofs_by_component_02_hp.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_02_mg.cc b/tests/dofs/extract_dofs_by_component_02_mg.cc index 226c75cf67..74372035e5 100644 --- a/tests/dofs/extract_dofs_by_component_02_mg.cc +++ b/tests/dofs/extract_dofs_by_component_02_mg.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_03.cc b/tests/dofs/extract_dofs_by_component_03.cc index 055bbeb9f4..9dc8233eba 100644 --- a/tests/dofs/extract_dofs_by_component_03.cc +++ b/tests/dofs/extract_dofs_by_component_03.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_04.cc b/tests/dofs/extract_dofs_by_component_04.cc index 50e0dff354..6ce5a8d6a2 100644 --- a/tests/dofs/extract_dofs_by_component_04.cc +++ b/tests/dofs/extract_dofs_by_component_04.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_05.cc b/tests/dofs/extract_dofs_by_component_05.cc index 0eeb2bff95..d9234352a8 100644 --- a/tests/dofs/extract_dofs_by_component_05.cc +++ b/tests/dofs/extract_dofs_by_component_05.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_05_hp.cc b/tests/dofs/extract_dofs_by_component_05_hp.cc index 667d68b543..e579ac5969 100644 --- a/tests/dofs/extract_dofs_by_component_05_hp.cc +++ b/tests/dofs/extract_dofs_by_component_05_hp.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_06.cc b/tests/dofs/extract_dofs_by_component_06.cc index 9f3d7c9bc4..10437e9a09 100644 --- a/tests/dofs/extract_dofs_by_component_06.cc +++ b/tests/dofs/extract_dofs_by_component_06.cc @@ -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>(); diff --git a/tests/dofs/extract_dofs_by_component_06_hp.cc b/tests/dofs/extract_dofs_by_component_06_hp.cc index 66812cdd94..3cc73f4164 100644 --- a/tests/dofs/extract_dofs_by_component_06_hp.cc +++ b/tests/dofs/extract_dofs_by_component_06_hp.cc @@ -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>(); diff --git a/tests/dofs/interpolate_based_on_material_id_01.cc b/tests/dofs/interpolate_based_on_material_id_01.cc index 21aeeef7e7..8644c8db17 100644 --- a/tests/dofs/interpolate_based_on_material_id_01.cc +++ b/tests/dofs/interpolate_based_on_material_id_01.cc @@ -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>(); diff --git a/tests/dofs/interpolate_dgq_01.cc b/tests/dofs/interpolate_dgq_01.cc index 18ea80fa96..77db9a86bb 100644 --- a/tests/dofs/interpolate_dgq_01.cc +++ b/tests/dofs/interpolate_dgq_01.cc @@ -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>(); diff --git a/tests/dofs/interpolate_dgq_02.cc b/tests/dofs/interpolate_dgq_02.cc index 2f6a0fc6f6..240b811b60 100644 --- a/tests/dofs/interpolate_dgq_02.cc +++ b/tests/dofs/interpolate_dgq_02.cc @@ -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>(); diff --git a/tests/dofs/interpolate_q_01.cc b/tests/dofs/interpolate_q_01.cc index c01fd7b006..9e0e2b5cd5 100644 --- a/tests/dofs/interpolate_q_01.cc +++ b/tests/dofs/interpolate_q_01.cc @@ -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>(); diff --git a/tests/dofs/interpolate_q_02.cc b/tests/dofs/interpolate_q_02.cc index af69b42a72..f9b07ce577 100644 --- a/tests/dofs/interpolate_q_02.cc +++ b/tests/dofs/interpolate_q_02.cc @@ -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>(); diff --git a/tests/dofs/interpolate_q_system_01.cc b/tests/dofs/interpolate_q_system_01.cc index 775e82a15b..2f962d80f3 100644 --- a/tests/dofs/interpolate_q_system_01.cc +++ b/tests/dofs/interpolate_q_system_01.cc @@ -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>(); diff --git a/tests/dofs/interpolate_q_system_02.cc b/tests/dofs/interpolate_q_system_02.cc index 9d842262d3..816c71d845 100644 --- a/tests/dofs/interpolate_q_system_02.cc +++ b/tests/dofs/interpolate_q_system_02.cc @@ -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>(); diff --git a/tests/dofs/interpolate_q_system_mask_01.cc b/tests/dofs/interpolate_q_system_mask_01.cc index e7f8d72f1b..d252ba4c74 100644 --- a/tests/dofs/interpolate_q_system_mask_01.cc +++ b/tests/dofs/interpolate_q_system_mask_01.cc @@ -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>(); diff --git a/tests/dofs/interpolate_q_system_mask_02.cc b/tests/dofs/interpolate_q_system_mask_02.cc index 3dd37bab00..392e472930 100644 --- a/tests/dofs/interpolate_q_system_mask_02.cc +++ b/tests/dofs/interpolate_q_system_mask_02.cc @@ -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>(); diff --git a/tests/dofs/mg_dof_handler.cc b/tests/dofs/mg_dof_handler.cc index 331defcb54..306096a245 100644 --- a/tests/dofs/mg_dof_handler.cc +++ b/tests/dofs/mg_dof_handler.cc @@ -35,11 +35,9 @@ int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(2); - deallog.attach(logfile); - const unsigned int dim = 2; Triangulation tria; GridGenerator::hyper_cube(tria); diff --git a/tests/dofs/range_based_for_step-6.cc b/tests/dofs/range_based_for_step-6.cc index d2eed0e340..1d90ce246a 100644 --- a/tests/dofs/range_based_for_step-6.cc +++ b/tests/dofs/range_based_for_step-6.cc @@ -351,11 +351,9 @@ Step6::run() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); - Step6<2> laplace_problem_2d; laplace_problem_2d.run(); } diff --git a/tests/dofs/sparsity_pattern.cc b/tests/dofs/sparsity_pattern.cc index 3bc7017e7e..fe8601d559 100644 --- a/tests/dofs/sparsity_pattern.cc +++ b/tests/dofs/sparsity_pattern.cc @@ -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>(); diff --git a/tests/dofs/sparsity_pattern_01.cc b/tests/dofs/sparsity_pattern_01.cc index 5da96f3d73..0ef503a6c4 100644 --- a/tests/dofs/sparsity_pattern_01.cc +++ b/tests/dofs/sparsity_pattern_01.cc @@ -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>(); diff --git a/tests/dofs/sparsity_pattern_02.cc b/tests/dofs/sparsity_pattern_02.cc index 28ce24e1f5..cf9e6dac34 100644 --- a/tests/dofs/sparsity_pattern_02.cc +++ b/tests/dofs/sparsity_pattern_02.cc @@ -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>(); diff --git a/tests/dofs/sparsity_pattern_03.cc b/tests/dofs/sparsity_pattern_03.cc index ca0a1f1197..9c652fd38f 100644 --- a/tests/dofs/sparsity_pattern_03.cc +++ b/tests/dofs/sparsity_pattern_03.cc @@ -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>(); diff --git a/tests/dofs/sparsity_pattern_04.cc b/tests/dofs/sparsity_pattern_04.cc index dd3506592b..4dfe3da7c2 100644 --- a/tests/dofs/sparsity_pattern_04.cc +++ b/tests/dofs/sparsity_pattern_04.cc @@ -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>(); diff --git a/tests/dofs/sparsity_pattern_05.cc b/tests/dofs/sparsity_pattern_05.cc index c8ebdb6012..f1f4938e81 100644 --- a/tests/dofs/sparsity_pattern_05.cc +++ b/tests/dofs/sparsity_pattern_05.cc @@ -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>(); diff --git a/tests/fail/fe_nothing_04.cc b/tests/fail/fe_nothing_04.cc index d2b698bddc..874747e8e3 100644 --- a/tests/fail/fe_nothing_04.cc +++ b/tests/fail/fe_nothing_04.cc @@ -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>(); diff --git a/tests/fe/abf_degree.cc b/tests/fe/abf_degree.cc index 52b293bb38..554fbf2c76 100644 --- a/tests/fe/abf_degree.cc +++ b/tests/fe/abf_degree.cc @@ -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) diff --git a/tests/fe/block_mask_01.cc b/tests/fe/block_mask_01.cc index f9cb5e570d..ba4fa6023e 100644 --- a/tests/fe/block_mask_01.cc +++ b/tests/fe/block_mask_01.cc @@ -41,10 +41,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/block_mask_02.cc b/tests/fe/block_mask_02.cc index 006f01de9c..0a97d02dd5 100644 --- a/tests/fe/block_mask_02.cc +++ b/tests/fe/block_mask_02.cc @@ -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(); } diff --git a/tests/fe/block_mask_03.cc b/tests/fe/block_mask_03.cc index 1dbfbfcb08..97f734655d 100644 --- a/tests/fe/block_mask_03.cc +++ b/tests/fe/block_mask_03.cc @@ -44,10 +44,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/block_mask_04.cc b/tests/fe/block_mask_04.cc index 67ff97188f..e0eb4a5835 100644 --- a/tests/fe/block_mask_04.cc +++ b/tests/fe/block_mask_04.cc @@ -39,10 +39,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/block_mask_05.cc b/tests/fe/block_mask_05.cc index b5bd9a91e6..8477fa5a6c 100644 --- a/tests/fe/block_mask_05.cc +++ b/tests/fe/block_mask_05.cc @@ -45,10 +45,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/block_mask_06.cc b/tests/fe/block_mask_06.cc index f24d423046..e6ed3fae83 100644 --- a/tests/fe/block_mask_06.cc +++ b/tests/fe/block_mask_06.cc @@ -58,10 +58,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/block_mask_07.cc b/tests/fe/block_mask_07.cc index 04664d5158..68f77b3df2 100644 --- a/tests/fe/block_mask_07.cc +++ b/tests/fe/block_mask_07.cc @@ -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(); } diff --git a/tests/fe/block_mask_08.cc b/tests/fe/block_mask_08.cc index 2e5b0df3ae..64f5257956 100644 --- a/tests/fe/block_mask_08.cc +++ b/tests/fe/block_mask_08.cc @@ -47,10 +47,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/block_mask_09.cc b/tests/fe/block_mask_09.cc index d419299e4d..80c3f43f84 100644 --- a/tests/fe/block_mask_09.cc +++ b/tests/fe/block_mask_09.cc @@ -51,10 +51,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/block_mask_10.cc b/tests/fe/block_mask_10.cc index a41cb0d271..494de74ac5 100644 --- a/tests/fe/block_mask_10.cc +++ b/tests/fe/block_mask_10.cc @@ -51,10 +51,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/block_mask_11.cc b/tests/fe/block_mask_11.cc index a64564d782..4728a3b311 100644 --- a/tests/fe/block_mask_11.cc +++ b/tests/fe/block_mask_11.cc @@ -57,10 +57,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/cell_similarity_01.cc b/tests/fe/cell_similarity_01.cc index 38be8c9e7e..7dc6a732a0 100644 --- a/tests/fe/cell_similarity_01.cc +++ b/tests/fe/cell_similarity_01.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_02.cc b/tests/fe/cell_similarity_02.cc index 95d5b3f5fe..73067ab107 100644 --- a/tests/fe/cell_similarity_02.cc +++ b/tests/fe/cell_similarity_02.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_03.cc b/tests/fe/cell_similarity_03.cc index 9f764cb621..d807d19e7c 100644 --- a/tests/fe/cell_similarity_03.cc +++ b/tests/fe/cell_similarity_03.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_04.cc b/tests/fe/cell_similarity_04.cc index b9b7e2066d..72cd08ed00 100644 --- a/tests/fe/cell_similarity_04.cc +++ b/tests/fe/cell_similarity_04.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_05.cc b/tests/fe/cell_similarity_05.cc index b6589fa60f..4e10010572 100644 --- a/tests/fe/cell_similarity_05.cc +++ b/tests/fe/cell_similarity_05.cc @@ -169,11 +169,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_06.cc b/tests/fe/cell_similarity_06.cc index 41b801efe1..39fb43dc5f 100644 --- a/tests/fe/cell_similarity_06.cc +++ b/tests/fe/cell_similarity_06.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_07.cc b/tests/fe/cell_similarity_07.cc index 28f4b9fc6d..1466548ad0 100644 --- a/tests/fe/cell_similarity_07.cc +++ b/tests/fe/cell_similarity_07.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_08.cc b/tests/fe/cell_similarity_08.cc index b78b53cda8..1aa5d57cf4 100644 --- a/tests/fe/cell_similarity_08.cc +++ b/tests/fe/cell_similarity_08.cc @@ -170,11 +170,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_09.cc b/tests/fe/cell_similarity_09.cc index 9ef8f758e6..4b1f32862b 100644 --- a/tests/fe/cell_similarity_09.cc +++ b/tests/fe/cell_similarity_09.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_10.cc b/tests/fe/cell_similarity_10.cc index 7e6531d8cb..27bda8a178 100644 --- a/tests/fe/cell_similarity_10.cc +++ b/tests/fe/cell_similarity_10.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_01.cc b/tests/fe/cell_similarity_dgp_monomial_01.cc index 1498eb86b2..02ce3a308c 100644 --- a/tests/fe/cell_similarity_dgp_monomial_01.cc +++ b/tests/fe/cell_similarity_dgp_monomial_01.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_02.cc b/tests/fe/cell_similarity_dgp_monomial_02.cc index 23b12151f3..5776c9e5b1 100644 --- a/tests/fe/cell_similarity_dgp_monomial_02.cc +++ b/tests/fe/cell_similarity_dgp_monomial_02.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_03.cc b/tests/fe/cell_similarity_dgp_monomial_03.cc index 1a20355c0f..37bd38e25b 100644 --- a/tests/fe/cell_similarity_dgp_monomial_03.cc +++ b/tests/fe/cell_similarity_dgp_monomial_03.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_04.cc b/tests/fe/cell_similarity_dgp_monomial_04.cc index cf863e6c20..40d8a89159 100644 --- a/tests/fe/cell_similarity_dgp_monomial_04.cc +++ b/tests/fe/cell_similarity_dgp_monomial_04.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_05.cc b/tests/fe/cell_similarity_dgp_monomial_05.cc index f637975e8d..1b7a92a3b2 100644 --- a/tests/fe/cell_similarity_dgp_monomial_05.cc +++ b/tests/fe/cell_similarity_dgp_monomial_05.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_06.cc b/tests/fe/cell_similarity_dgp_monomial_06.cc index 36bc7f7b14..b7b1abe500 100644 --- a/tests/fe/cell_similarity_dgp_monomial_06.cc +++ b/tests/fe/cell_similarity_dgp_monomial_06.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_07.cc b/tests/fe/cell_similarity_dgp_monomial_07.cc index a5e4907098..9954e81c74 100644 --- a/tests/fe/cell_similarity_dgp_monomial_07.cc +++ b/tests/fe/cell_similarity_dgp_monomial_07.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_08.cc b/tests/fe/cell_similarity_dgp_monomial_08.cc index 93ef484675..79b936cacd 100644 --- a/tests/fe/cell_similarity_dgp_monomial_08.cc +++ b/tests/fe/cell_similarity_dgp_monomial_08.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_09.cc b/tests/fe/cell_similarity_dgp_monomial_09.cc index 054c6a4089..29edc9f9ca 100644 --- a/tests/fe/cell_similarity_dgp_monomial_09.cc +++ b/tests/fe/cell_similarity_dgp_monomial_09.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_monomial_10.cc b/tests/fe/cell_similarity_dgp_monomial_10.cc index 7647443cdd..ee614283e3 100644 --- a/tests/fe/cell_similarity_dgp_monomial_10.cc +++ b/tests/fe/cell_similarity_dgp_monomial_10.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_01.cc b/tests/fe/cell_similarity_dgp_nonparametric_01.cc index ee39d1b6b8..b3b5b000cb 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_01.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_01.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_02.cc b/tests/fe/cell_similarity_dgp_nonparametric_02.cc index a0134814d9..a3501bae53 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_02.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_02.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_03.cc b/tests/fe/cell_similarity_dgp_nonparametric_03.cc index 6500977516..0772e8a034 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_03.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_03.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_04.cc b/tests/fe/cell_similarity_dgp_nonparametric_04.cc index 64b0a9ac86..e61a88ffa5 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_04.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_04.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_05.cc b/tests/fe/cell_similarity_dgp_nonparametric_05.cc index 1c1c46c0fa..3210727d5d 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_05.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_05.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_06.cc b/tests/fe/cell_similarity_dgp_nonparametric_06.cc index 2fd67e6ae0..0752d9eac1 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_06.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_06.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_07.cc b/tests/fe/cell_similarity_dgp_nonparametric_07.cc index e9fe3f6665..37c819df4f 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_07.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_07.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_08.cc b/tests/fe/cell_similarity_dgp_nonparametric_08.cc index c43ec01ae5..72dae1e699 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_08.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_08.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_09.cc b/tests/fe/cell_similarity_dgp_nonparametric_09.cc index 1d1b3071c0..81b20dc69d 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_09.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_09.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/cell_similarity_dgp_nonparametric_10.cc b/tests/fe/cell_similarity_dgp_nonparametric_10.cc index 23ef34ee0f..2ed99a3eae 100644 --- a/tests/fe/cell_similarity_dgp_nonparametric_10.cc +++ b/tests/fe/cell_similarity_dgp_nonparametric_10.cc @@ -168,11 +168,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test<2>(); // test<3>(); } diff --git a/tests/fe/check_derivatives.cc b/tests/fe/check_derivatives.cc index 39554e003d..d101aa7fa6 100644 --- a/tests/fe/check_derivatives.cc +++ b/tests/fe/check_derivatives.cc @@ -144,10 +144,8 @@ check1(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(1, 4); check1(1, 4); diff --git a/tests/fe/component_mask_01.cc b/tests/fe/component_mask_01.cc index 6e475a3bb1..f317420ed0 100644 --- a/tests/fe/component_mask_01.cc +++ b/tests/fe/component_mask_01.cc @@ -41,10 +41,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_02.cc b/tests/fe/component_mask_02.cc index 5e414f2896..17c77f880b 100644 --- a/tests/fe/component_mask_02.cc +++ b/tests/fe/component_mask_02.cc @@ -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(); } diff --git a/tests/fe/component_mask_03.cc b/tests/fe/component_mask_03.cc index 34ad1c68cd..9f20011f8b 100644 --- a/tests/fe/component_mask_03.cc +++ b/tests/fe/component_mask_03.cc @@ -44,10 +44,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_04.cc b/tests/fe/component_mask_04.cc index 04cc98a7b6..a37a9f861b 100644 --- a/tests/fe/component_mask_04.cc +++ b/tests/fe/component_mask_04.cc @@ -39,10 +39,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_05.cc b/tests/fe/component_mask_05.cc index a7da8ae660..0b65040e71 100644 --- a/tests/fe/component_mask_05.cc +++ b/tests/fe/component_mask_05.cc @@ -47,10 +47,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_06.cc b/tests/fe/component_mask_06.cc index d00bd531d8..eb8df8a454 100644 --- a/tests/fe/component_mask_06.cc +++ b/tests/fe/component_mask_06.cc @@ -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(); } diff --git a/tests/fe/component_mask_07.cc b/tests/fe/component_mask_07.cc index 8b91cefb68..1be791e40f 100644 --- a/tests/fe/component_mask_07.cc +++ b/tests/fe/component_mask_07.cc @@ -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(); } diff --git a/tests/fe/component_mask_08.cc b/tests/fe/component_mask_08.cc index be3c624f50..427e81d6d0 100644 --- a/tests/fe/component_mask_08.cc +++ b/tests/fe/component_mask_08.cc @@ -49,10 +49,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_09.cc b/tests/fe/component_mask_09.cc index 38403b025b..dd8d67d996 100644 --- a/tests/fe/component_mask_09.cc +++ b/tests/fe/component_mask_09.cc @@ -51,10 +51,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_10.cc b/tests/fe/component_mask_10.cc index 900728e978..8627043500 100644 --- a/tests/fe/component_mask_10.cc +++ b/tests/fe/component_mask_10.cc @@ -51,10 +51,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_11.cc b/tests/fe/component_mask_11.cc index 49ddd22827..c22a11e5fc 100644 --- a/tests/fe/component_mask_11.cc +++ b/tests/fe/component_mask_11.cc @@ -57,10 +57,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_12.cc b/tests/fe/component_mask_12.cc index dab5f097c9..80f174d3b9 100644 --- a/tests/fe/component_mask_12.cc +++ b/tests/fe/component_mask_12.cc @@ -73,10 +73,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_13.cc b/tests/fe/component_mask_13.cc index 9ed75bf19f..d4c683f661 100644 --- a/tests/fe/component_mask_13.cc +++ b/tests/fe/component_mask_13.cc @@ -59,10 +59,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); - test(); } diff --git a/tests/fe/component_mask_14.cc b/tests/fe/component_mask_14.cc index f80be40ec2..10d8ad2e81 100644 --- a/tests/fe/component_mask_14.cc +++ b/tests/fe/component_mask_14.cc @@ -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(); } diff --git a/tests/fe/derivatives.cc b/tests/fe/derivatives.cc index b22501926e..8fefc285e7 100644 --- a/tests/fe/derivatives.cc +++ b/tests/fe/derivatives.cc @@ -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>(); diff --git a/tests/fe/derivatives_bernstein.cc b/tests/fe/derivatives_bernstein.cc index 61f7875a85..3572a5ac6c 100644 --- a/tests/fe/derivatives_bernstein.cc +++ b/tests/fe/derivatives_bernstein.cc @@ -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>(); diff --git a/tests/fe/derivatives_face.cc b/tests/fe/derivatives_face.cc index 5b5494dc89..9d8c6d970d 100644 --- a/tests/fe/derivatives_face.cc +++ b/tests/fe/derivatives_face.cc @@ -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>(); diff --git a/tests/fe/element_constant_modes.cc b/tests/fe/element_constant_modes.cc index 84389f0db9..3df9d83545 100644 --- a/tests/fe/element_constant_modes.cc +++ b/tests/fe/element_constant_modes.cc @@ -81,8 +81,7 @@ test<1>() int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); test<1>(); test<2>(); diff --git a/tests/fe/fe_abf_gradient_divergence_theorem.cc b/tests/fe/fe_abf_gradient_divergence_theorem.cc index b42f9a0d68..c9567cd7f3 100644 --- a/tests/fe/fe_abf_gradient_divergence_theorem.cc +++ b/tests/fe/fe_abf_gradient_divergence_theorem.cc @@ -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; diff --git a/tests/fe/fe_br.cc b/tests/fe/fe_br.cc index 784eccb4da..9ab8642472 100644 --- a/tests/fe/fe_br.cc +++ b/tests/fe/fe_br.cc @@ -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); } diff --git a/tests/fe/fe_dgp_3rd_derivative_divergence_theorem.cc b/tests/fe/fe_dgp_3rd_derivative_divergence_theorem.cc index 5b6faa9967..2b4d330e3c 100644 --- a/tests/fe/fe_dgp_3rd_derivative_divergence_theorem.cc +++ b/tests/fe/fe_dgp_3rd_derivative_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_dgq_3rd_derivative_divergence_theorem.cc b/tests/fe/fe_dgq_3rd_derivative_divergence_theorem.cc index 711ec0f415..4b3caaf8c3 100644 --- a/tests/fe/fe_dgq_3rd_derivative_divergence_theorem.cc +++ b/tests/fe/fe_dgq_3rd_derivative_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_dgq_gradient_divergence_theorem.cc b/tests/fe/fe_dgq_gradient_divergence_theorem.cc index 21b8be5e4e..abba3ad3d8 100644 --- a/tests/fe/fe_dgq_gradient_divergence_theorem.cc +++ b/tests/fe/fe_dgq_gradient_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_dgq_hessian_divergence_theorem.cc b/tests/fe/fe_dgq_hessian_divergence_theorem.cc index e83c015e84..4182e1e567 100644 --- a/tests/fe/fe_dgq_hessian_divergence_theorem.cc +++ b/tests/fe/fe_dgq_hessian_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_enriched_01.cc b/tests/fe/fe_enriched_01.cc index f62210a150..e6e1be0e9a 100644 --- a/tests/fe/fe_enriched_01.cc +++ b/tests/fe/fe_enriched_01.cc @@ -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 diff --git a/tests/fe/fe_enriched_02.cc b/tests/fe/fe_enriched_02.cc index fef05c81df..6d40d14c74 100644 --- a/tests/fe/fe_enriched_02.cc +++ b/tests/fe/fe_enriched_02.cc @@ -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); diff --git a/tests/fe/fe_enriched_03.cc b/tests/fe/fe_enriched_03.cc index d3866ab5a4..1a9ab4b20c 100644 --- a/tests/fe/fe_enriched_03.cc +++ b/tests/fe/fe_enriched_03.cc @@ -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 diff --git a/tests/fe/fe_enriched_04.cc b/tests/fe/fe_enriched_04.cc index 6fca494a25..3efda2310f 100644 --- a/tests/fe/fe_enriched_04.cc +++ b/tests/fe/fe_enriched_04.cc @@ -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 diff --git a/tests/fe/fe_enriched_05.cc b/tests/fe/fe_enriched_05.cc index ab3e1ea05e..e2d271bbc3 100644 --- a/tests/fe/fe_enriched_05.cc +++ b/tests/fe/fe_enriched_05.cc @@ -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); diff --git a/tests/fe/fe_enriched_06.cc b/tests/fe/fe_enriched_06.cc index bf8535f0af..fa1acd207c 100644 --- a/tests/fe/fe_enriched_06.cc +++ b/tests/fe/fe_enriched_06.cc @@ -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 diff --git a/tests/fe/fe_enriched_07.cc b/tests/fe/fe_enriched_07.cc index 09a9ba0ff4..1bfd33c0c2 100644 --- a/tests/fe/fe_enriched_07.cc +++ b/tests/fe/fe_enriched_07.cc @@ -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); diff --git a/tests/fe/fe_enriched_08.cc b/tests/fe/fe_enriched_08.cc index eeacb3a3dd..b018f25cc3 100644 --- a/tests/fe/fe_enriched_08.cc +++ b/tests/fe/fe_enriched_08.cc @@ -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); diff --git a/tests/fe/fe_enriched_08a.cc b/tests/fe/fe_enriched_08a.cc index 5e3e6ecc45..3718565c33 100644 --- a/tests/fe/fe_enriched_08a.cc +++ b/tests/fe/fe_enriched_08a.cc @@ -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); diff --git a/tests/fe/fe_enriched_compare_to_fe_system.cc b/tests/fe/fe_enriched_compare_to_fe_system.cc index b762f0cc69..6eb84b1feb 100644 --- a/tests/fe/fe_enriched_compare_to_fe_system.cc +++ b/tests/fe/fe_enriched_compare_to_fe_system.cc @@ -281,10 +281,8 @@ test(const FiniteElement & 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); diff --git a/tests/fe/fe_enriched_compare_to_fe_system_2.cc b/tests/fe/fe_enriched_compare_to_fe_system_2.cc index d9adfba7ab..9ed07ad497 100644 --- a/tests/fe/fe_enriched_compare_to_fe_system_2.cc +++ b/tests/fe/fe_enriched_compare_to_fe_system_2.cc @@ -376,10 +376,8 @@ test(const FiniteElement & 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); diff --git a/tests/fe/fe_nedelec_gradient_divergence_theorem.cc b/tests/fe/fe_nedelec_gradient_divergence_theorem.cc index a393a5f54c..54a50e99b4 100644 --- a/tests/fe/fe_nedelec_gradient_divergence_theorem.cc +++ b/tests/fe/fe_nedelec_gradient_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_nedelec_hessian_divergence_theorem.cc b/tests/fe/fe_nedelec_hessian_divergence_theorem.cc index 9fc681e1e1..cb99a791f1 100644 --- a/tests/fe/fe_nedelec_hessian_divergence_theorem.cc +++ b/tests/fe/fe_nedelec_hessian_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_nedelec_sz_gradient_divergence_theorem.cc b/tests/fe/fe_nedelec_sz_gradient_divergence_theorem.cc index 848e21286d..68a3674e43 100644 --- a/tests/fe/fe_nedelec_sz_gradient_divergence_theorem.cc +++ b/tests/fe/fe_nedelec_sz_gradient_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_nothing.cc b/tests/fe/fe_nothing.cc index 472d21fbde..d3a4224a31 100644 --- a/tests/fe/fe_nothing.cc +++ b/tests/fe/fe_nothing.cc @@ -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); diff --git a/tests/fe/fe_project_2d.cc b/tests/fe/fe_project_2d.cc index ae249ea59c..62b389318a 100644 --- a/tests/fe/fe_project_2d.cc +++ b/tests/fe/fe_project_2d.cc @@ -256,10 +256,8 @@ test(const FiniteElement &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; diff --git a/tests/fe/fe_project_3d.cc b/tests/fe/fe_project_3d.cc index 9f603b775a..b3908be1c2 100644 --- a/tests/fe/fe_project_3d.cc +++ b/tests/fe/fe_project_3d.cc @@ -410,10 +410,8 @@ test(const FiniteElement &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; diff --git a/tests/fe/fe_q_3rd_derivative_divergence_theorem.cc b/tests/fe/fe_q_3rd_derivative_divergence_theorem.cc index a936e76613..0f7c7e7517 100644 --- a/tests/fe/fe_q_3rd_derivative_divergence_theorem.cc +++ b/tests/fe/fe_q_3rd_derivative_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_q_gradient_divergence_theorem.cc b/tests/fe/fe_q_gradient_divergence_theorem.cc index 7cf67b9801..012881d5e4 100644 --- a/tests/fe/fe_q_gradient_divergence_theorem.cc +++ b/tests/fe/fe_q_gradient_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_q_hessian_divergence_theorem.cc b/tests/fe/fe_q_hessian_divergence_theorem.cc index 68ed2b002a..b7286a4573 100644 --- a/tests/fe/fe_q_hessian_divergence_theorem.cc +++ b/tests/fe/fe_q_hessian_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_q_hierarchical_3rd_derivative_divergence_theorem.cc b/tests/fe/fe_q_hierarchical_3rd_derivative_divergence_theorem.cc index f439f16733..043c6536e8 100644 --- a/tests/fe/fe_q_hierarchical_3rd_derivative_divergence_theorem.cc +++ b/tests/fe/fe_q_hierarchical_3rd_derivative_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_rt_gradient_divergence_theorem.cc b/tests/fe/fe_rt_gradient_divergence_theorem.cc index 991300ca2f..171fd3d7f0 100644 --- a/tests/fe/fe_rt_gradient_divergence_theorem.cc +++ b/tests/fe/fe_rt_gradient_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_rt_hessian_divergence_theorem.cc b/tests/fe/fe_rt_hessian_divergence_theorem.cc index 868108c432..bd5fcf2b74 100644 --- a/tests/fe/fe_rt_hessian_divergence_theorem.cc +++ b/tests/fe/fe_rt_hessian_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_system_3rd_derivative_divergence_theorem.cc b/tests/fe/fe_system_3rd_derivative_divergence_theorem.cc index e73074878a..1e4ff96857 100644 --- a/tests/fe/fe_system_3rd_derivative_divergence_theorem.cc +++ b/tests/fe/fe_system_3rd_derivative_divergence_theorem.cc @@ -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); diff --git a/tests/fe/fe_tools.cc b/tests/fe/fe_tools.cc index 6fa20c2c46..6075479ffb 100644 --- a/tests/fe/fe_tools.cc +++ b/tests/fe/fe_tools.cc @@ -200,8 +200,7 @@ test_renumbering() int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); test_projection<1>(logfile); test_projection<2>(logfile); diff --git a/tests/fe/fe_tools_01.cc b/tests/fe/fe_tools_01.cc index 086cea2d11..636ff52e81 100644 --- a/tests/fe/fe_tools_01.cc +++ b/tests/fe/fe_tools_01.cc @@ -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)"); diff --git a/tests/fe/fe_values_extractor_01.cc b/tests/fe/fe_values_extractor_01.cc index 8da565eaa4..ef722d8cd7 100644 --- a/tests/fe/fe_values_extractor_01.cc +++ b/tests/fe/fe_values_extractor_01.cc @@ -26,11 +26,9 @@ int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(2); - deallog.attach(logfile); - { std::vector x; x.push_back(FEValuesExtractors::Scalar(42)); diff --git a/tests/fe/fe_values_function_manifold.cc b/tests/fe/fe_values_function_manifold.cc index 31e8988d57..e08ec30429 100644 --- a/tests/fe/fe_values_function_manifold.cc +++ b/tests/fe/fe_values_function_manifold.cc @@ -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) { diff --git a/tests/fe/fe_values_no_mapping.cc b/tests/fe/fe_values_no_mapping.cc index 7f75e572f9..12cd9d2c46 100644 --- a/tests/fe/fe_values_no_mapping.cc +++ b/tests/fe/fe_values_no_mapping.cc @@ -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>(); diff --git a/tests/fe/fe_values_view_01.cc b/tests/fe/fe_values_view_01.cc index 5fe7fc6936..9c91670ba6 100644 --- a/tests/fe/fe_values_view_01.cc +++ b/tests/fe/fe_values_view_01.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_02.cc b/tests/fe/fe_values_view_02.cc index 174f5436f8..3876bec6bd 100644 --- a/tests/fe/fe_values_view_02.cc +++ b/tests/fe/fe_values_view_02.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_03.cc b/tests/fe/fe_values_view_03.cc index 04be84d071..c9fddb271f 100644 --- a/tests/fe/fe_values_view_03.cc +++ b/tests/fe/fe_values_view_03.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_04.cc b/tests/fe/fe_values_view_04.cc index cb20b91a01..71349450cb 100644 --- a/tests/fe/fe_values_view_04.cc +++ b/tests/fe/fe_values_view_04.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_05.cc b/tests/fe/fe_values_view_05.cc index 8c07430b3a..ea7e346438 100644 --- a/tests/fe/fe_values_view_05.cc +++ b/tests/fe/fe_values_view_05.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_06.cc b/tests/fe/fe_values_view_06.cc index d64e902b0b..7a94c8ed66 100644 --- a/tests/fe/fe_values_view_06.cc +++ b/tests/fe/fe_values_view_06.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_07.cc b/tests/fe/fe_values_view_07.cc index 7a8644b5f0..3edbbb0b2c 100644 --- a/tests/fe/fe_values_view_07.cc +++ b/tests/fe/fe_values_view_07.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_08.cc b/tests/fe/fe_values_view_08.cc index 430470dc81..c6672347a5 100644 --- a/tests/fe/fe_values_view_08.cc +++ b/tests/fe/fe_values_view_08.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_09.cc b/tests/fe/fe_values_view_09.cc index eb5160772e..fba93b0b80 100644 --- a/tests/fe/fe_values_view_09.cc +++ b/tests/fe/fe_values_view_09.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_10.cc b/tests/fe/fe_values_view_10.cc index 2f7c5372af..d458788d2f 100644 --- a/tests/fe/fe_values_view_10.cc +++ b/tests/fe/fe_values_view_10.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_10_single_01.cc b/tests/fe/fe_values_view_10_single_01.cc index ae08ee47a1..3f62b6aca0 100644 --- a/tests/fe/fe_values_view_10_single_01.cc +++ b/tests/fe/fe_values_view_10_single_01.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_10_single_02.cc b/tests/fe/fe_values_view_10_single_02.cc index 1817cff5da..d12c5388b9 100644 --- a/tests/fe/fe_values_view_10_single_02.cc +++ b/tests/fe/fe_values_view_10_single_02.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_10_single_03.cc b/tests/fe/fe_values_view_10_single_03.cc index 73d83d6815..4d211b6f10 100644 --- a/tests/fe/fe_values_view_10_single_03.cc +++ b/tests/fe/fe_values_view_10_single_03.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_11.cc b/tests/fe/fe_values_view_11.cc index bff4488029..5468337e94 100644 --- a/tests/fe/fe_values_view_11.cc +++ b/tests/fe/fe_values_view_11.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_12.cc b/tests/fe/fe_values_view_12.cc index 7f9caf36c8..e71e558ec9 100644 --- a/tests/fe/fe_values_view_12.cc +++ b/tests/fe/fe_values_view_12.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_13.cc b/tests/fe/fe_values_view_13.cc index 6addbc0006..4f11d8bc15 100644 --- a/tests/fe/fe_values_view_13.cc +++ b/tests/fe/fe_values_view_13.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_14.cc b/tests/fe/fe_values_view_14.cc index cd388a8989..418d0411a3 100644 --- a/tests/fe/fe_values_view_14.cc +++ b/tests/fe/fe_values_view_14.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_15.cc b/tests/fe/fe_values_view_15.cc index d73f3c069d..828608e575 100644 --- a/tests/fe/fe_values_view_15.cc +++ b/tests/fe/fe_values_view_15.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_17.cc b/tests/fe/fe_values_view_17.cc index d3381eb46f..4f179c88a2 100644 --- a/tests/fe/fe_values_view_17.cc +++ b/tests/fe/fe_values_view_17.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_18.cc b/tests/fe/fe_values_view_18.cc index f43651332c..2ccbc247dd 100644 --- a/tests/fe/fe_values_view_18.cc +++ b/tests/fe/fe_values_view_18.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_19.cc b/tests/fe/fe_values_view_19.cc index d7c83cacc9..d39fb0c8fc 100644 --- a/tests/fe/fe_values_view_19.cc +++ b/tests/fe/fe_values_view_19.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_20.cc b/tests/fe/fe_values_view_20.cc index 4e47d5e470..8f22e12114 100644 --- a/tests/fe/fe_values_view_20.cc +++ b/tests/fe/fe_values_view_20.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_21.cc b/tests/fe/fe_values_view_21.cc index 4769ec92c6..459a8c699f 100644 --- a/tests/fe/fe_values_view_21.cc +++ b/tests/fe/fe_values_view_21.cc @@ -211,11 +211,9 @@ MixedElastoPlasticity::run() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); - MixedElastoPlasticity<3> elasto_plasticity(1); elasto_plasticity.run(); } diff --git a/tests/fe/fe_values_view_21_nonsymmetric.cc b/tests/fe/fe_values_view_21_nonsymmetric.cc index 66021e8a17..62d6f41738 100644 --- a/tests/fe/fe_values_view_21_nonsymmetric.cc +++ b/tests/fe/fe_values_view_21_nonsymmetric.cc @@ -212,11 +212,9 @@ MixedElastoPlasticity::run() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); - MixedElastoPlasticity<3> elasto_plasticity(1); elasto_plasticity.run(); } diff --git a/tests/fe/fe_values_view_22.cc b/tests/fe/fe_values_view_22.cc index 9461c81244..c29ebe1383 100644 --- a/tests/fe/fe_values_view_22.cc +++ b/tests/fe/fe_values_view_22.cc @@ -249,11 +249,9 @@ MixedElastoPlasticity::run() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); - MixedElastoPlasticity<3> elasto_plasticity(1); elasto_plasticity.run(); diff --git a/tests/fe/fe_values_view_23.cc b/tests/fe/fe_values_view_23.cc index 0e0c045acf..31ef04c071 100644 --- a/tests/fe/fe_values_view_23.cc +++ b/tests/fe/fe_values_view_23.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_23_nonsymmetric.cc b/tests/fe/fe_values_view_23_nonsymmetric.cc index 897e16a42b..094da04ce1 100644 --- a/tests/fe/fe_values_view_23_nonsymmetric.cc +++ b/tests/fe/fe_values_view_23_nonsymmetric.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_24.cc b/tests/fe/fe_values_view_24.cc index cfacdfd792..6ba5e5322a 100644 --- a/tests/fe/fe_values_view_24.cc +++ b/tests/fe/fe_values_view_24.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_24_nonsymmetric.cc b/tests/fe/fe_values_view_24_nonsymmetric.cc index fe61189e06..71e73f6a9c 100644 --- a/tests/fe/fe_values_view_24_nonsymmetric.cc +++ b/tests/fe/fe_values_view_24_nonsymmetric.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_25.cc b/tests/fe/fe_values_view_25.cc index f04b648355..014f88d32b 100644 --- a/tests/fe/fe_values_view_25.cc +++ b/tests/fe/fe_values_view_25.cc @@ -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>(); diff --git a/tests/fe/fe_values_view_25_nonsymmetric.cc b/tests/fe/fe_values_view_25_nonsymmetric.cc index 50a3b2b13d..d945c90bbb 100644 --- a/tests/fe/fe_values_view_25_nonsymmetric.cc +++ b/tests/fe/fe_values_view_25_nonsymmetric.cc @@ -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>(); diff --git a/tests/fe/fe_values_view_25b_nonsymmetric.cc b/tests/fe/fe_values_view_25b_nonsymmetric.cc index 10e8c75d1d..a85fed70f2 100644 --- a/tests/fe/fe_values_view_25b_nonsymmetric.cc +++ b/tests/fe/fe_values_view_25b_nonsymmetric.cc @@ -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>(); diff --git a/tests/fe/fe_values_view_26.cc b/tests/fe/fe_values_view_26.cc index cd75c96574..b5f76d1016 100644 --- a/tests/fe/fe_values_view_26.cc +++ b/tests/fe/fe_values_view_26.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_27.cc b/tests/fe/fe_values_view_27.cc index 1c116538f2..fe92a7d628 100644 --- a/tests/fe/fe_values_view_27.cc +++ b/tests/fe/fe_values_view_27.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_28.cc b/tests/fe/fe_values_view_28.cc index 805a8321ed..73416c79e2 100644 --- a/tests/fe/fe_values_view_28.cc +++ b/tests/fe/fe_values_view_28.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_29.cc b/tests/fe/fe_values_view_29.cc index 78ee65b918..75686a2446 100644 --- a/tests/fe/fe_values_view_29.cc +++ b/tests/fe/fe_values_view_29.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_30.cc b/tests/fe/fe_values_view_30.cc index 7b884a22be..3796c427f1 100644 --- a/tests/fe/fe_values_view_30.cc +++ b/tests/fe/fe_values_view_30.cc @@ -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>(); } diff --git a/tests/fe/fe_values_view_invalid_01.cc b/tests/fe/fe_values_view_invalid_01.cc index 7a5200e6da..9ab0303376 100644 --- a/tests/fe/fe_values_view_invalid_01.cc +++ b/tests/fe/fe_values_view_invalid_01.cc @@ -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>(); diff --git a/tests/fe/fe_values_view_invalid_02.cc b/tests/fe/fe_values_view_invalid_02.cc index 257e8ad784..ceecce7080 100644 --- a/tests/fe/fe_values_view_invalid_02.cc +++ b/tests/fe/fe_values_view_invalid_02.cc @@ -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>(); diff --git a/tests/fe/fe_values_view_invalid_03.cc b/tests/fe/fe_values_view_invalid_03.cc index 8c27619dcf..21dd00b9c7 100644 --- a/tests/fe/fe_values_view_invalid_03.cc +++ b/tests/fe/fe_values_view_invalid_03.cc @@ -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>(); diff --git a/tests/fe/fe_values_view_invalid_03_nonsymmetric.cc b/tests/fe/fe_values_view_invalid_03_nonsymmetric.cc index 3ce1e89a08..705bd2e104 100644 --- a/tests/fe/fe_values_view_invalid_03_nonsymmetric.cc +++ b/tests/fe/fe_values_view_invalid_03_nonsymmetric.cc @@ -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>(); diff --git a/tests/fe/fe_values_view_tensor_01.cc b/tests/fe/fe_values_view_tensor_01.cc index eb9e7b4ee7..4a437d0491 100644 --- a/tests/fe/fe_values_view_tensor_01.cc +++ b/tests/fe/fe_values_view_tensor_01.cc @@ -244,10 +244,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); - check(); } diff --git a/tests/fe/interpolate_nedelec.cc b/tests/fe/interpolate_nedelec.cc index 0af6f0c4b2..3f34c3b92a 100644 --- a/tests/fe/interpolate_nedelec.cc +++ b/tests/fe/interpolate_nedelec.cc @@ -43,8 +43,7 @@ check1(const Function &f, const unsigned int degree) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); { Q1WedgeFunction<2, 0, 2> w20; diff --git a/tests/fe/interpolate_q1.cc b/tests/fe/interpolate_q1.cc index 17e3e0b524..f79c24a6b6 100644 --- a/tests/fe/interpolate_q1.cc +++ b/tests/fe/interpolate_q1.cc @@ -77,8 +77,7 @@ check_dg_lobatto(const Function &f, const unsigned int degree) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); Q1WedgeFunction<1, 1> w1; check(w1, 1); diff --git a/tests/fe/interpolate_q_bubbles.cc b/tests/fe/interpolate_q_bubbles.cc index 19048d984c..64107c077c 100644 --- a/tests/fe/interpolate_q_bubbles.cc +++ b/tests/fe/interpolate_q_bubbles.cc @@ -40,8 +40,7 @@ check_q_bubbles(const Function &f, const unsigned int degree) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); Q1WedgeFunction<1, 1> w1; check_q_bubbles(w1, 1); diff --git a/tests/fe/interpolate_q_dg0.cc b/tests/fe/interpolate_q_dg0.cc index 2f0d927b85..8b06ce0c3a 100644 --- a/tests/fe/interpolate_q_dg0.cc +++ b/tests/fe/interpolate_q_dg0.cc @@ -40,8 +40,7 @@ check_q_dg0(const Function &f, const unsigned int degree) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); Q1WedgeFunction<1, 1> w1; check_q_dg0(w1, 1); diff --git a/tests/fe/interpolate_q_iso_q1.cc b/tests/fe/interpolate_q_iso_q1.cc index 3156f6810b..9853ae65a9 100644 --- a/tests/fe/interpolate_q_iso_q1.cc +++ b/tests/fe/interpolate_q_iso_q1.cc @@ -42,8 +42,7 @@ check(const Function &f, const unsigned int degree) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); Q1WedgeFunction<1, 1> w1; check(w1, 1); diff --git a/tests/fe/interpolate_q_system_mixed_01.cc b/tests/fe/interpolate_q_system_mixed_01.cc index 0aa00e2757..ad97244c74 100644 --- a/tests/fe/interpolate_q_system_mixed_01.cc +++ b/tests/fe/interpolate_q_system_mixed_01.cc @@ -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>(); diff --git a/tests/fe/interpolate_rt.cc b/tests/fe/interpolate_rt.cc index 2f434a2855..9d63b2f058 100644 --- a/tests/fe/interpolate_rt.cc +++ b/tests/fe/interpolate_rt.cc @@ -43,8 +43,7 @@ check1(const Function &f, const unsigned int degree) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); // Q1WedgeFunction<1,1,2> w1; // check1(w1,1,2); diff --git a/tests/fe/interpolate_rtn.cc b/tests/fe/interpolate_rtn.cc index 494120bf83..e926dc1251 100644 --- a/tests/fe/interpolate_rtn.cc +++ b/tests/fe/interpolate_rtn.cc @@ -43,8 +43,7 @@ check1(const Function &f, const unsigned int degree) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); // Q1WedgeFunction<1,1,2> w1; // check1(w1,1,2); diff --git a/tests/fe/interpolate_system.cc b/tests/fe/interpolate_system.cc index f8aed58b3f..7dad82287a 100644 --- a/tests/fe/interpolate_system.cc +++ b/tests/fe/interpolate_system.cc @@ -69,8 +69,7 @@ check3(const Function &f, int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); Q1WedgeFunction<1, 1, 2> w1; check1(w1, 1, 2); diff --git a/tests/fe/jacobians.cc b/tests/fe/jacobians.cc index 83fa84a876..3a8086fff6 100644 --- a/tests/fe/jacobians.cc +++ b/tests/fe/jacobians.cc @@ -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>(); diff --git a/tests/fe/jacobians_face.cc b/tests/fe/jacobians_face.cc index df1a94f7ed..ae40ba3854 100644 --- a/tests/fe/jacobians_face.cc +++ b/tests/fe/jacobians_face.cc @@ -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>(); diff --git a/tests/fe/jacobians_face_cartesian.cc b/tests/fe/jacobians_face_cartesian.cc index 5e28e3a556..557427b551 100644 --- a/tests/fe/jacobians_face_cartesian.cc +++ b/tests/fe/jacobians_face_cartesian.cc @@ -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>(); diff --git a/tests/fe/jacobians_face_fe_field.cc b/tests/fe/jacobians_face_fe_field.cc index 6e4218efea..6639c06de8 100644 --- a/tests/fe/jacobians_face_fe_field.cc +++ b/tests/fe/jacobians_face_fe_field.cc @@ -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>(); diff --git a/tests/fe/p1nc_01.cc b/tests/fe/p1nc_01.cc index 387a71f99b..cda834088d 100644 --- a/tests/fe/p1nc_01.cc +++ b/tests/fe/p1nc_01.cc @@ -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>(); diff --git a/tests/fe/p1nc_02.cc b/tests/fe/p1nc_02.cc index 7b88c36b90..ab2124719f 100644 --- a/tests/fe/p1nc_02.cc +++ b/tests/fe/p1nc_02.cc @@ -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>(); diff --git a/tests/fe/p1nc_03.cc b/tests/fe/p1nc_03.cc index 1365a2c121..9beaaed4e4 100644 --- a/tests/fe/p1nc_03.cc +++ b/tests/fe/p1nc_03.cc @@ -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>(); diff --git a/tests/fe/p1nc_04.cc b/tests/fe/p1nc_04.cc index 2a1457123f..56f1c44377 100644 --- a/tests/fe/p1nc_04.cc +++ b/tests/fe/p1nc_04.cc @@ -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>(); diff --git a/tests/fe/p1nc_05.cc b/tests/fe/p1nc_05.cc index 380b28722b..fac57ea35f 100644 --- a/tests/fe/p1nc_05.cc +++ b/tests/fe/p1nc_05.cc @@ -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>(); diff --git a/tests/fe/p1nc_06.cc b/tests/fe/p1nc_06.cc index 383ac23aac..31ec5c9f6b 100644 --- a/tests/fe/p1nc_06.cc +++ b/tests/fe/p1nc_06.cc @@ -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>(); diff --git a/tests/fe/p1nc_07.cc b/tests/fe/p1nc_07.cc index bfaeafb9cf..4a22f055b1 100644 --- a/tests/fe/p1nc_07.cc +++ b/tests/fe/p1nc_07.cc @@ -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>(); diff --git a/tests/fe/p1nc_08.cc b/tests/fe/p1nc_08.cc index 98259800d9..39be71e63b 100644 --- a/tests/fe/p1nc_08.cc +++ b/tests/fe/p1nc_08.cc @@ -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>(); diff --git a/tests/fe/rt_covariant.cc b/tests/fe/rt_covariant.cc index e42e0c2493..a3563266bf 100644 --- a/tests/fe/rt_covariant.cc +++ b/tests/fe/rt_covariant.cc @@ -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>(); } diff --git a/tests/fe/rt_hessian.cc b/tests/fe/rt_hessian.cc index 287442fb20..e6c21676c2 100644 --- a/tests/fe/rt_hessian.cc +++ b/tests/fe/rt_hessian.cc @@ -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>(); } diff --git a/tests/fe/rtdiff.cc b/tests/fe/rtdiff.cc index d1c5badf5e..ccd516652e 100644 --- a/tests/fe/rtdiff.cc +++ b/tests/fe/rtdiff.cc @@ -154,8 +154,7 @@ test(unsigned int degree) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); test<2>(0); test<2>(1); diff --git a/tests/fe/rtn_1.cc b/tests/fe/rtn_1.cc index 2552f08aa2..b6821e7705 100644 --- a/tests/fe/rtn_1.cc +++ b/tests/fe/rtn_1.cc @@ -140,8 +140,7 @@ check_face_support_points(const FiniteElement &fe) int main() { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); FE_RaviartThomasNodal<2> e20(0); check_support_points(e20); diff --git a/tests/lac/bicgstab_early.cc b/tests/lac/bicgstab_early.cc index 027484810b..6163fe2892 100644 --- a/tests/lac/bicgstab_early.cc +++ b/tests/lac/bicgstab_early.cc @@ -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); diff --git a/tests/lac/bicgstab_large.cc b/tests/lac/bicgstab_large.cc index 84de731469..154935a036 100644 --- a/tests/lac/bicgstab_large.cc +++ b/tests/lac/bicgstab_large.cc @@ -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(); diff --git a/tests/lac/block_matrices_04.cc b/tests/lac/block_matrices_04.cc index be627fd001..dd1d8dd6d3 100644 --- a/tests/lac/block_matrices_04.cc +++ b/tests/lac/block_matrices_04.cc @@ -384,11 +384,9 @@ LaplaceProblem::run() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(2); - deallog.attach(logfile); - // vector of solution vectors std::vector> solutions; diff --git a/tests/lac/block_minres.cc b/tests/lac/block_minres.cc index ca5798c0a8..ed9aa8b225 100644 --- a/tests/lac/block_minres.cc +++ b/tests/lac/block_minres.cc @@ -30,9 +30,8 @@ int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(2); - deallog.attach(logfile); // assemble a 2x2 block identity diff --git a/tests/lac/block_vector_iterator.cc b/tests/lac/block_vector_iterator.cc index 16d2ec4029..7cc1919e60 100644 --- a/tests/lac/block_vector_iterator.cc +++ b/tests/lac/block_vector_iterator.cc @@ -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 { diff --git a/tests/lac/block_vector_vector_assign.cc b/tests/lac/block_vector_vector_assign.cc index ec31211b83..e301760fb3 100644 --- a/tests/lac/block_vector_vector_assign.cc +++ b/tests/lac/block_vector_vector_assign.cc @@ -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 { diff --git a/tests/lac/complex_block_vector_iterator.cc b/tests/lac/complex_block_vector_iterator.cc index c19b984fa9..6a3639f742 100644 --- a/tests/lac/complex_block_vector_iterator.cc +++ b/tests/lac/complex_block_vector_iterator.cc @@ -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 { diff --git a/tests/lac/complex_block_vector_vector_assign.cc b/tests/lac/complex_block_vector_vector_assign.cc index 13b04cb449..e6f5e9d8c6 100644 --- a/tests/lac/complex_block_vector_vector_assign.cc +++ b/tests/lac/complex_block_vector_vector_assign.cc @@ -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 { diff --git a/tests/lac/constraint_graph_zero.cc b/tests/lac/constraint_graph_zero.cc index 98bfdc0058..f695b7a546 100644 --- a/tests/lac/constraint_graph_zero.cc +++ b/tests/lac/constraint_graph_zero.cc @@ -49,10 +49,8 @@ test() int main() { - std::ofstream logfile("output"); - logfile.precision(2); - - deallog.attach(logfile); + initlog(); + deallog << std::setprecision(2); test(); diff --git a/tests/lac/constraint_matrix_copy_01.cc b/tests/lac/constraint_matrix_copy_01.cc index 63730c59ad..29e26dc105 100644 --- a/tests/lac/constraint_matrix_copy_01.cc +++ b/tests/lac/constraint_matrix_copy_01.cc @@ -54,10 +54,8 @@ test() int main() { - std::ofstream logfile("output"); - logfile.precision(2); - - deallog.attach(logfile); + initlog(); + deallog << std::setprecision(2); test(); diff --git a/tests/lac/constraints_01.cc b/tests/lac/constraints_01.cc index 89e4f50402..f8415d13e2 100644 --- a/tests/lac/constraints_01.cc +++ b/tests/lac/constraints_01.cc @@ -57,10 +57,8 @@ test() int main() { - std::ofstream logfile("output"); - logfile.precision(2); - - deallog.attach(logfile); + initlog(); + deallog << std::setprecision(2); test(); diff --git a/tests/lac/constraints_02.cc b/tests/lac/constraints_02.cc index 5fe3f0a918..bcc00930ab 100644 --- a/tests/lac/constraints_02.cc +++ b/tests/lac/constraints_02.cc @@ -53,10 +53,8 @@ test() int main() { - std::ofstream logfile("output"); - logfile.precision(2); - - deallog.attach(logfile); + initlog(); + deallog << std::setprecision(2); test(); diff --git a/tests/lac/constraints_inhomogeneous.cc b/tests/lac/constraints_inhomogeneous.cc index a4eac8c302..badabb1a69 100644 --- a/tests/lac/constraints_inhomogeneous.cc +++ b/tests/lac/constraints_inhomogeneous.cc @@ -58,10 +58,8 @@ test() int main() { - std::ofstream logfile("output"); - logfile.precision(2); - - deallog.attach(logfile); + initlog(); + deallog << std::setprecision(2); test(); diff --git a/tests/lac/constraints_move.cc b/tests/lac/constraints_move.cc index 964a96245a..c0fbf476e0 100644 --- a/tests/lac/constraints_move.cc +++ b/tests/lac/constraints_move.cc @@ -22,10 +22,8 @@ int main() { - std::ofstream logfile("output"); - logfile.precision(2); - - deallog.attach(logfile); + initlog(); + deallog << std::setprecision(2); AffineConstraints constraints; unsigned int IDs[] = {1, 2, 3, 5, 8, 13, 21}; diff --git a/tests/lac/constraints_zero.cc b/tests/lac/constraints_zero.cc index 7721b53f81..e7caf49b00 100644 --- a/tests/lac/constraints_zero.cc +++ b/tests/lac/constraints_zero.cc @@ -49,10 +49,8 @@ test() int main() { - std::ofstream logfile("output"); - logfile.precision(2); - - deallog.attach(logfile); + initlog(); + deallog << std::setprecision(2); test(); diff --git a/tests/lac/constraints_zero_condense.cc b/tests/lac/constraints_zero_condense.cc index 95b1a1c860..1b00454248 100644 --- a/tests/lac/constraints_zero_condense.cc +++ b/tests/lac/constraints_zero_condense.cc @@ -68,11 +68,9 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(2); - deallog.attach(logfile); - test(); deallog << "OK" << std::endl; diff --git a/tests/lac/constraints_zero_merge.cc b/tests/lac/constraints_zero_merge.cc index b3ac4a38e7..c77aa6a38c 100644 --- a/tests/lac/constraints_zero_merge.cc +++ b/tests/lac/constraints_zero_merge.cc @@ -56,10 +56,8 @@ test() int main() { - std::ofstream logfile("output"); - logfile.precision(2); - - deallog.attach(logfile); + initlog(); + deallog << std::setprecision(2); test(); diff --git a/tests/lac/copy_transposed.cc b/tests/lac/copy_transposed.cc index 8ccbae4dbc..bcb04cb683 100644 --- a/tests/lac/copy_transposed.cc +++ b/tests/lac/copy_transposed.cc @@ -27,10 +27,8 @@ 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 ez(5, 4); ez.set(0, 0, 2.); diff --git a/tests/lac/filtered_matrix_06.cc b/tests/lac/filtered_matrix_06.cc index 86a32f0017..4df8737b31 100644 --- a/tests/lac/filtered_matrix_06.cc +++ b/tests/lac/filtered_matrix_06.cc @@ -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>(); diff --git a/tests/lac/gmres_eigenvalues.cc b/tests/lac/gmres_eigenvalues.cc index a375e36593..db1ae815ca 100644 --- a/tests/lac/gmres_eigenvalues.cc +++ b/tests/lac/gmres_eigenvalues.cc @@ -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(0); diff --git a/tests/lac/gmres_reorthogonalize_02.cc b/tests/lac/gmres_reorthogonalize_02.cc index 0dd4a49aa0..ca3ddcb259 100644 --- a/tests/lac/gmres_reorthogonalize_02.cc +++ b/tests/lac/gmres_reorthogonalize_02.cc @@ -58,9 +58,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); deallog.push("double"); test(); diff --git a/tests/lac/gmres_reorthogonalize_03.cc b/tests/lac/gmres_reorthogonalize_03.cc index c175e045f3..f0765fe856 100644 --- a/tests/lac/gmres_reorthogonalize_03.cc +++ b/tests/lac/gmres_reorthogonalize_03.cc @@ -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(0); diff --git a/tests/lac/gmres_reorthogonalize_04.cc b/tests/lac/gmres_reorthogonalize_04.cc index 76bceaa6b7..c31f18ed08 100644 --- a/tests/lac/gmres_reorthogonalize_04.cc +++ b/tests/lac/gmres_reorthogonalize_04.cc @@ -87,9 +87,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); deallog.push("double"); test(); diff --git a/tests/lac/gmres_reorthogonalize_05.cc b/tests/lac/gmres_reorthogonalize_05.cc index c3e1a1e071..c0c9367f12 100644 --- a/tests/lac/gmres_reorthogonalize_05.cc +++ b/tests/lac/gmres_reorthogonalize_05.cc @@ -85,9 +85,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); deallog.push("double"); test(); diff --git a/tests/lac/householder.cc b/tests/lac/householder.cc index 737fb17bbf..7d2e5dadb1 100644 --- a/tests/lac/householder.cc +++ b/tests/lac/householder.cc @@ -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 A(4, 3, &rect[0][0]); Householder H(A); diff --git a/tests/lac/identity_matrix_01.cc b/tests/lac/identity_matrix_01.cc index 4d009dafba..2be68f9c5c 100644 --- a/tests/lac/identity_matrix_01.cc +++ b/tests/lac/identity_matrix_01.cc @@ -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(); check_vmult(); diff --git a/tests/lac/identity_matrix_02.cc b/tests/lac/identity_matrix_02.cc index e9ae0259c5..844617c3f6 100644 --- a/tests/lac/identity_matrix_02.cc +++ b/tests/lac/identity_matrix_02.cc @@ -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(); check_vmult(); diff --git a/tests/lac/identity_matrix_03.cc b/tests/lac/identity_matrix_03.cc index 49f13322c8..4c90e6c8b4 100644 --- a/tests/lac/identity_matrix_03.cc +++ b/tests/lac/identity_matrix_03.cc @@ -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(); check_vmult(); diff --git a/tests/lac/identity_matrix_04.cc b/tests/lac/identity_matrix_04.cc index 07ba822122..1d331eb18c 100644 --- a/tests/lac/identity_matrix_04.cc +++ b/tests/lac/identity_matrix_04.cc @@ -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(); check_vmult(); diff --git a/tests/lac/identity_matrix_05.cc b/tests/lac/identity_matrix_05.cc index 023dd27286..3230473b71 100644 --- a/tests/lac/identity_matrix_05.cc +++ b/tests/lac/identity_matrix_05.cc @@ -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(); check_vmult(); diff --git a/tests/lac/identity_matrix_06.cc b/tests/lac/identity_matrix_06.cc index 3a46d6f0af..bbf9571447 100644 --- a/tests/lac/identity_matrix_06.cc +++ b/tests/lac/identity_matrix_06.cc @@ -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(); check_vmult(); diff --git a/tests/lac/matrices.cc b/tests/lac/matrices.cc index b40ec5367c..928f23a84e 100644 --- a/tests/lac/matrices.cc +++ b/tests/lac/matrices.cc @@ -27,10 +27,8 @@ 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 ez(5, 4); ez.set(0, 0, 2.); diff --git a/tests/lac/matrices_ez.cc b/tests/lac/matrices_ez.cc index 881f237f8c..3c41414cc2 100644 --- a/tests/lac/matrices_ez.cc +++ b/tests/lac/matrices_ez.cc @@ -27,10 +27,8 @@ 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 ez(5, 4); ez.set(0, 0, 2.); diff --git a/tests/lac/matrices_ez_add.cc b/tests/lac/matrices_ez_add.cc index dbb7927d90..2646ccdcba 100644 --- a/tests/lac/matrices_ez_add.cc +++ b/tests/lac/matrices_ez_add.cc @@ -27,10 +27,8 @@ 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 ez(5, 4); ez.set(0, 0, 2.); diff --git a/tests/lac/matrices_lapack.cc b/tests/lac/matrices_lapack.cc index 57e1beeab1..704a7ee727 100644 --- a/tests/lac/matrices_lapack.cc +++ b/tests/lac/matrices_lapack.cc @@ -27,10 +27,8 @@ 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 ez(5, 4); ez.set(0, 0, 2.); diff --git a/tests/lac/matrices_lapack_fill.cc b/tests/lac/matrices_lapack_fill.cc index 823e967929..da4997f9b4 100644 --- a/tests/lac/matrices_lapack_fill.cc +++ b/tests/lac/matrices_lapack_fill.cc @@ -27,10 +27,8 @@ 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 ez(5, 4); ez.set(0, 0, 2.); diff --git a/tests/lac/print_formatted_ez_01.cc b/tests/lac/print_formatted_ez_01.cc index 12ff1933ab..42e219e914 100644 --- a/tests/lac/print_formatted_ez_01.cc +++ b/tests/lac/print_formatted_ez_01.cc @@ -24,10 +24,8 @@ 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 ez(5, 4); ez.set(0, 0, 2.); diff --git a/tests/lac/solver_02.cc b/tests/lac/solver_02.cc index a046cc8136..38c64137fd 100644 --- a/tests/lac/solver_02.cc +++ b/tests/lac/solver_02.cc @@ -60,9 +60,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); test>>(); test>>(); diff --git a/tests/lac/solver_control_01.cc b/tests/lac/solver_control_01.cc index ff4ab12431..06a0ec171b 100644 --- a/tests/lac/solver_control_01.cc +++ b/tests/lac/solver_control_01.cc @@ -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; diff --git a/tests/lac/solver_control_02.cc b/tests/lac/solver_control_02.cc index 34b1852616..27b092e7a1 100644 --- a/tests/lac/solver_control_02.cc +++ b/tests/lac/solver_control_02.cc @@ -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); { diff --git a/tests/lac/solver_control_03.cc b/tests/lac/solver_control_03.cc index 29e21167cd..00194c22d1 100644 --- a/tests/lac/solver_control_03.cc +++ b/tests/lac/solver_control_03.cc @@ -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); { diff --git a/tests/lac/solver_control_04.cc b/tests/lac/solver_control_04.cc index c84795d262..b114635378 100644 --- a/tests/lac/solver_control_04.cc +++ b/tests/lac/solver_control_04.cc @@ -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; diff --git a/tests/lac/solver_control_05.cc b/tests/lac/solver_control_05.cc index 872af2a4a5..d6715d13f7 100644 --- a/tests/lac/solver_control_05.cc +++ b/tests/lac/solver_control_05.cc @@ -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); diff --git a/tests/lac/solver_control_06.cc b/tests/lac/solver_control_06.cc index 87e2996405..af3a41d379 100644 --- a/tests/lac/solver_control_06.cc +++ b/tests/lac/solver_control_06.cc @@ -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); diff --git a/tests/lac/solver_selector_02.cc b/tests/lac/solver_selector_02.cc index bcbb6d71f6..e3874205d0 100644 --- a/tests/lac/solver_selector_02.cc +++ b/tests/lac/solver_selector_02.cc @@ -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); diff --git a/tests/lac/solver_signals.cc b/tests/lac/solver_signals.cc index 87ad383f6c..d82ccb01a8 100644 --- a/tests/lac/solver_signals.cc +++ b/tests/lac/solver_signals.cc @@ -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); diff --git a/tests/lac/sparse_matrices.cc b/tests/lac/sparse_matrices.cc index aa5302a95f..2d937a601e 100644 --- a/tests/lac/sparse_matrices.cc +++ b/tests/lac/sparse_matrices.cc @@ -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; diff --git a/tests/lac/utilities_03.cc b/tests/lac/utilities_03.cc index bca8db0aef..b578216f55 100644 --- a/tests/lac/utilities_03.cc +++ b/tests/lac/utilities_03.cc @@ -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: diff --git a/tests/lac/utilities_04.cc b/tests/lac/utilities_04.cc index 0332537a69..6021ecdcd1 100644 --- a/tests/lac/utilities_04.cc +++ b/tests/lac/utilities_04.cc @@ -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 diff --git a/tests/lac/utilities_05.cc b/tests/lac/utilities_05.cc index 9ed3dacf55..a99d6004f4 100644 --- a/tests/lac/utilities_05.cc +++ b/tests/lac/utilities_05.cc @@ -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| diff --git a/tests/lac/vector_accumulation_02.cc b/tests/lac/vector_accumulation_02.cc index bd2e243478..9180ad3200 100644 --- a/tests/lac/vector_accumulation_02.cc +++ b/tests/lac/vector_accumulation_02.cc @@ -70,9 +70,8 @@ check_norms() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(2); - deallog.attach(logfile); check_norms(); check_norms(); diff --git a/tests/mpi/distort_random_01.cc b/tests/mpi/distort_random_01.cc index 6ae49b78fe..94b2d8eb8b 100644 --- a/tests/mpi/distort_random_01.cc +++ b/tests/mpi/distort_random_01.cc @@ -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); diff --git a/tests/mpi/distort_random_02.cc b/tests/mpi/distort_random_02.cc index f13213c78e..507f0b6b91 100644 --- a/tests/mpi/distort_random_02.cc +++ b/tests/mpi/distort_random_02.cc @@ -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); diff --git a/tests/mpi/p4est_save_03.cc b/tests/mpi/p4est_save_03.cc index 0372c0007c..60f058ecd2 100644 --- a/tests/mpi/p4est_save_03.cc +++ b/tests/mpi/p4est_save_03.cc @@ -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>(); diff --git a/tests/mpi/parallel_vector_03a.cc b/tests/mpi/parallel_vector_03a.cc index aad1ca498b..b7aaa5bb3b 100644 --- a/tests/mpi/parallel_vector_03a.cc +++ b/tests/mpi/parallel_vector_03a.cc @@ -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(); diff --git a/tests/mpi/parallel_vector_24.cc b/tests/mpi/parallel_vector_24.cc index 9d510bcd28..9fdb1dc8f7 100644 --- a/tests/mpi/parallel_vector_24.cc +++ b/tests/mpi/parallel_vector_24.cc @@ -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(); diff --git a/tests/mpi/refine_and_coarsen_fixed_number_07.cc b/tests/mpi/refine_and_coarsen_fixed_number_07.cc index 4ecf679d8e..ca7c127f37 100644 --- a/tests/mpi/refine_and_coarsen_fixed_number_07.cc +++ b/tests/mpi/refine_and_coarsen_fixed_number_07.cc @@ -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); } diff --git a/tests/mpi/renumber_cuthill_mckee.cc b/tests/mpi/renumber_cuthill_mckee.cc index 4bc6810960..b4ef68f8fc 100644 --- a/tests/mpi/renumber_cuthill_mckee.cc +++ b/tests/mpi/renumber_cuthill_mckee.cc @@ -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>(); diff --git a/tests/mpi/renumber_cuthill_mckee_02.cc b/tests/mpi/renumber_cuthill_mckee_02.cc index 29ab2a870c..a8c4c356f7 100644 --- a/tests/mpi/renumber_cuthill_mckee_02.cc +++ b/tests/mpi/renumber_cuthill_mckee_02.cc @@ -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>(); diff --git a/tests/mpi/renumber_z_order_01.cc b/tests/mpi/renumber_z_order_01.cc index 9aab5f5576..580f05c9bd 100644 --- a/tests/mpi/renumber_z_order_01.cc +++ b/tests/mpi/renumber_z_order_01.cc @@ -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>(); diff --git a/tests/mpi/renumber_z_order_02.cc b/tests/mpi/renumber_z_order_02.cc index 286a9f6ea4..42427dc5d1 100644 --- a/tests/mpi/renumber_z_order_02.cc +++ b/tests/mpi/renumber_z_order_02.cc @@ -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>(); diff --git a/tests/mpi/torus.cc b/tests/mpi/torus.cc index cf1a0e873a..ff026ac5ef 100644 --- a/tests/mpi/torus.cc +++ b/tests/mpi/torus.cc @@ -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( diff --git a/tests/multigrid/boundary_01.cc b/tests/multigrid/boundary_01.cc index b59735df92..94cb229b4e 100644 --- a/tests/multigrid/boundary_01.cc +++ b/tests/multigrid/boundary_01.cc @@ -99,9 +99,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); check<2>(); check<3>(); diff --git a/tests/multigrid/count_01.cc b/tests/multigrid/count_01.cc index 936faff7a6..4e9a43855e 100644 --- a/tests/multigrid/count_01.cc +++ b/tests/multigrid/count_01.cc @@ -112,9 +112,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); check<1>(); check<2>(); diff --git a/tests/multigrid/mg_output_dirichlet.cc b/tests/multigrid/mg_output_dirichlet.cc index 0f64d717f8..cecf194417 100644 --- a/tests/multigrid/mg_output_dirichlet.cc +++ b/tests/multigrid/mg_output_dirichlet.cc @@ -285,9 +285,8 @@ check_simple(const FiniteElement &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)); diff --git a/tests/multigrid/mg_output_neumann.cc b/tests/multigrid/mg_output_neumann.cc index 66016f252a..1c1b972afa 100644 --- a/tests/multigrid/mg_output_neumann.cc +++ b/tests/multigrid/mg_output_neumann.cc @@ -290,9 +290,8 @@ check_simple(const FiniteElement &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)); diff --git a/tests/multigrid/smoother_block.cc b/tests/multigrid/smoother_block.cc index 604af5e619..01939cd915 100644 --- a/tests/multigrid/smoother_block.cc +++ b/tests/multigrid/smoother_block.cc @@ -215,9 +215,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); check(); } diff --git a/tests/multigrid/step-16-03.cc b/tests/multigrid/step-16-03.cc index f3d2e9d343..fa08257f3b 100644 --- a/tests/multigrid/step-16-03.cc +++ b/tests/multigrid/step-16-03.cc @@ -484,9 +484,8 @@ LaplaceProblem::run() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); try { diff --git a/tests/multigrid/step-16-04.cc b/tests/multigrid/step-16-04.cc index 03fe52a520..9ebe0c078c 100644 --- a/tests/multigrid/step-16-04.cc +++ b/tests/multigrid/step-16-04.cc @@ -505,9 +505,8 @@ LaplaceProblem::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); diff --git a/tests/multigrid/step-16-05.cc b/tests/multigrid/step-16-05.cc index d9ae93ef1f..41ffeac8d3 100644 --- a/tests/multigrid/step-16-05.cc +++ b/tests/multigrid/step-16-05.cc @@ -483,9 +483,8 @@ LaplaceProblem::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); diff --git a/tests/multigrid/step-16-06.cc b/tests/multigrid/step-16-06.cc index d0ce88b1e6..a86282173b 100644 --- a/tests/multigrid/step-16-06.cc +++ b/tests/multigrid/step-16-06.cc @@ -483,9 +483,8 @@ LaplaceProblem::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); diff --git a/tests/multigrid/step-16-07.cc b/tests/multigrid/step-16-07.cc index dfbba09983..3c059879cc 100644 --- a/tests/multigrid/step-16-07.cc +++ b/tests/multigrid/step-16-07.cc @@ -607,9 +607,8 @@ LaplaceProblem::run() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); try { diff --git a/tests/multigrid/step-16.cc b/tests/multigrid/step-16.cc index c3f3cf02b5..a75942d45f 100644 --- a/tests/multigrid/step-16.cc +++ b/tests/multigrid/step-16.cc @@ -608,9 +608,8 @@ LaplaceProblem::run() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(4); - deallog.attach(logfile); try { diff --git a/tests/multigrid/transfer_01.cc b/tests/multigrid/transfer_01.cc index f6b4047c7a..12a96dda6e 100644 --- a/tests/multigrid/transfer_01.cc +++ b/tests/multigrid/transfer_01.cc @@ -140,9 +140,8 @@ check_simple(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_02.cc b/tests/multigrid/transfer_02.cc index 0f96af7013..57be7fdf0a 100644 --- a/tests/multigrid/transfer_02.cc +++ b/tests/multigrid/transfer_02.cc @@ -173,9 +173,8 @@ check_simple(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_03.cc b/tests/multigrid/transfer_03.cc index 554adbd9d5..e3db315a87 100644 --- a/tests/multigrid/transfer_03.cc +++ b/tests/multigrid/transfer_03.cc @@ -252,9 +252,8 @@ check_simple(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_block.cc b/tests/multigrid/transfer_block.cc index 8fdaa259bb..49367030ad 100644 --- a/tests/multigrid/transfer_block.cc +++ b/tests/multigrid/transfer_block.cc @@ -200,9 +200,8 @@ check_block(const FiniteElement &fe, int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); std::vector factors; diff --git a/tests/multigrid/transfer_block_select.cc b/tests/multigrid/transfer_block_select.cc index 55ad85dc32..88a7c1bc74 100644 --- a/tests/multigrid/transfer_block_select.cc +++ b/tests/multigrid/transfer_block_select.cc @@ -171,9 +171,8 @@ check_select(const FiniteElement &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); diff --git a/tests/multigrid/transfer_compare_01.cc b/tests/multigrid/transfer_compare_01.cc index a1f1003a75..ebb29b110c 100644 --- a/tests/multigrid/transfer_compare_01.cc +++ b/tests/multigrid/transfer_compare_01.cc @@ -266,9 +266,8 @@ check_block(const FiniteElement &fe) int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); std::vector factors; diff --git a/tests/multigrid/transfer_select.cc b/tests/multigrid/transfer_select.cc index 426c816710..aee55d1203 100644 --- a/tests/multigrid/transfer_select.cc +++ b/tests/multigrid/transfer_select.cc @@ -125,9 +125,8 @@ check_select(const FiniteElement &fe, int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); std::vector v1(4); std::vector v2(4); diff --git a/tests/multigrid/transfer_system_01.cc b/tests/multigrid/transfer_system_01.cc index dbf3144115..4a7be5bfa6 100644 --- a/tests/multigrid/transfer_system_01.cc +++ b/tests/multigrid/transfer_system_01.cc @@ -126,9 +126,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_02.cc b/tests/multigrid/transfer_system_02.cc index 948c1028ff..d3edf984e5 100644 --- a/tests/multigrid/transfer_system_02.cc +++ b/tests/multigrid/transfer_system_02.cc @@ -135,9 +135,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_03.cc b/tests/multigrid/transfer_system_03.cc index c77556fa2e..d530fb2280 100644 --- a/tests/multigrid/transfer_system_03.cc +++ b/tests/multigrid/transfer_system_03.cc @@ -134,9 +134,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_04.cc b/tests/multigrid/transfer_system_04.cc index 7e8b361c97..8b9be12867 100644 --- a/tests/multigrid/transfer_system_04.cc +++ b/tests/multigrid/transfer_system_04.cc @@ -135,9 +135,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_05.cc b/tests/multigrid/transfer_system_05.cc index fd5c45e38b..667185dd9f 100644 --- a/tests/multigrid/transfer_system_05.cc +++ b/tests/multigrid/transfer_system_05.cc @@ -133,9 +133,8 @@ check(const FiniteElement &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); diff --git a/tests/multigrid/transfer_system_adaptive_01.cc b/tests/multigrid/transfer_system_adaptive_01.cc index f05ff2c70b..07173a67b9 100644 --- a/tests/multigrid/transfer_system_adaptive_01.cc +++ b/tests/multigrid/transfer_system_adaptive_01.cc @@ -166,9 +166,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_adaptive_02.cc b/tests/multigrid/transfer_system_adaptive_02.cc index 66c16704fc..122a6904f2 100644 --- a/tests/multigrid/transfer_system_adaptive_02.cc +++ b/tests/multigrid/transfer_system_adaptive_02.cc @@ -174,9 +174,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_adaptive_03.cc b/tests/multigrid/transfer_system_adaptive_03.cc index 28dc238c5a..ac2ae17d70 100644 --- a/tests/multigrid/transfer_system_adaptive_03.cc +++ b/tests/multigrid/transfer_system_adaptive_03.cc @@ -168,9 +168,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_adaptive_04.cc b/tests/multigrid/transfer_system_adaptive_04.cc index 2f2767a1c3..e5651e3833 100644 --- a/tests/multigrid/transfer_system_adaptive_04.cc +++ b/tests/multigrid/transfer_system_adaptive_04.cc @@ -178,9 +178,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_adaptive_05.cc b/tests/multigrid/transfer_system_adaptive_05.cc index e7d4573585..3fd282b69d 100644 --- a/tests/multigrid/transfer_system_adaptive_05.cc +++ b/tests/multigrid/transfer_system_adaptive_05.cc @@ -173,9 +173,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_adaptive_06.cc b/tests/multigrid/transfer_system_adaptive_06.cc index 82ec612805..e2900a8ce3 100644 --- a/tests/multigrid/transfer_system_adaptive_06.cc +++ b/tests/multigrid/transfer_system_adaptive_06.cc @@ -182,9 +182,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_adaptive_07.cc b/tests/multigrid/transfer_system_adaptive_07.cc index 89681a91fc..df6f6b365d 100644 --- a/tests/multigrid/transfer_system_adaptive_07.cc +++ b/tests/multigrid/transfer_system_adaptive_07.cc @@ -174,9 +174,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_adaptive_08.cc b/tests/multigrid/transfer_system_adaptive_08.cc index 6221788444..b9103862f7 100644 --- a/tests/multigrid/transfer_system_adaptive_08.cc +++ b/tests/multigrid/transfer_system_adaptive_08.cc @@ -184,9 +184,8 @@ check(const FiniteElement &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)); diff --git a/tests/multigrid/transfer_system_adaptive_09.cc b/tests/multigrid/transfer_system_adaptive_09.cc index b8b338406a..186bc57dde 100644 --- a/tests/multigrid/transfer_system_adaptive_09.cc +++ b/tests/multigrid/transfer_system_adaptive_09.cc @@ -179,9 +179,8 @@ check(const FiniteElement &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); diff --git a/tests/opencascade/circle_normal_projection.cc b/tests/opencascade/circle_normal_projection.cc index 7d6c0c71b5..d1789dd132 100644 --- a/tests/opencascade/circle_normal_projection.cc +++ b/tests/opencascade/circle_normal_projection.cc @@ -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 diff --git a/tests/opencascade/iges_describe.cc b/tests/opencascade/iges_describe.cc index 907bbd2cb8..194d5343f7 100644 --- a/tests/opencascade/iges_describe.cc +++ b/tests/opencascade/iges_describe.cc @@ -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 faces; diff --git a/tests/opencascade/iges_describe_02.cc b/tests/opencascade/iges_describe_02.cc index 548fa4e85d..ff9d87afde 100644 --- a/tests/opencascade/iges_describe_02.cc +++ b/tests/opencascade/iges_describe_02.cc @@ -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 compounds; diff --git a/tests/opencascade/interpolation_curve_boundary.cc b/tests/opencascade/interpolation_curve_boundary.cc index 1886048b43..7c0997f835 100644 --- a/tests/opencascade/interpolation_curve_boundary.cc +++ b/tests/opencascade/interpolation_curve_boundary.cc @@ -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> vertices; diff --git a/tests/opencascade/step_describe.cc b/tests/opencascade/step_describe.cc index db2d32ecdf..5c8e804075 100644 --- a/tests/opencascade/step_describe.cc +++ b/tests/opencascade/step_describe.cc @@ -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 faces; diff --git a/tests/opencascade/step_describe_02.cc b/tests/opencascade/step_describe_02.cc index 9ee5089b10..1d5e7a64ac 100644 --- a/tests/opencascade/step_describe_02.cc +++ b/tests/opencascade/step_describe_02.cc @@ -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 compounds; diff --git a/tests/optimization/bfgs_03.cc b/tests/optimization/bfgs_03.cc index 9853dce836..aefaf45bb3 100644 --- a/tests/optimization/bfgs_03.cc +++ b/tests/optimization/bfgs_03.cc @@ -152,9 +152,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(5); - deallog.attach(logfile); test(); } diff --git a/tests/optimization/bfgs_04.cc b/tests/optimization/bfgs_04.cc index 2052447c08..12fd629802 100644 --- a/tests/optimization/bfgs_04.cc +++ b/tests/optimization/bfgs_04.cc @@ -155,9 +155,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(5); - deallog.attach(logfile); test(); } diff --git a/tests/optimization/bfgs_05.cc b/tests/optimization/bfgs_05.cc index 81d51cac2c..d9fbbf2238 100644 --- a/tests/optimization/bfgs_05.cc +++ b/tests/optimization/bfgs_05.cc @@ -229,9 +229,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(5); - deallog.attach(logfile); test(); } diff --git a/tests/optimization/bfgs_05b.cc b/tests/optimization/bfgs_05b.cc index 47efae06d1..76ffdebe85 100644 --- a/tests/optimization/bfgs_05b.cc +++ b/tests/optimization/bfgs_05b.cc @@ -130,9 +130,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(5); - deallog.attach(logfile); test(); } diff --git a/tests/petsc/deal_solver_04.cc b/tests/petsc/deal_solver_04.cc index ee7f689e23..edd784b850 100644 --- a/tests/petsc/deal_solver_04.cc +++ b/tests/petsc/deal_solver_04.cc @@ -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); { diff --git a/tests/petsc/deal_solver_05.cc b/tests/petsc/deal_solver_05.cc index a2548c7925..8e04c5bc81 100644 --- a/tests/petsc/deal_solver_05.cc +++ b/tests/petsc/deal_solver_05.cc @@ -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); { diff --git a/tests/petsc/vector_print.cc b/tests/petsc/vector_print.cc index 791d6aab8d..0b4a5e1261 100644 --- a/tests/petsc/vector_print.cc +++ b/tests/petsc/vector_print.cc @@ -29,8 +29,7 @@ int main(int argc, char **argv) { - std::ofstream logfile("output"); - deallog.attach(logfile); + initlog(); try { diff --git a/tests/physics/elasticity-kinematics_01.cc b/tests/physics/elasticity-kinematics_01.cc index f7814474f8..466d6d32dc 100644 --- a/tests/physics/elasticity-kinematics_01.cc +++ b/tests/physics/elasticity-kinematics_01.cc @@ -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>(); diff --git a/tests/physics/elasticity-kinematics_02.cc b/tests/physics/elasticity-kinematics_02.cc index 09aa495fba..41f01072d9 100644 --- a/tests/physics/elasticity-kinematics_02.cc +++ b/tests/physics/elasticity-kinematics_02.cc @@ -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; diff --git a/tests/physics/elasticity-standard_tensors_01.cc b/tests/physics/elasticity-standard_tensors_01.cc index af1c86dd28..74e88bcb63 100644 --- a/tests/physics/elasticity-standard_tensors_01.cc +++ b/tests/physics/elasticity-standard_tensors_01.cc @@ -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>(); diff --git a/tests/physics/step-18-rotation_matrix.cc b/tests/physics/step-18-rotation_matrix.cc index 94258ef85e..b038361073 100644 --- a/tests/physics/step-18-rotation_matrix.cc +++ b/tests/physics/step-18-rotation_matrix.cc @@ -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 { diff --git a/tests/physics/step-18.cc b/tests/physics/step-18.cc index 7c491414f3..2fb4baea6e 100644 --- a/tests/physics/step-18.cc +++ b/tests/physics/step-18.cc @@ -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 { diff --git a/tests/physics/step-44-standard_tensors-material_push_forward.cc b/tests/physics/step-44-standard_tensors-material_push_forward.cc index dbe238c94a..02ef07beea 100644 --- a/tests/physics/step-44-standard_tensors-material_push_forward.cc +++ b/tests/physics/step-44-standard_tensors-material_push_forward.cc @@ -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()); diff --git a/tests/physics/step-44-standard_tensors-spatial.cc b/tests/physics/step-44-standard_tensors-spatial.cc index 2414e99529..9cba78c764 100644 --- a/tests/physics/step-44-standard_tensors-spatial.cc +++ b/tests/physics/step-44-standard_tensors-spatial.cc @@ -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()); diff --git a/tests/physics/step-44.cc b/tests/physics/step-44.cc index 250f6556a3..544dc1233f 100644 --- a/tests/physics/step-44.cc +++ b/tests/physics/step-44.cc @@ -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()); diff --git a/tests/physics/transformations-rotations_01.cc b/tests/physics/transformations-rotations_01.cc index d998768706..6150ffeb46 100644 --- a/tests/physics/transformations-rotations_01.cc +++ b/tests/physics/transformations-rotations_01.cc @@ -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; diff --git a/tests/quick_tests/gsl.cc b/tests/quick_tests/gsl.cc index acf81e5ed5..05d2cb560b 100644 --- a/tests/quick_tests/gsl.cc +++ b/tests/quick_tests/gsl.cc @@ -53,9 +53,7 @@ check() int main() { - std::string logname = "output"; - std::ofstream logfile(logname.c_str()); - deallog.attach(logfile); + initlog(); check<1>(); } diff --git a/tests/sparsity/block_dynamic_01.cc b/tests/sparsity/block_dynamic_01.cc index 07f253f450..070a08dcdf 100644 --- a/tests/sparsity/block_dynamic_01.cc +++ b/tests/sparsity/block_dynamic_01.cc @@ -26,10 +26,8 @@ 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); diff --git a/tests/sparsity/block_dynamic_sparsity_pattern_indexset_01.cc b/tests/sparsity/block_dynamic_sparsity_pattern_indexset_01.cc index 8bb2b93568..4a7bcd61ac 100644 --- a/tests/sparsity/block_dynamic_sparsity_pattern_indexset_01.cc +++ b/tests/sparsity/block_dynamic_sparsity_pattern_indexset_01.cc @@ -26,10 +26,8 @@ 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); diff --git a/tests/sparsity/block_sparsity_pattern_01.cc b/tests/sparsity/block_sparsity_pattern_01.cc index 0d0ce5be32..e307ecc630 100644 --- a/tests/sparsity/block_sparsity_pattern_01.cc +++ b/tests/sparsity/block_sparsity_pattern_01.cc @@ -26,10 +26,8 @@ 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 row_blocks(4); diff --git a/tests/sparsity/block_sparsity_pattern_02.cc b/tests/sparsity/block_sparsity_pattern_02.cc index f56383981a..96bb5367b4 100644 --- a/tests/sparsity/block_sparsity_pattern_02.cc +++ b/tests/sparsity/block_sparsity_pattern_02.cc @@ -28,10 +28,8 @@ 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 row_blocks(4); row_blocks[0] = 4; diff --git a/tests/sparsity/chunk_sparsity_pattern_01.cc b/tests/sparsity/chunk_sparsity_pattern_01.cc index 37aa3f424c..ff25035f0d 100644 --- a/tests/sparsity/chunk_sparsity_pattern_01.cc +++ b/tests/sparsity/chunk_sparsity_pattern_01.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_02.cc b/tests/sparsity/chunk_sparsity_pattern_02.cc index 85ad75201e..02b9ae1a57 100644 --- a/tests/sparsity/chunk_sparsity_pattern_02.cc +++ b/tests/sparsity/chunk_sparsity_pattern_02.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_03.cc b/tests/sparsity/chunk_sparsity_pattern_03.cc index 0ef6834c6f..b29abe60c7 100644 --- a/tests/sparsity/chunk_sparsity_pattern_03.cc +++ b/tests/sparsity/chunk_sparsity_pattern_03.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_04.cc b/tests/sparsity/chunk_sparsity_pattern_04.cc index 361a820a8b..d857535b1a 100644 --- a/tests/sparsity/chunk_sparsity_pattern_04.cc +++ b/tests/sparsity/chunk_sparsity_pattern_04.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_05.cc b/tests/sparsity/chunk_sparsity_pattern_05.cc index aa130af88d..6a419928be 100644 --- a/tests/sparsity/chunk_sparsity_pattern_05.cc +++ b/tests/sparsity/chunk_sparsity_pattern_05.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_06.cc b/tests/sparsity/chunk_sparsity_pattern_06.cc index 6f73e081eb..b46f732204 100644 --- a/tests/sparsity/chunk_sparsity_pattern_06.cc +++ b/tests/sparsity/chunk_sparsity_pattern_06.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_07.cc b/tests/sparsity/chunk_sparsity_pattern_07.cc index 4b247c3476..7eaab51be6 100644 --- a/tests/sparsity/chunk_sparsity_pattern_07.cc +++ b/tests/sparsity/chunk_sparsity_pattern_07.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_09.cc b/tests/sparsity/chunk_sparsity_pattern_09.cc index c879873d98..e128d89252 100644 --- a/tests/sparsity/chunk_sparsity_pattern_09.cc +++ b/tests/sparsity/chunk_sparsity_pattern_09.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_10.cc b/tests/sparsity/chunk_sparsity_pattern_10.cc index c65c2d20ac..74a205c437 100644 --- a/tests/sparsity/chunk_sparsity_pattern_10.cc +++ b/tests/sparsity/chunk_sparsity_pattern_10.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/chunk_sparsity_pattern_11.cc b/tests/sparsity/chunk_sparsity_pattern_11.cc index 09215108c4..4c04ea6786 100644 --- a/tests/sparsity/chunk_sparsity_pattern_11.cc +++ b/tests/sparsity/chunk_sparsity_pattern_11.cc @@ -22,10 +22,8 @@ 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]); diff --git a/tests/sparsity/dynamic_sparsity_pattern_10.cc b/tests/sparsity/dynamic_sparsity_pattern_10.cc index 8a521276f5..67612baa6b 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_10.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_10.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/dynamic_sparsity_pattern_11.cc b/tests/sparsity/dynamic_sparsity_pattern_11.cc index f0e65c3dc3..1de795b84b 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_11.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_11.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/dynamic_sparsity_pattern_12.cc b/tests/sparsity/dynamic_sparsity_pattern_12.cc index e737d92503..403f693532 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_12.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_12.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/dynamic_sparsity_pattern_13.cc b/tests/sparsity/dynamic_sparsity_pattern_13.cc index 646d469238..f2373aa70b 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_13.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_13.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/dynamic_sparsity_pattern_14.cc b/tests/sparsity/dynamic_sparsity_pattern_14.cc index 565a3b1d61..f8df811471 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_14.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_14.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/dynamic_sparsity_pattern_15.cc b/tests/sparsity/dynamic_sparsity_pattern_15.cc index e7f638f26b..63b73ca909 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_15.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_15.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/dynamic_sparsity_pattern_16.cc b/tests/sparsity/dynamic_sparsity_pattern_16.cc index 60daa61b60..882d81188c 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_16.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_16.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/dynamic_sparsity_pattern_index_set_01.cc b/tests/sparsity/dynamic_sparsity_pattern_index_set_01.cc index 771fa03d44..2c84954b2c 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_index_set_01.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_index_set_01.cc @@ -23,10 +23,8 @@ 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(true); } diff --git a/tests/sparsity/dynamic_sparsity_pattern_index_set_02.cc b/tests/sparsity/dynamic_sparsity_pattern_index_set_02.cc index 57567de8eb..8063ed801a 100644 --- a/tests/sparsity/dynamic_sparsity_pattern_index_set_02.cc +++ b/tests/sparsity/dynamic_sparsity_pattern_index_set_02.cc @@ -23,10 +23,8 @@ 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(false); } diff --git a/tests/sparsity/sparsity_pattern.cc b/tests/sparsity/sparsity_pattern.cc index 4d1be31568..8cd9687cb2 100644 --- a/tests/sparsity/sparsity_pattern.cc +++ b/tests/sparsity/sparsity_pattern.cc @@ -27,10 +27,8 @@ 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; diff --git a/tests/sparsity/sparsity_pattern_01.cc b/tests/sparsity/sparsity_pattern_01.cc index be5d9c425b..3f15865012 100644 --- a/tests/sparsity/sparsity_pattern_01.cc +++ b/tests/sparsity/sparsity_pattern_01.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_02.cc b/tests/sparsity/sparsity_pattern_02.cc index 31cdd20d19..2b687426f8 100644 --- a/tests/sparsity/sparsity_pattern_02.cc +++ b/tests/sparsity/sparsity_pattern_02.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_03.cc b/tests/sparsity/sparsity_pattern_03.cc index 161b9db0ed..a38b620cee 100644 --- a/tests/sparsity/sparsity_pattern_03.cc +++ b/tests/sparsity/sparsity_pattern_03.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_04.cc b/tests/sparsity/sparsity_pattern_04.cc index 6fb3172b7e..2a0cfe0d97 100644 --- a/tests/sparsity/sparsity_pattern_04.cc +++ b/tests/sparsity/sparsity_pattern_04.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_05.cc b/tests/sparsity/sparsity_pattern_05.cc index 7fe5193ff0..15dc4e7940 100644 --- a/tests/sparsity/sparsity_pattern_05.cc +++ b/tests/sparsity/sparsity_pattern_05.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_06.cc b/tests/sparsity/sparsity_pattern_06.cc index a516d1b9d8..6cf0d2c4e7 100644 --- a/tests/sparsity/sparsity_pattern_06.cc +++ b/tests/sparsity/sparsity_pattern_06.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_07.cc b/tests/sparsity/sparsity_pattern_07.cc index 65a088b07c..bebf75c671 100644 --- a/tests/sparsity/sparsity_pattern_07.cc +++ b/tests/sparsity/sparsity_pattern_07.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_09.cc b/tests/sparsity/sparsity_pattern_09.cc index 57e456e6db..f3b85e858c 100644 --- a/tests/sparsity/sparsity_pattern_09.cc +++ b/tests/sparsity/sparsity_pattern_09.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_10.cc b/tests/sparsity/sparsity_pattern_10.cc index 57905a17d6..beda76a42d 100644 --- a/tests/sparsity/sparsity_pattern_10.cc +++ b/tests/sparsity/sparsity_pattern_10.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_11.cc b/tests/sparsity/sparsity_pattern_11.cc index bacc0b5a9b..52b293a879 100644 --- a/tests/sparsity/sparsity_pattern_11.cc +++ b/tests/sparsity/sparsity_pattern_11.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_12.cc b/tests/sparsity/sparsity_pattern_12.cc index 20477280cd..68419d9d21 100644 --- a/tests/sparsity/sparsity_pattern_12.cc +++ b/tests/sparsity/sparsity_pattern_12.cc @@ -22,10 +22,8 @@ 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(); } diff --git a/tests/sparsity/sparsity_pattern_13.cc b/tests/sparsity/sparsity_pattern_13.cc index ca09904045..6782a5dc4a 100644 --- a/tests/sparsity/sparsity_pattern_13.cc +++ b/tests/sparsity/sparsity_pattern_13.cc @@ -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); diff --git a/tests/sparsity/sparsity_pattern_copy_from_01.cc b/tests/sparsity/sparsity_pattern_copy_from_01.cc index 86ef1e3c0f..16445ae35a 100644 --- a/tests/sparsity/sparsity_pattern_copy_from_01.cc +++ b/tests/sparsity/sparsity_pattern_copy_from_01.cc @@ -31,10 +31,8 @@ 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); diff --git a/tests/sparsity/sparsity_pattern_copy_from_02.cc b/tests/sparsity/sparsity_pattern_copy_from_02.cc index eb78ee7b4b..d8caab5d74 100644 --- a/tests/sparsity/sparsity_pattern_copy_from_02.cc +++ b/tests/sparsity/sparsity_pattern_copy_from_02.cc @@ -32,10 +32,8 @@ 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); diff --git a/tests/sparsity/sparsity_tools_01.cc b/tests/sparsity/sparsity_tools_01.cc index a28fab84da..e1bb5545e5 100644 --- a/tests/sparsity/sparsity_tools_01.cc +++ b/tests/sparsity/sparsity_tools_01.cc @@ -28,10 +28,8 @@ 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) diff --git a/tests/sparsity/sparsity_tools_02.cc b/tests/sparsity/sparsity_tools_02.cc index b2d1656056..352e1ba92a 100644 --- a/tests/sparsity/sparsity_tools_02.cc +++ b/tests/sparsity/sparsity_tools_02.cc @@ -27,10 +27,8 @@ 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) diff --git a/tests/tensors/symmetric_tensor_01.cc b/tests/tensors/symmetric_tensor_01.cc index b67f4b4f09..6b9f91cf60 100644 --- a/tests/tensors/symmetric_tensor_01.cc +++ b/tests/tensors/symmetric_tensor_01.cc @@ -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; diff --git a/tests/tensors/symmetric_tensor_02.cc b/tests/tensors/symmetric_tensor_02.cc index 1eb0db727e..88b22acd78 100644 --- a/tests/tensors/symmetric_tensor_02.cc +++ b/tests/tensors/symmetric_tensor_02.cc @@ -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; diff --git a/tests/tensors/symmetric_tensor_03.cc b/tests/tensors/symmetric_tensor_03.cc index fdbc16b9d5..33ade8f8f9 100644 --- a/tests/tensors/symmetric_tensor_03.cc +++ b/tests/tensors/symmetric_tensor_03.cc @@ -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; diff --git a/tests/tensors/symmetric_tensor_04.cc b/tests/tensors/symmetric_tensor_04.cc index 94a886be20..d0538b9564 100644 --- a/tests/tensors/symmetric_tensor_04.cc +++ b/tests/tensors/symmetric_tensor_04.cc @@ -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; diff --git a/tests/tensors/symmetric_tensor_05.cc b/tests/tensors/symmetric_tensor_05.cc index c9a1089b02..3052274552 100644 --- a/tests/tensors/symmetric_tensor_05.cc +++ b/tests/tensors/symmetric_tensor_05.cc @@ -77,9 +77,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<2>(); test<3>(); diff --git a/tests/tensors/symmetric_tensor_06.cc b/tests/tensors/symmetric_tensor_06.cc index a0d7d0dcd1..ee09b48508 100644 --- a/tests/tensors/symmetric_tensor_06.cc +++ b/tests/tensors/symmetric_tensor_06.cc @@ -79,9 +79,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<2>(); test<3>(); diff --git a/tests/tensors/symmetric_tensor_07.cc b/tests/tensors/symmetric_tensor_07.cc index 4e76ab4bdd..c6af36aa32 100644 --- a/tests/tensors/symmetric_tensor_07.cc +++ b/tests/tensors/symmetric_tensor_07.cc @@ -81,9 +81,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<2>(); test<3>(); diff --git a/tests/tensors/symmetric_tensor_08.cc b/tests/tensors/symmetric_tensor_08.cc index 77f082eaf6..2006206beb 100644 --- a/tests/tensors/symmetric_tensor_08.cc +++ b/tests/tensors/symmetric_tensor_08.cc @@ -77,9 +77,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<2>(); test<3>(); diff --git a/tests/tensors/symmetric_tensor_09.cc b/tests/tensors/symmetric_tensor_09.cc index eb19b7b676..1476ed647f 100644 --- a/tests/tensors/symmetric_tensor_09.cc +++ b/tests/tensors/symmetric_tensor_09.cc @@ -42,9 +42,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<2>(); test<3>(); diff --git a/tests/tensors/symmetric_tensor_10.cc b/tests/tensors/symmetric_tensor_10.cc index 8d3f58261f..0aa33559b1 100644 --- a/tests/tensors/symmetric_tensor_10.cc +++ b/tests/tensors/symmetric_tensor_10.cc @@ -54,9 +54,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_11.cc b/tests/tensors/symmetric_tensor_11.cc index 4345a248c6..f223bcafc6 100644 --- a/tests/tensors/symmetric_tensor_11.cc +++ b/tests/tensors/symmetric_tensor_11.cc @@ -56,9 +56,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_12.cc b/tests/tensors/symmetric_tensor_12.cc index 1f939313d8..fb7aa77ff3 100644 --- a/tests/tensors/symmetric_tensor_12.cc +++ b/tests/tensors/symmetric_tensor_12.cc @@ -40,9 +40,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_13.cc b/tests/tensors/symmetric_tensor_13.cc index 03d3de765a..566f029c87 100644 --- a/tests/tensors/symmetric_tensor_13.cc +++ b/tests/tensors/symmetric_tensor_13.cc @@ -41,9 +41,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_14.cc b/tests/tensors/symmetric_tensor_14.cc index 72f44667c5..180e18e521 100644 --- a/tests/tensors/symmetric_tensor_14.cc +++ b/tests/tensors/symmetric_tensor_14.cc @@ -46,9 +46,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_15.cc b/tests/tensors/symmetric_tensor_15.cc index 567cc4d0d6..f5611c8b7b 100644 --- a/tests/tensors/symmetric_tensor_15.cc +++ b/tests/tensors/symmetric_tensor_15.cc @@ -74,9 +74,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_16.cc b/tests/tensors/symmetric_tensor_16.cc index 2e95a92d49..7a4dc3b74f 100644 --- a/tests/tensors/symmetric_tensor_16.cc +++ b/tests/tensors/symmetric_tensor_16.cc @@ -41,9 +41,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_17.cc b/tests/tensors/symmetric_tensor_17.cc index 502e42d156..5c46d06dbe 100644 --- a/tests/tensors/symmetric_tensor_17.cc +++ b/tests/tensors/symmetric_tensor_17.cc @@ -68,9 +68,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_18.cc b/tests/tensors/symmetric_tensor_18.cc index 246e71afb4..6cc76a1efe 100644 --- a/tests/tensors/symmetric_tensor_18.cc +++ b/tests/tensors/symmetric_tensor_18.cc @@ -68,9 +68,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_19.cc b/tests/tensors/symmetric_tensor_19.cc index b1323ce22c..09b61303b1 100644 --- a/tests/tensors/symmetric_tensor_19.cc +++ b/tests/tensors/symmetric_tensor_19.cc @@ -117,9 +117,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_20.cc b/tests/tensors/symmetric_tensor_20.cc index 2be667f3a8..2d282262a9 100644 --- a/tests/tensors/symmetric_tensor_20.cc +++ b/tests/tensors/symmetric_tensor_20.cc @@ -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; diff --git a/tests/tensors/symmetric_tensor_21.cc b/tests/tensors/symmetric_tensor_21.cc index 805ea9388d..f0c7632d5a 100644 --- a/tests/tensors/symmetric_tensor_21.cc +++ b/tests/tensors/symmetric_tensor_21.cc @@ -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; diff --git a/tests/tensors/symmetric_tensor_22.cc b/tests/tensors/symmetric_tensor_22.cc index 7f59ec594d..11e217639e 100644 --- a/tests/tensors/symmetric_tensor_22.cc +++ b/tests/tensors/symmetric_tensor_22.cc @@ -25,9 +25,8 @@ int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); { const unsigned int dim = 2; diff --git a/tests/tensors/symmetric_tensor_23.cc b/tests/tensors/symmetric_tensor_23.cc index a0ca472232..c5883e80f1 100644 --- a/tests/tensors/symmetric_tensor_23.cc +++ b/tests/tensors/symmetric_tensor_23.cc @@ -25,9 +25,8 @@ int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); { SymmetricTensor<2, 1> t; diff --git a/tests/tensors/symmetric_tensor_24.cc b/tests/tensors/symmetric_tensor_24.cc index 879a3e7167..e6aaa01a9f 100644 --- a/tests/tensors/symmetric_tensor_24.cc +++ b/tests/tensors/symmetric_tensor_24.cc @@ -43,9 +43,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); check<1>(); check<2>(); diff --git a/tests/tensors/symmetric_tensor_25.cc b/tests/tensors/symmetric_tensor_25.cc index b22e1e09f2..a0d6383178 100644 --- a/tests/tensors/symmetric_tensor_25.cc +++ b/tests/tensors/symmetric_tensor_25.cc @@ -65,9 +65,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); check<3>(); diff --git a/tests/tensors/symmetric_tensor_26.cc b/tests/tensors/symmetric_tensor_26.cc index 7951496934..4d6340f778 100644 --- a/tests/tensors/symmetric_tensor_26.cc +++ b/tests/tensors/symmetric_tensor_26.cc @@ -44,9 +44,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); check<1>(); check<2>(); diff --git a/tests/tensors/symmetric_tensor_27.cc b/tests/tensors/symmetric_tensor_27.cc index 5fa5944d33..662824dd61 100644 --- a/tests/tensors/symmetric_tensor_27.cc +++ b/tests/tensors/symmetric_tensor_27.cc @@ -56,9 +56,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<1>(); test<2>(); diff --git a/tests/tensors/symmetric_tensor_28.cc b/tests/tensors/symmetric_tensor_28.cc index 1bf55fe080..0314361052 100644 --- a/tests/tensors/symmetric_tensor_28.cc +++ b/tests/tensors/symmetric_tensor_28.cc @@ -47,9 +47,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<3>(); test<5>(); diff --git a/tests/tensors/symmetric_tensor_29.cc b/tests/tensors/symmetric_tensor_29.cc index 3814afc9c5..a3eacd35f2 100644 --- a/tests/tensors/symmetric_tensor_29.cc +++ b/tests/tensors/symmetric_tensor_29.cc @@ -46,9 +46,8 @@ test() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); test<3>(); test<5>(); diff --git a/tests/tensors/symmetric_tensor_30.cc b/tests/tensors/symmetric_tensor_30.cc index 5ba02c364a..a2a41827e3 100644 --- a/tests/tensors/symmetric_tensor_30.cc +++ b/tests/tensors/symmetric_tensor_30.cc @@ -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>(); diff --git a/tests/tensors/symmetric_tensor_32.cc b/tests/tensors/symmetric_tensor_32.cc index c23fc664ad..452d784f1a 100644 --- a/tests/tensors/symmetric_tensor_32.cc +++ b/tests/tensors/symmetric_tensor_32.cc @@ -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>(); diff --git a/tests/tensors/symmetric_tensor_33.cc b/tests/tensors/symmetric_tensor_33.cc index fbb07bba55..7cdd3a4ec1 100644 --- a/tests/tensors/symmetric_tensor_33.cc +++ b/tests/tensors/symmetric_tensor_33.cc @@ -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>(); diff --git a/tests/tensors/symmetric_tensor_34.cc b/tests/tensors/symmetric_tensor_34.cc index 87958802ee..1d01676742 100644 --- a/tests/tensors/symmetric_tensor_34.cc +++ b/tests/tensors/symmetric_tensor_34.cc @@ -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>(); diff --git a/tests/tensors/symmetric_tensor_35.cc b/tests/tensors/symmetric_tensor_35.cc index 85df1d19d6..cbf77b70ea 100644 --- a/tests/tensors/symmetric_tensor_35.cc +++ b/tests/tensors/symmetric_tensor_35.cc @@ -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; diff --git a/tests/tensors/symmetric_tensor_36.cc b/tests/tensors/symmetric_tensor_36.cc index 300240c6e8..a1919bc5c8 100644 --- a/tests/tensors/symmetric_tensor_36.cc +++ b/tests/tensors/symmetric_tensor_36.cc @@ -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>(); diff --git a/tests/tensors/symmetric_tensor_37.cc b/tests/tensors/symmetric_tensor_37.cc index 5262484826..f608520704 100644 --- a/tests/tensors/symmetric_tensor_37.cc +++ b/tests/tensors/symmetric_tensor_37.cc @@ -47,9 +47,8 @@ test_symm_tensor_contract_3(const T1 & l, int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(5); - deallog.attach(logfile); const int dim = 3; Tensor<1, dim> v1; diff --git a/tests/tensors/symmetric_tensor_38.cc b/tests/tensors/symmetric_tensor_38.cc index 8cd8dcafa6..1c1e40153f 100644 --- a/tests/tensors/symmetric_tensor_38.cc +++ b/tests/tensors/symmetric_tensor_38.cc @@ -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> s1; diff --git a/tests/tensors/tensor.cc b/tests/tensors/tensor.cc index c6d25661ee..92fdd925c8 100644 --- a/tests/tensors/tensor.cc +++ b/tests/tensors/tensor.cc @@ -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}}; diff --git a/tests/tensors/tensor_02.cc b/tests/tensors/tensor_02.cc index 2e51087777..f6185e6e2e 100644 --- a/tests/tensors/tensor_02.cc +++ b/tests/tensors/tensor_02.cc @@ -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}}; diff --git a/tests/tensors/tensor_03.cc b/tests/tensors/tensor_03.cc index 738addd405..dcffda6ff0 100644 --- a/tests/tensors/tensor_03.cc +++ b/tests/tensors/tensor_03.cc @@ -25,9 +25,8 @@ int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); double a[3] = {1, 2, 3}; diff --git a/tests/tensors/tensor_04.cc b/tests/tensors/tensor_04.cc index 9393ee255c..81f69e2bc2 100644 --- a/tests/tensors/tensor_04.cc +++ b/tests/tensors/tensor_04.cc @@ -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}}; diff --git a/tests/tensors/tensor_05.cc b/tests/tensors/tensor_05.cc index 114e0a1db2..5e1e0cebb0 100644 --- a/tests/tensors/tensor_05.cc +++ b/tests/tensors/tensor_05.cc @@ -25,10 +25,7 @@ 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}}; diff --git a/tests/tensors/tensor_06.cc b/tests/tensors/tensor_06.cc index 61d8e721f5..5bc7ce2b64 100644 --- a/tests/tensors/tensor_06.cc +++ b/tests/tensors/tensor_06.cc @@ -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>(); diff --git a/tests/tensors/tensor_07.cc b/tests/tensors/tensor_07.cc index 3aba528025..0ebd8763b9 100644 --- a/tests/tensors/tensor_07.cc +++ b/tests/tensors/tensor_07.cc @@ -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>(); diff --git a/tests/tensors/tensor_08.cc b/tests/tensors/tensor_08.cc index 417238fdfd..ee7f2ac2d6 100644 --- a/tests/tensors/tensor_08.cc +++ b/tests/tensors/tensor_08.cc @@ -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.); diff --git a/tests/tensors/tensor_24.cc b/tests/tensors/tensor_24.cc index a4fa20e37a..968d22738d 100644 --- a/tests/tensors/tensor_24.cc +++ b/tests/tensors/tensor_24.cc @@ -43,9 +43,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); check<1>(); check<2>(); diff --git a/tests/tensors/tensor_25.cc b/tests/tensors/tensor_25.cc index 5234e38b23..19c14a1001 100644 --- a/tests/tensors/tensor_25.cc +++ b/tests/tensors/tensor_25.cc @@ -54,9 +54,8 @@ check() int main() { - std::ofstream logfile("output"); + initlog(); deallog << std::setprecision(3); - deallog.attach(logfile); check<1>(); check<2>(); diff --git a/tests/tensors/tensor_26.cc b/tests/tensors/tensor_26.cc index 6b9bf998f9..e92d7aecae 100644 --- a/tests/tensors/tensor_26.cc +++ b/tests/tensors/tensor_26.cc @@ -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>(); diff --git a/tests/tensors/tensor_27.cc b/tests/tensors/tensor_27.cc index e23c75045f..17934dd569 100644 --- a/tests/tensors/tensor_27.cc +++ b/tests/tensors/tensor_27.cc @@ -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; diff --git a/tests/tensors/tensor_complex.cc b/tests/tensors/tensor_complex.cc index da2a30adc2..74e46b9168 100644 --- a/tests/tensors/tensor_complex.cc +++ b/tests/tensors/tensor_complex.cc @@ -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}}, diff --git a/tests/tensors/tensor_complex_06.cc b/tests/tensors/tensor_complex_06.cc index 94cd1b0884..947f2f47c3 100644 --- a/tests/tensors/tensor_complex_06.cc +++ b/tests/tensors/tensor_complex_06.cc @@ -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; diff --git a/tests/tensors/tensor_float.cc b/tests/tensors/tensor_float.cc index c10a065434..0a5815c5db 100644 --- a/tests/tensors/tensor_float.cc +++ b/tests/tensors/tensor_float.cc @@ -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}}; diff --git a/tests/tensors/tensor_nondefault_constructor.cc b/tests/tensors/tensor_nondefault_constructor.cc index 46be0292ab..d70ee3547a 100644 --- a/tests/tensors/tensor_nondefault_constructor.cc +++ b/tests/tensors/tensor_nondefault_constructor.cc @@ -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}; diff --git a/tests/trilinos/deal_solver_01.cc b/tests/trilinos/deal_solver_01.cc index 7532605084..bb2105f637 100644 --- a/tests/trilinos/deal_solver_01.cc +++ b/tests/trilinos/deal_solver_01.cc @@ -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()); diff --git a/tests/trilinos/deal_solver_03.cc b/tests/trilinos/deal_solver_03.cc index 0d056e9537..86a11be859 100644 --- a/tests/trilinos/deal_solver_03.cc +++ b/tests/trilinos/deal_solver_03.cc @@ -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()); diff --git a/tests/trilinos/deal_solver_04.cc b/tests/trilinos/deal_solver_04.cc index ab641a7686..a73f6d7d23 100644 --- a/tests/trilinos/deal_solver_04.cc +++ b/tests/trilinos/deal_solver_04.cc @@ -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()); diff --git a/tests/trilinos/deal_solver_05.cc b/tests/trilinos/deal_solver_05.cc index d9d89276ee..819f0121c6 100644 --- a/tests/trilinos/deal_solver_05.cc +++ b/tests/trilinos/deal_solver_05.cc @@ -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()); diff --git a/tests/trilinos/mg_transfer_prebuilt_01.cc b/tests/trilinos/mg_transfer_prebuilt_01.cc index c41afe3eec..ca51e15253 100644 --- a/tests/trilinos/mg_transfer_prebuilt_01.cc +++ b/tests/trilinos/mg_transfer_prebuilt_01.cc @@ -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)); diff --git a/tests/trilinos/solver_03.cc b/tests/trilinos/solver_03.cc index eeb59c3a97..df3cd7f165 100644 --- a/tests/trilinos/solver_03.cc +++ b/tests/trilinos/solver_03.cc @@ -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()); diff --git a/tests/trilinos/solver_05.cc b/tests/trilinos/solver_05.cc index f8567b8d1c..704c78a1fd 100644 --- a/tests/trilinos/solver_05.cc +++ b/tests/trilinos/solver_05.cc @@ -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()); diff --git a/tests/trilinos/solver_07.cc b/tests/trilinos/solver_07.cc index 7f7fbbf8e7..60b015fc9d 100644 --- a/tests/trilinos/solver_07.cc +++ b/tests/trilinos/solver_07.cc @@ -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()); diff --git a/tests/trilinos/solver_control_01.cc b/tests/trilinos/solver_control_01.cc index 1eba2eec82..8609a34905 100644 --- a/tests/trilinos/solver_control_01.cc +++ b/tests/trilinos/solver_control_01.cc @@ -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()); diff --git a/tests/trilinos/solver_control_02.cc b/tests/trilinos/solver_control_02.cc index c1213003d7..430e4f13e0 100644 --- a/tests/trilinos/solver_control_02.cc +++ b/tests/trilinos/solver_control_02.cc @@ -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()); diff --git a/tests/trilinos/solver_control_03.cc b/tests/trilinos/solver_control_03.cc index cd42337990..a1b3de12e5 100644 --- a/tests/trilinos/solver_control_03.cc +++ b/tests/trilinos/solver_control_03.cc @@ -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()); diff --git a/tests/trilinos/solver_control_04.cc b/tests/trilinos/solver_control_04.cc index 8fa3f3aa57..2075f76bd5 100644 --- a/tests/trilinos/solver_control_04.cc +++ b/tests/trilinos/solver_control_04.cc @@ -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()); diff --git a/tests/trilinos/solver_control_05.cc b/tests/trilinos/solver_control_05.cc index f87b02570c..d40c7c5518 100644 --- a/tests/trilinos/solver_control_05.cc +++ b/tests/trilinos/solver_control_05.cc @@ -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()); diff --git a/tests/trilinos/sparse_matrix_set_03.cc b/tests/trilinos/sparse_matrix_set_03.cc index e996b4bf7e..5b26f7a3b5 100644 --- a/tests/trilinos/sparse_matrix_set_03.cc +++ b/tests/trilinos/sparse_matrix_set_03.cc @@ -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(); } diff --git a/tests/trilinos/sparsity_pattern_01.cc b/tests/trilinos/sparsity_pattern_01.cc index 77c0f22c37..b5081bb07f 100644 --- a/tests/trilinos/sparsity_pattern_01.cc +++ b/tests/trilinos/sparsity_pattern_01.cc @@ -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(); } diff --git a/tests/trilinos/sparsity_pattern_02.cc b/tests/trilinos/sparsity_pattern_02.cc index c0f73f2ff2..32626ea863 100644 --- a/tests/trilinos/sparsity_pattern_02.cc +++ b/tests/trilinos/sparsity_pattern_02.cc @@ -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(); } diff --git a/tests/trilinos/sparsity_pattern_03.cc b/tests/trilinos/sparsity_pattern_03.cc index ed2750ac73..f1622d5fac 100644 --- a/tests/trilinos/sparsity_pattern_03.cc +++ b/tests/trilinos/sparsity_pattern_03.cc @@ -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(); } diff --git a/tests/trilinos/trilinos_sparsity_pattern_03.cc b/tests/trilinos/trilinos_sparsity_pattern_03.cc index 127a1f0586..0a94771c47 100644 --- a/tests/trilinos/trilinos_sparsity_pattern_03.cc +++ b/tests/trilinos/trilinos_sparsity_pattern_03.cc @@ -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(); } diff --git a/tests/trilinos/trilinos_sparsity_pattern_04.cc b/tests/trilinos/trilinos_sparsity_pattern_04.cc index 6754990b40..5dbcaac3af 100644 --- a/tests/trilinos/trilinos_sparsity_pattern_04.cc +++ b/tests/trilinos/trilinos_sparsity_pattern_04.cc @@ -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(); } -- 2.39.5