]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Convert a lot of tests to use initlog(). 7196/head
authorDavid Wells <drwells@email.unc.edu>
Sat, 15 Sep 2018 18:20:46 +0000 (14:20 -0400)
committerDavid Wells <drwells@email.unc.edu>
Sun, 16 Sep 2018 05:02:46 +0000 (01:02 -0400)
559 files changed:
tests/aniso/anisotropic_crash.cc
tests/aniso/fe_tools.cc
tests/aniso/refine_and_coarsen_anisotropic.cc
tests/aniso/solution_transfer.cc
tests/aniso/up_and_down.cc
tests/base/auto_derivative_function.cc
tests/base/conditional_ostream.cc
tests/base/full_tensor_01.cc
tests/base/full_tensor_02.cc
tests/base/full_tensor_03.cc
tests/base/full_tensor_04.cc
tests/base/full_tensor_05.cc
tests/base/full_tensor_06.cc
tests/base/full_tensor_08.cc
tests/base/full_tensor_09.cc
tests/base/full_tensor_10.cc
tests/base/functions_04.cc
tests/base/functions_05.cc
tests/base/functions_06.cc
tests/base/functions_07.cc
tests/base/functions_08.cc
tests/base/functions_09.cc
tests/base/functions_10.cc
tests/base/functions_11.cc
tests/base/functions_12.cc
tests/base/functions_constant_function_00.cc
tests/base/functions_cspline.cc
tests/base/functions_cspline_02.cc
tests/base/functions_singularity.cc
tests/base/functions_spherical_01.cc
tests/base/functions_spherical_02.cc
tests/base/graph_coloring_01.cc
tests/base/graph_coloring_02.cc
tests/base/graph_coloring_02a.cc
tests/base/graph_coloring_03.cc
tests/base/graph_coloring_05.cc
tests/base/graph_coloring_06.cc
tests/base/hierarchical.cc
tests/base/is_finite.cc
tests/base/is_finite_complex.cc
tests/base/log_infinity.cc
tests/base/log_nan.cc
tests/base/log_precision.cc
tests/base/log_width.cc
tests/base/logstream_end.cc
tests/base/number_traits_complex.cc
tests/base/number_traits_real.cc
tests/base/point_01.cc
tests/base/point_02.cc
tests/base/point_03.cc
tests/base/polynomial_hermite_interpolation.cc
tests/base/polynomial_lagrange.cc
tests/base/polynomial_lagrange_ops.cc
tests/base/polynomial_lagrange_order.cc
tests/base/polynomial_lagrange_product.cc
tests/base/polynomial_legendre_order.cc
tests/base/polynomial_test.cc
tests/base/polynomials_bdm_01.cc
tests/base/polynomials_bdm_02.cc
tests/base/polynomials_br.cc
tests/base/polynomials_integrated_legendre_sz.cc
tests/base/polynomials_rt.cc
tests/base/polynomials_rt_bubbles.cc
tests/base/polynomials_tensor.cc
tests/base/scalar_01.cc
tests/base/signaling_nan_derivative_form.cc
tests/base/signaling_nan_point.cc
tests/base/signaling_nan_symmetric_tensor.cc
tests/base/signaling_nan_table.cc
tests/base/signaling_nan_tensor.cc
tests/base/table.cc
tests/base/table_02.cc
tests/base/table_03.cc
tests/base/table_04.cc
tests/base/table_05.cc
tests/base/table_handler_12.cc
tests/base/table_indices_01.cc
tests/base/task_03.cc
tests/base/task_04.cc
tests/base/task_06.cc
tests/base/task_07.cc
tests/base/task_08.cc
tests/base/task_12.cc
tests/base/task_12_capture.cc
tests/base/task_13.cc
tests/base/thread_12.cc
tests/base/thread_validity_06.cc
tests/base/thread_validity_07.cc
tests/base/threads_02.cc
tests/base/timer_02.cc
tests/base/timer_03.cc
tests/base/vectorization_07.cc
tests/base/vectorization_07.output
tests/base/work_stream_03.cc
tests/base/work_stream_03_graph.cc
tests/codim_one/bem.cc
tests/codim_one/data_out.cc
tests/codim_one/data_out_02.cc
tests/codim_one/data_out_03.cc
tests/codim_one/error_estimator_01.cc
tests/codim_one/fe_values_extractor_01.cc
tests/codim_one/gradients.cc
tests/codim_one/gradients_1.cc
tests/codim_one/grid_in_out.cc
tests/codim_one/grid_in_out_02.cc
tests/codim_one/grid_in_out_03.cc
tests/codim_one/grid_refinement.cc
tests/codim_one/integrate_log.cc
tests/codim_one/integrate_log_2.cc
tests/codim_one/interpolate_boundary_values_01.cc
tests/codim_one/interpolate_boundary_values_01_vector_valued.cc
tests/codim_one/interpolate_boundary_values_02.cc
tests/codim_one/interpolate_boundary_values_02_vector_valued.cc
tests/codim_one/interpolate_boundary_values_03.cc
tests/codim_one/interpolate_boundary_values_1d_closed_ring.cc
tests/codim_one/interpolation.cc
tests/codim_one/interpolation_2.cc
tests/codim_one/interpolation_3.cc
tests/codim_one/mapping_q1.cc
tests/codim_one/mapping_q1_eulerian.cc
tests/codim_one/mapping_q_eulerian.cc
tests/codim_one/mean_value.cc
tests/codim_one/mesh_bug.cc
tests/codim_one/mesh_bug.output
tests/codim_one/projection.cc
tests/codim_one/projection_dgp.cc
tests/codim_one/renumber_component_wise_01.cc
tests/codim_one/surface.cc
tests/codim_one/tensor_matrix_conversion.cc
tests/distributed_grids/2d_coarse_grid_01.cc
tests/distributed_grids/2d_coarse_grid_02.cc
tests/distributed_grids/2d_coarse_grid_03.cc
tests/distributed_grids/2d_coarse_grid_04.cc
tests/distributed_grids/2d_coarse_grid_x_01.cc
tests/distributed_grids/2d_coarsening_01.cc
tests/distributed_grids/2d_coarsening_02.cc
tests/distributed_grids/2d_coarsening_03.cc
tests/distributed_grids/2d_coarsening_05.cc
tests/distributed_grids/2d_refinement_01.cc
tests/distributed_grids/2d_refinement_02.cc
tests/distributed_grids/2d_refinement_03.cc
tests/distributed_grids/2d_refinement_04.cc
tests/distributed_grids/2d_refinement_05.cc
tests/distributed_grids/2d_refinement_06.cc
tests/distributed_grids/2d_refinement_07.cc
tests/distributed_grids/2d_refinement_10.cc
tests/distributed_grids/3d_coarse_grid_01.cc
tests/distributed_grids/3d_coarse_grid_03.cc
tests/distributed_grids/3d_coarse_grid_04.cc
tests/distributed_grids/3d_coarse_grid_05.cc
tests/distributed_grids/3d_coarse_grid_06.cc
tests/distributed_grids/3d_coarse_grid_x_01.cc
tests/distributed_grids/3d_coarsening_01.cc
tests/distributed_grids/3d_coarsening_02.cc
tests/distributed_grids/3d_coarsening_03.cc
tests/distributed_grids/3d_coarsening_04.cc
tests/distributed_grids/3d_coarsening_05.cc
tests/distributed_grids/3d_refinement_01.cc
tests/distributed_grids/3d_refinement_02.cc
tests/distributed_grids/3d_refinement_03.cc
tests/distributed_grids/3d_refinement_04.cc
tests/distributed_grids/3d_refinement_05.cc
tests/distributed_grids/3d_refinement_06.cc
tests/distributed_grids/3d_refinement_07.cc
tests/distributed_grids/3d_refinement_08.cc
tests/distributed_grids/3d_refinement_09.cc
tests/distributed_grids/3d_refinement_12.cc
tests/distributed_grids/anisotropic.cc
tests/distributed_grids/intergrid_transfer_representation_parallel.cc
tests/distributed_grids/solution_transfer_01.cc
tests/distributed_grids/solution_transfer_02.cc
tests/distributed_grids/solution_transfer_03.cc
tests/distributed_grids/solution_transfer_04.cc
tests/distributed_grids/tria_settings_01.cc
tests/hp/boundary_matrices.cc
tests/hp/boundary_matrices_hp.cc
tests/hp/compare_hp_vs_nonhp_01.cc
tests/hp/continuous_1d_01.cc
tests/hp/continuous_2d_01.cc
tests/hp/continuous_3d_01.cc
tests/hp/count_dofs_per_block_01.cc
tests/hp/count_dofs_per_block_02.cc
tests/hp/crash_01.cc
tests/hp/crash_02.cc
tests/hp/crash_03.cc
tests/hp/crash_04.cc
tests/hp/crash_05.cc
tests/hp/crash_06.cc
tests/hp/crash_07.cc
tests/hp/crash_08.cc
tests/hp/crash_09.cc
tests/hp/crash_10.cc
tests/hp/crash_11.cc
tests/hp/crash_12.cc
tests/hp/crash_14.cc
tests/hp/crash_15.cc
tests/hp/crash_16.cc
tests/hp/crash_17.cc
tests/hp/crash_18.cc
tests/hp/crash_19.cc
tests/hp/crash_20.cc
tests/hp/crash_21.cc
tests/hp/create_laplace_matrix_03.cc
tests/hp/create_laplace_matrix_03b.cc
tests/hp/create_laplace_matrix_04.cc
tests/hp/create_laplace_matrix_04b.cc
tests/hp/create_laplace_matrix_constraints_02.cc
tests/hp/create_laplace_matrix_constraints_02b.cc
tests/hp/create_mass_matrix_01.cc
tests/hp/create_mass_matrix_01b.cc
tests/hp/create_mass_matrix_02.cc
tests/hp/create_mass_matrix_02b.cc
tests/hp/create_mass_matrix_03.cc
tests/hp/create_mass_matrix_03b.cc
tests/hp/create_mass_matrix_04.cc
tests/hp/create_mass_matrix_04b.cc
tests/hp/create_mass_matrix_05.cc
tests/hp/create_mass_matrix_constraints_02.cc
tests/hp/create_mass_matrix_constraints_02b.cc
tests/hp/create_rhs_01.cc
tests/hp/dof_renumbering_04.cc
tests/hp/dof_renumbering_05.cc
tests/hp/dof_renumbering_06.cc
tests/hp/fe_collection_01.cc
tests/hp/fe_collection_02.cc
tests/hp/fe_collection_03.cc
tests/hp/fe_collection_04.cc
tests/hp/fe_collection_05.cc
tests/hp/fe_nothing_01.cc
tests/hp/fe_nothing_02.cc
tests/hp/fe_nothing_03.cc
tests/hp/fe_nothing_05.cc
tests/hp/fe_nothing_06.cc
tests/hp/fe_nothing_07.cc
tests/hp/fe_nothing_08.cc
tests/hp/fe_nothing_09.cc
tests/hp/fe_nothing_10.cc
tests/hp/fe_nothing_11.cc
tests/hp/fe_nothing_12.cc
tests/hp/fe_nothing_13.cc
tests/hp/fe_nothing_14.cc
tests/hp/fe_nothing_15.cc
tests/hp/fe_nothing_16.cc
tests/hp/fe_nothing_17.cc
tests/hp/flux_sparsity.cc
tests/hp/get_active_fe_indices.cc
tests/hp/get_interpolated_dof_values_01.cc
tests/hp/get_interpolated_dof_values_03.cc
tests/hp/hp_constraints_common.h
tests/hp/hp_constraints_common_no_support.h
tests/hp/hp_constraints_neither_dominate_01.cc
tests/hp/hp_constraints_neither_dominate_02.cc
tests/hp/hp_hanging_nodes_01.cc
tests/hp/hp_hanging_nodes_02.cc
tests/hp/hp_line_dof_identities_dgp.cc
tests/hp/hp_line_dof_identities_dgp_monomial.cc
tests/hp/hp_line_dof_identities_dgp_monomial_system_01.cc
tests/hp/hp_line_dof_identities_dgp_monomial_system_02.cc
tests/hp/hp_line_dof_identities_dgp_nonparametric.cc
tests/hp/hp_line_dof_identities_dgp_nonparametric_system_01.cc
tests/hp/hp_line_dof_identities_dgp_nonparametric_system_02.cc
tests/hp/hp_line_dof_identities_dgp_system_01.cc
tests/hp/hp_line_dof_identities_dgp_system_02.cc
tests/hp/hp_line_dof_identities_dgq.cc
tests/hp/hp_line_dof_identities_dgq_system_01.cc
tests/hp/hp_line_dof_identities_dgq_system_02.cc
tests/hp/hp_line_dof_identities_q.cc
tests/hp/hp_line_dof_identities_q_gl.cc
tests/hp/hp_line_dof_identities_q_system_01.cc
tests/hp/hp_line_dof_identities_q_system_02.cc
tests/hp/hp_line_dof_identities_q_system_03.cc
tests/hp/hp_line_dof_identities_rt_nodal.cc
tests/hp/hp_q_hierarchical_constraints.cc
tests/hp/hp_quad_dof_identities_dgp.cc
tests/hp/hp_quad_dof_identities_dgp_monomial.cc
tests/hp/hp_quad_dof_identities_dgp_monomial_system_01.cc
tests/hp/hp_quad_dof_identities_dgp_monomial_system_02.cc
tests/hp/hp_quad_dof_identities_dgp_nonparametric.cc
tests/hp/hp_quad_dof_identities_dgp_nonparametric_system_01.cc
tests/hp/hp_quad_dof_identities_dgp_nonparametric_system_02.cc
tests/hp/hp_quad_dof_identities_dgp_system_01.cc
tests/hp/hp_quad_dof_identities_dgp_system_02.cc
tests/hp/hp_quad_dof_identities_dgq.cc
tests/hp/hp_quad_dof_identities_dgq_system_01.cc
tests/hp/hp_quad_dof_identities_dgq_system_02.cc
tests/hp/hp_quad_dof_identities_q.cc
tests/hp/hp_quad_dof_identities_q_gl.cc
tests/hp/hp_quad_dof_identities_q_system_01.cc
tests/hp/hp_quad_dof_identities_q_system_02.cc
tests/hp/hp_quad_dof_identities_rt_nodal.cc
tests/hp/hp_vertex_dof_identities_dgp.cc
tests/hp/hp_vertex_dof_identities_dgp_monomial.cc
tests/hp/hp_vertex_dof_identities_dgp_monomial_system_01.cc
tests/hp/hp_vertex_dof_identities_dgp_monomial_system_02.cc
tests/hp/hp_vertex_dof_identities_dgp_nonparametric.cc
tests/hp/hp_vertex_dof_identities_dgp_nonparametric_system_01.cc
tests/hp/hp_vertex_dof_identities_dgp_nonparametric_system_02.cc
tests/hp/hp_vertex_dof_identities_dgp_system_01.cc
tests/hp/hp_vertex_dof_identities_dgp_system_02.cc
tests/hp/hp_vertex_dof_identities_dgq.cc
tests/hp/hp_vertex_dof_identities_dgq_system_01.cc
tests/hp/hp_vertex_dof_identities_dgq_system_02.cc
tests/hp/hp_vertex_dof_identities_q.cc
tests/hp/hp_vertex_dof_identities_q_system_01.cc
tests/hp/hp_vertex_dof_identities_q_system_02.cc
tests/hp/hp_vertex_dof_identities_rt_nodal.cc
tests/hp/integrate_difference.cc
tests/hp/integrate_difference_02.cc
tests/hp/integrate_difference_03.cc
tests/hp/interpolate_dgq_01.cc
tests/hp/interpolate_dgq_02.cc
tests/hp/interpolate_nothing_01.cc
tests/hp/interpolate_nothing_02.cc
tests/hp/interpolate_nothing_03.cc
tests/hp/interpolate_q_01.cc
tests/hp/interpolate_q_02.cc
tests/hp/interpolate_q_system_01.cc
tests/hp/interpolate_q_system_02.cc
tests/hp/mapping_collection_01.cc
tests/hp/mapping_collection_02.cc
tests/hp/mapping_collection_03.cc
tests/hp/mapping_collection_04.cc
tests/hp/matrices.cc
tests/hp/n_active_fe_indices.cc
tests/hp/n_dofs.cc
tests/hp/project_01.cc
tests/hp/project_01_curved_boundary.cc
tests/hp/project_02.cc
tests/hp/q_collection_01.cc
tests/hp/q_vs_dgq.cc
tests/hp/random.cc
tests/hp/renumber_block_wise_01.cc
tests/hp/renumber_block_wise_01a.cc
tests/hp/renumber_block_wise_01b.cc
tests/hp/renumber_block_wise_02.cc
tests/hp/renumber_component_wise.cc
tests/hp/set_dof_values_by_interpolation_01.cc
tests/hp/set_dof_values_by_interpolation_02.cc
tests/hp/set_dof_values_by_interpolation_03.cc
tests/hp/solution_transfer.cc
tests/hp/solution_transfer_02.cc
tests/hp/solution_transfer_11.cc
tests/hp/solution_transfer_12.cc
tests/hp/step-10.cc
tests/hp/step-11.cc
tests/hp/step-12.cc
tests/hp/step-13.cc
tests/hp/step-2.cc
tests/hp/step-3.cc
tests/hp/step-3a.cc
tests/hp/step-3a_mapping_collection.cc
tests/hp/step-3b.cc
tests/hp/step-4.cc
tests/hp/step-7.cc
tests/hp/step-8.cc
tests/hp/vectors_boundary_rhs_01.cc
tests/hp/vectors_boundary_rhs_02.cc
tests/hp/vectors_boundary_rhs_03.cc
tests/hp/vectors_boundary_rhs_hp_01.cc
tests/hp/vectors_boundary_rhs_hp_03.cc
tests/hp/vectors_point_source_01.cc
tests/hp/vectors_point_source_hp_01.cc
tests/hp/vectors_rhs_01.cc
tests/hp/vectors_rhs_02.cc
tests/hp/vectors_rhs_03.cc
tests/hp/vectors_rhs_hp_01.cc
tests/hp/vectors_rhs_hp_03.cc
tests/lapack/full_matrix_00.cc
tests/lapack/full_matrix_01.cc
tests/lapack/full_matrix_02.cc
tests/lapack/full_matrix_03.cc
tests/lapack/full_matrix_04.cc
tests/lapack/full_matrix_05.cc
tests/lapack/full_matrix_06.cc
tests/lapack/full_matrix_07.cc
tests/lapack/full_matrix_08.cc
tests/lapack/full_matrix_09.cc
tests/lapack/full_matrix_10.cc
tests/lapack/full_matrix_11.cc
tests/lapack/full_matrix_12.cc
tests/lapack/full_matrix_13.cc
tests/lapack/full_matrix_14.cc
tests/lapack/full_matrix_15.cc
tests/lapack/full_matrix_16.cc
tests/lapack/full_matrix_17.cc
tests/lapack/full_matrix_18.cc
tests/lapack/full_matrix_19.cc
tests/lapack/full_matrix_20.cc
tests/lapack/full_matrix_21.cc
tests/lapack/full_matrix_22.cc
tests/lapack/full_matrix_23.cc
tests/lapack/full_matrix_24.cc
tests/lapack/full_matrix_25.cc
tests/lapack/full_matrix_26.cc
tests/lapack/full_matrix_27.cc
tests/lapack/full_matrix_28.cc
tests/lapack/full_matrix_29.cc
tests/lapack/full_matrix_30.cc
tests/lapack/full_matrix_31.cc
tests/lapack/full_matrix_32.cc
tests/lapack/full_matrix_33.cc
tests/lapack/full_matrix_34.cc
tests/lapack/solver_cg.cc
tests/lapack/tridiagonal_ev1.cc
tests/numerics/assemble_matrix_parallel_01.cc
tests/numerics/assemble_matrix_parallel_02.cc
tests/numerics/assemble_matrix_parallel_03.cc
tests/numerics/assemble_matrix_parallel_04.cc
tests/numerics/create_laplace_matrix_01.cc
tests/numerics/create_laplace_matrix_01b.cc
tests/numerics/create_laplace_matrix_02.cc
tests/numerics/create_laplace_matrix_02b.cc
tests/numerics/create_laplace_matrix_03.cc
tests/numerics/create_laplace_matrix_03b.cc
tests/numerics/create_laplace_matrix_04.cc
tests/numerics/create_laplace_matrix_04b.cc
tests/numerics/create_laplace_matrix_constraints_01.cc
tests/numerics/create_laplace_matrix_constraints_02.cc
tests/numerics/create_laplace_matrix_constraints_02b.cc
tests/numerics/create_laplace_matrix_constraints_03.cc
tests/numerics/create_laplace_matrix_constraints_04.cc
tests/numerics/create_mass_matrix_01.cc
tests/numerics/create_mass_matrix_01b.cc
tests/numerics/create_mass_matrix_02.cc
tests/numerics/create_mass_matrix_02b.cc
tests/numerics/create_mass_matrix_03.cc
tests/numerics/create_mass_matrix_03b.cc
tests/numerics/create_mass_matrix_04.cc
tests/numerics/create_mass_matrix_04b.cc
tests/numerics/create_mass_matrix_05.cc
tests/numerics/create_mass_matrix_constraints_01.cc
tests/numerics/create_mass_matrix_constraints_02.cc
tests/numerics/create_mass_matrix_constraints_02b.cc
tests/numerics/create_mass_matrix_constraints_03.cc
tests/numerics/create_mass_matrix_constraints_04.cc
tests/numerics/create_point_source.cc
tests/numerics/create_point_source_hp.cc
tests/numerics/derivative_approximation_01.cc
tests/numerics/derivatives.cc
tests/numerics/error_estimator.cc
tests/numerics/error_estimator_01.cc
tests/numerics/error_estimator_02.cc
tests/numerics/error_estimator_02_complex.cc
tests/numerics/history.cc
tests/numerics/history.output
tests/numerics/kelly_crash_02.cc
tests/numerics/no_flux_01.cc
tests/numerics/no_flux_02.cc
tests/numerics/no_flux_03.cc
tests/numerics/no_flux_04.cc
tests/numerics/no_flux_05.cc
tests/numerics/no_flux_06.cc
tests/numerics/no_flux_07.cc
tests/numerics/no_flux_08.cc
tests/numerics/no_flux_09.cc
tests/numerics/no_flux_10.cc
tests/numerics/no_flux_11.cc
tests/numerics/no_flux_12.cc
tests/numerics/no_flux_14.cc
tests/numerics/no_flux_hp_01.cc
tests/numerics/no_flux_hp_02.cc
tests/numerics/no_flux_hp_03.cc
tests/numerics/no_flux_hp_04.cc
tests/numerics/no_flux_hp_05.cc
tests/numerics/normal_flux_01.cc
tests/numerics/normal_flux_02.cc
tests/numerics/normal_flux_03.cc
tests/numerics/normal_flux_hp_01.cc
tests/numerics/normal_flux_inhom_01.cc
tests/numerics/point_value_history_01.cc
tests/numerics/point_value_history_02.cc
tests/numerics/point_value_history_03.cc
tests/numerics/project_01.cc
tests/numerics/project_01_curved_boundary.cc
tests/numerics/project_02.cc
tests/numerics/project_03.cc
tests/numerics/project_boundary_rt_01.cc
tests/numerics/project_bv_curl_conf.cc
tests/numerics/project_bv_curl_conf_02.cc
tests/numerics/project_bv_div_conf.cc
tests/numerics/project_common.h
tests/numerics/project_to_surface_01.cc
tests/numerics/project_to_surface_02.cc
tests/numerics/project_to_surface_03.cc
tests/numerics/tangential_flux_inhom_01.cc
tests/numerics/time_dependent_01.cc
tests/numerics/vectors_boundary_rhs_01.cc
tests/numerics/vectors_boundary_rhs_02.cc
tests/numerics/vectors_boundary_rhs_03.cc
tests/numerics/vectors_point_source_01.cc
tests/numerics/vectors_rhs_01.cc
tests/numerics/vectors_rhs_03.cc
tests/parameter_handler/parameter_handler_3.cc
tests/parameter_handler/parameter_handler_3_with_alias_01.cc
tests/parameter_handler/parameter_handler_3_with_alias_02.cc
tests/parameter_handler/parameter_handler_3_with_alias_03.cc
tests/parameter_handler/parameter_handler_3_with_alias_04.cc
tests/parameter_handler/parameter_handler_3_with_space.cc
tests/parameter_handler/parameter_handler_4.cc
tests/parameter_handler/parameter_handler_4a.cc
tests/parameter_handler/parameter_handler_4a_with_alias.cc
tests/parameter_handler/parameter_handler_4a_with_alias_deprecated.cc
tests/parameter_handler/parameter_handler_4b.cc
tests/parameter_handler/parameter_handler_5.cc
tests/parameter_handler/parameter_handler_6.cc
tests/parameter_handler/parameter_handler_6_bool.cc
tests/parameter_handler/parameter_handler_7.cc
tests/parameter_handler/parameter_handler_8.cc
tests/parameter_handler/parameter_handler_read_json.cc
tests/parameter_handler/parameter_handler_read_xml.cc
tests/parameter_handler/parameter_handler_write_json.cc
tests/parameter_handler/parameter_handler_write_section_1.cc
tests/parameter_handler/parameter_handler_write_section_2.cc
tests/parameter_handler/parameter_handler_write_section_xml.cc
tests/parameter_handler/parameter_handler_write_xml.cc
tests/parameter_handler/save_flags.cc
tests/petsc_complex/00.cc
tests/petsc_complex/element_access_00.cc
tests/petsc_complex/element_access_01.cc
tests/petsc_complex/element_access_02.cc
tests/petsc_complex/element_access_03.cc
tests/petsc_complex/vector_assign_02.cc
tests/petsc_complex/vector_equality_1.cc
tests/petsc_complex/vector_equality_2.cc
tests/petsc_complex/vector_print.cc
tests/serialization/dof_handler_01.cc
tests/serialization/parameter_handler.cc
tests/serialization/point.cc
tests/serialization/pointer_01.cc
tests/serialization/pointer_02.cc
tests/serialization/pointer_03.cc
tests/serialization/pointer_04.cc
tests/serialization/pointer_05.cc
tests/serialization/polynomial.cc
tests/serialization/polynomial_hierarchical.cc
tests/serialization/polynomial_lagrange_equidistant.cc
tests/serialization/polynomial_lagrange_gl.cc
tests/serialization/polynomial_legendre.cc
tests/serialization/polynomial_lobatto.cc
tests/serialization/polynomial_monomial.cc
tests/serialization/quadrature.cc
tests/serialization/quadrature_qanisotropic.cc
tests/serialization/quadrature_qiterated.cc
tests/serialization/sparsity_pattern.cc
tests/serialization/table_1.cc
tests/serialization/table_2.cc
tests/serialization/table_3.cc
tests/serialization/table_4.cc
tests/serialization/table_5.cc
tests/serialization/table_6.cc
tests/serialization/table_7.cc
tests/serialization/table_handler.cc
tests/serialization/tensor.cc
tests/serialization/tensor_base.cc
tests/serialization/tensor_base_scalar.cc
tests/serialization/test_01.cc
tests/serialization/triangulation_01.cc
tests/serialization/triangulation_02.cc
tests/serialization/vector.cc

index 69c8eccddb7d7db80f325266c3b62d841eed36d6..fa9887f28a897b9b502a572a1e092a8454dcab27 100644 (file)
@@ -37,10 +37,9 @@ using namespace dealii;
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   // Create triangulation
   Triangulation<2> tri;
index a102f742e65ccebbecb886f7421bc53417271111..198b4702c4b0e14bdf50999911e2724dfab14089 100644 (file)
@@ -166,10 +166,9 @@ test_projection(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
   deallog << std::setprecision(8);
 
-  test_projection<2>(logfile);
-  test_projection<3>(logfile);
+  test_projection<2>(deallog.get_file_stream());
+  test_projection<3>(deallog.get_file_stream());
 }
index df2de12361e49a28188d46f046032738561cc485..eae698e6fcccab1401acbb91352eaf56f7d65594 100644 (file)
@@ -51,7 +51,7 @@ const unsigned int max_cells = 50000;
 
 template <int dim>
 void
-test_isotropic(int type, std::ostream *logfile)
+test_isotropic(int type, std::ostream &logfile)
 {
   const RefinementCase<dim> ref_cases[7] = {
     RefinementCase<dim>::cut_x,
@@ -77,7 +77,7 @@ test_isotropic(int type, std::ostream *logfile)
   tria.reset_manifold(0);
   tria.refine_global(1);
 
-  *logfile << "cycle: 0, number of cells: " << tria.n_cells() << std::endl;
+  logfile << "cycle: 0, number of cells: " << tria.n_cells() << std::endl;
 
   typename Triangulation<dim>::active_cell_iterator cell = tria.begin_active(),
                                                     endc = tria.end();
@@ -110,8 +110,8 @@ test_isotropic(int type, std::ostream *logfile)
           grid_out.write_eps(tria, outfile);
         }
 
-      *logfile << "cycle: " << cycle << ", number of cells: " << tria.n_cells()
-               << std::endl;
+      logfile << "cycle: " << cycle << ", number of cells: " << tria.n_cells()
+              << std::endl;
 
       if (tria.n_cells() > max_cells || cycle == max_cycle)
         break;
@@ -123,35 +123,26 @@ test_isotropic(int type, std::ostream *logfile)
 int
 main()
 {
-  std::ostream *logfile;
+  initlog();
 
-  if (single_file)
-    logfile = new std::ofstream("output");
-  else
-    logfile = &std::cout;
+  std::ostream &logfile = deallog.get_file_stream();
 
-  *logfile << std::endl
-           << "         2D" << std::endl
-           << "-----------------------" << std::endl;
+  logfile << "         2D" << std::endl
+          << "-----------------------" << std::endl;
 
-  *logfile << "HyperCube:" << std::endl;
+  logfile << "HyperCube:" << std::endl;
   test_isotropic<2>(0, logfile);
 
-  *logfile << "HyperBall:" << std::endl;
+  logfile << "HyperBall:" << std::endl;
   test_isotropic<2>(1, logfile);
 
-  *logfile << std::endl;
-  *logfile << "         3D" << std::endl
-           << "-----------------------" << std::endl;
+  logfile << std::endl;
+  logfile << "         3D" << std::endl
+          << "-----------------------" << std::endl;
 
-  *logfile << "HyperCube:" << std::endl;
+  logfile << "HyperCube:" << std::endl;
   test_isotropic<3>(0, logfile);
 
-  *logfile << "HyperBall:" << std::endl;
+  logfile << "HyperBall:" << std::endl;
   test_isotropic<3>(1, logfile);
-
-  // clear whatever is in the buffer
-  *logfile << std::flush;
-  if (single_file)
-    delete logfile;
 }
index 3064501e532a61cff694db36a67dfa28eda91fac..c2b36e1847bd7459defc748604689a402c1fde69 100644 (file)
@@ -137,11 +137,9 @@ transfer(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(4);
-  logfile << std::setprecision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream() << std::setprecision(4);
 
-  transfer<2>(logfile);
-  transfer<3>(logfile);
+  transfer<2>(deallog.get_file_stream());
+  transfer<3>(deallog.get_file_stream());
 }
index 9d0b047f4276be587570d329d666ac609084b35c..ab9b1cc38831facfc792c342c599d2399a59964a 100644 (file)
@@ -248,10 +248,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(PRECISION);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(PRECISION);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   test<1>();
   test<2>();
index cdd66b68e0d38373417f7cb97b604e1083915ca9..528fb874161d16a5fa2d921a61bd5862eeab6808 100644 (file)
@@ -125,9 +125,8 @@ ExactSinExp<dim>::vector_gradient(
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   const unsigned int      dim = 2;
   AutoSinExp<dim>         auto_function;
index 320d1694e98e3435da625201e4f8752a33f038a0..c02b1c5e8fc8d75aa54afa2ddd6f1d503f4b0821 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
-  ConditionalOStream o(logfile, true);
+  ConditionalOStream o(deallog.get_file_stream(), true);
   o << "Yes" << std::endl;
   deallog << o.is_active() << std::endl;
 
index daa235480a38d38f35dc6df2e655f38025957d58..5d0b7b9fc9db165a800968922707050f5effde88 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   Tensor<2, 2> t;
   t[0][0] = 1;
index e0344df82c194eea8f8781a73855e068fd570f5f..f9d7f23ea1abf2723581867f78e109dd40b8eaaa 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   Tensor<2, 3> t;
   t[0][0] = 1;
index 558aef67cc9e742d9b5815d20c6dc837a2ca86f7..888f9f76f0ad929e4b2b27d39f76ddebb9262d2f 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   Tensor<4, 2> t;
   t[0][0][0][0] = 1;
index a5808d5fdf7139c6866204a8e5b6819dbbbc606e..cb52034b40a1ece386ef301ad6b6fb8d83e36bfd 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   Tensor<4, 3> t;
   t[0][0][0][0] = 1;
index 6211a166f5bcb2965681bb75ffda4afa095b6081..a6fc8904d9032053709fcbc3869a4d8b37e3a62d 100644 (file)
@@ -76,9 +76,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 63f8115a5efd6463838d806e3552af46e605984a..b1af06cdb29b5efc5b44a80290e01dc8468ae262 100644 (file)
@@ -78,9 +78,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 2ba0f0028140bb2b32b1fb70d1d058531a8e4a2a..0a3e1f2e35bd226a227a8a90ab75dc2719e99482 100644 (file)
@@ -61,9 +61,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 1f090c8f7f6f47127ffb52cba17a1c4dee72baf6..8ba4043ecee3b8ca32902cd06a8c93e0c2fc1e5c 100644 (file)
@@ -45,9 +45,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 1d4bbe45c1edb979c4aca760c753e2da4b55fefb..6318bf86b8779bc9804eafe5acb5180b3f7666b9 100644 (file)
@@ -46,9 +46,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<4>();
   test<5>();
index 27c018addbd364821b2fa460f9b9b4542c538c2c..925f82dff4bcda06f1a3c07540378cf97456922a 100644 (file)
@@ -204,22 +204,20 @@ check_function(const Functions::FlowFunction<dim> &f,
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   if (true)
     {
       deallog << " Functions::StokesCosine<2>" << std::endl;
       Functions::StokesCosine<2> f(1.);
-      check_function(f, 4, logfile);
+      check_function(f, 4, deallog.get_file_stream());
     }
 
   if (true)
     {
       deallog << " Functions::StokesCosine<3>" << std::endl;
       Functions::StokesCosine<3> f(1.);
-      check_function(f, 4, logfile);
+      check_function(f, 4, deallog.get_file_stream());
     }
 
   if (true)
@@ -229,27 +227,27 @@ main()
       // Use odd number of points to
       // avoid lines with
       // discontinuous derivatives.
-      check_function(f, 5, logfile);
+      check_function(f, 5, deallog.get_file_stream());
     }
 
   if (true)
     {
       deallog << "Functions::Kovasznay" << std::endl;
       Functions::Kovasznay f(10.);
-      check_function(f, 4, logfile);
+      check_function(f, 4, deallog.get_file_stream());
     }
 
   if (true)
     {
       deallog << "Functions::PoisseuilleFlow<2>" << std::endl;
       Functions::PoisseuilleFlow<2> f(.8, 10.);
-      check_function(f, 4, logfile);
+      check_function(f, 4, deallog.get_file_stream());
     }
 
   if (true)
     {
       deallog << "Functions::PoisseuilleFlow<3>" << std::endl;
       Functions::PoisseuilleFlow<3> f(.8, 10.);
-      check_function(f, 4, logfile);
+      check_function(f, 4, deallog.get_file_stream());
     }
 }
index 4775a3ad665227feec58a22d70d1fb4a755d7f6f..de885c881c6a92f97111114c7160019589dad33a 100644 (file)
@@ -67,9 +67,7 @@ check2()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check1<1>();
   check1<2>();
index be9d0a145877905ec4da321a7caf083ebe05b827..e21f1286012a3b239d32136b449511724af069c5 100644 (file)
@@ -78,9 +78,7 @@ check2()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check1<1>();
   check1<2>();
index f806c2ccc288af4327bb0360e5ad4539152ac1d5..478a2da3b6050f571636a69b78d14bf167e9a497 100644 (file)
@@ -65,9 +65,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<1>();
   check<2>();
index b9eb3f839a90fb6cced907c7d7d8298080429bd1..47d974f2e1b51e26ccf29605f5b1af75e9275b2f 100644 (file)
@@ -82,9 +82,7 @@ check1()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check1<1>();
   check1<2>();
index 8e9115156734b7da6a108bcd1008f125f3ef6275..9904952f0e0f1b7a72b028327755b271f7a105f3 100644 (file)
@@ -133,9 +133,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<1, 1>();
   check<2, 1>();
index 68561a37cfb8e1dbad90e839ead4cf6d4d99fcc7..9832b346bfb8fa1588f47effd81285e3d51d6d11 100644 (file)
@@ -128,9 +128,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<1>();
   check<2>();
index e03cab43619e1d668866c6472eb65a913337d4a9..094439153197f8a1f624689919248112f712b5d4 100644 (file)
@@ -133,9 +133,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<1>();
   check<2>();
index d590333c24dde7161afda95277596a6b8571ec3b..c22f7056b50d6bc5833de2588a4d730d547ea4a6 100644 (file)
@@ -69,9 +69,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<1>();
   check<2>();
index 3a5643924e594a91e0bfd548106fb33b1f4a9fcf..6bbc9fdd31443b41d2c18792fc992c81ab006b20 100644 (file)
@@ -27,7 +27,6 @@
 
 #define MAX_DIM 3
 #define MAX_N_COMPONENT 7
-#define LOG_FILE "output"
 #define NUMBER double
 
 #define TESTEE Functions::ConstantFunction
@@ -204,6 +203,7 @@ test_n_components(const std::vector<NUMBER> &component_data)
 int
 main()
 {
+  initlog();
   // Create data for each component
 
   std::vector<NUMBER> component_data(MAX_N_COMPONENT);
@@ -212,9 +212,6 @@ main()
     component_data.assign(data, data + MAX_N_COMPONENT);
   }
 
-  std::ofstream logfile(LOG_FILE);
-  deallog.attach(logfile);
-
   test_n_components<1, NUMBER>(component_data);
   test_n_components<2, NUMBER>(component_data);
   test_n_components<3, NUMBER>(component_data);
index 1e157f2cdb8528c0e84fbfbc2a9a6cbcbd9fe5e1..06c67e9cb25171bb529013805fc2fb084aee0766 100644 (file)
@@ -74,9 +74,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<1>();
 }
index bf5d0ff689b16af5f9140430f29c7e6ee9b2174e..eab9d564faf8260c558275008dd729e1ae1f1291 100644 (file)
@@ -72,9 +72,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<1>();
 }
index 8e610a73bb25182f3de194bcf8f4fc9b59cc9da7..fa0c2cead4a7f5bf0a0879ea94bad0421eaa8678 100644 (file)
@@ -238,9 +238,7 @@ check_function_derivative(const Functions::FlowFunction<dim> &f,
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   Functions::LSingularityFunction     fl;
   Functions::LSingularityGradFunction flg;
index 1163a2cc8faee4544de60a9e251ad55a9e182309..b355e3c0e6819403a47cefa41ca8699e6399c202 100644 (file)
@@ -163,9 +163,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<3>();
 }
index 08dcc056f079b717928f9e3cd2722378f25e2f48..08e43e0542f7c683b0c40640d06b192a2d223621 100644 (file)
@@ -214,9 +214,7 @@ check()
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   check<3>();
 }
index b75b9ceff58fac389320837ca4f196e210b11131..605d48820089d0182e6017c6958f90b9241d1a96 100644 (file)
@@ -84,10 +84,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   check<2>();
 
index 7b8cd4e7489be0572057f6ad5e0df231eeaf87f9..a552dcb78354576ffd68e9d0b6a9968b7b6434aa 100644 (file)
@@ -93,10 +93,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   check<2>();
 
index 86763ab0495218ca25e9ade7c4a6e351555a71a8..9bdd16e229d837639b461aaaf61f7390b2f7bb99 100644 (file)
@@ -115,10 +115,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index ce0ad4fd6201f2346fdfaaf3db55253fb085c3bc..0f8658ed7716cee60021d47c8a76256893484f7e 100644 (file)
@@ -95,10 +95,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   check<2>();
 
index f9ce032f73f8066e4d4319bebf6fddfb413808ef..b54f3fa7f30e78cf32d2b21b02c9ce780d08e768 100644 (file)
@@ -103,10 +103,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   check<2>();
 
index e11e27a4ded5852623f6c9e262cab8b154fd4bfa..c86310d0a526aefdeabfef0e5bcdb061498d8fb2 100644 (file)
@@ -92,10 +92,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 20ccc24fda805a56aaff54558d1ae0d69b3e152e..034b6b9422163f7071dc3fd9b07bdf61a9fcb56e 100644 (file)
@@ -29,9 +29,8 @@ using namespace Polynomials;
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   const std::vector<Polynomial<double>> p =
     Hierarchical::generate_complete_basis(10);
index dc5dc53b40473819bb3db847df6b6fe3725934bd..9ce57f7a6577b7370f120982296f2b20e1838962 100644 (file)
@@ -57,9 +57,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   // the isnan() function (which we call in is_finite()) helpfully
   // produces a floating point exception when called with a signalling
index 9b48fdcab28c1ba9e696f9125f1e33c5fd4a3ea0..e2c7c41d12b797795c48fc63c4c2c3fe7ba55db3 100644 (file)
@@ -138,9 +138,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   // the isnan() function (which we call in is_finite()) helpfully
   // produces a floating point exception when called with a signalling
index ce8a3f06ea9983850d03815faf550e9ad12ac574..5dfd94999ddc1cf5ce68300ca8081309156d1a19 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog << std::numeric_limits<double>::infinity() << std::endl;
   deallog << -std::numeric_limits<double>::infinity() << std::endl;
index 708f8b82b216dbc014b8f6912c04caf4174a8d49..733e26d4327af24d129b3f7e248fe03df645145b 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   // the isnan() function (which we call in is_finite()) helpfully
   // produces a floating point exception when called with a signalling
index 6f2a31d75049bba91ebc152133d28e895fd69630..7a9cb3b04984f6c6ebe4e2b9b9e2900c77a1552e 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog << numbers::PI << std::endl;
 
index 1b8a2d639e63f869525359b899b9e6bf63e87086..448d8068c2e719cf902376779f794f77ae3617dc 100644 (file)
@@ -23,9 +23,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog << numbers::PI * 2 << 42 << std::endl;
 
index f0fb3d4c95f62a3bf9860fcf20d1287432367cf3..ab96b697638efc9ff99a277016b6fc8a037d7eaa 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   {
     LogStream log;
 
-    log.attach(logfile);
+    log.attach(deallog.get_file_stream());
     log.log_thread_id(false);
 
     log << "This should be printed!";
index 02b2d584c827343b783e51be836a9343a6c739c0..955a87c410465eb060d375b8cd5937a7f9d6f8e4 100644 (file)
@@ -59,9 +59,8 @@ check(const number &x)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check(std::complex<float>(1.5, 2.5));
   check(std::complex<float>(-1.5, -2.5));
index 92998d01d4b9a070af79354c586dc7238d1e67da..3c75312e41890498f0f13e402bbe30de849ef953 100644 (file)
@@ -44,9 +44,8 @@ check(const number &x)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check((float)1.5);
   check((float)-1.5);
index a723b20ec60ef37e63c8f009f7cd88f895e27e20..cec989b280be0dc6169588ed6cc0aaf4386520b0 100644 (file)
@@ -39,9 +39,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 9d0a34173f24bb4021c9a0a186ff8dd358b69ac8..c9735fd75875285e6f1c5ff5ba7128b27ce9c172 100644 (file)
@@ -46,9 +46,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index f87ab6dc98689840cf15427c6feeca5c21c986b6..04786e796e9e4500d5a54a08faddb209b11f627b 100644 (file)
@@ -60,9 +60,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<1, float>();
   check<2, float>();
index 64e2034023fb1e300f489b1834ed349fde878215..34d3703cb47cd4ef60919dac8a30981b211b1c81 100644 (file)
@@ -52,9 +52,7 @@ interpolation_conditions(const std::vector<Polynomial<double>> &polynomials)
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   interpolation_conditions(HermiteInterpolation::generate_complete_basis(6));
   plot(HermiteInterpolation::generate_complete_basis(6));
index d42cfff4eb2107e70105fd00cc85b55e1d3ba8d1..7cd8d02d38ef9ba5485f6fedf4e8f1dfdde271d3 100644 (file)
@@ -79,9 +79,8 @@ check_lge(unsigned int n)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   QTrapez<1>   trapez;
   QSimpson<1>  simpson;
index 55591e9c9e23086e657144066abc8ec96d921edd..bd969f8b7fc232b34d01cedffbfa814ce5241fe9 100644 (file)
@@ -226,9 +226,8 @@ check_poly(const Quadrature<1> &q)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("LagrangeEquidistant");
   for (unsigned i = 1; i < 10; i += 2)
index 72f32f57a7b61bb4d03a4e356f5dda6a092411d1..304c0d4c0494903465a512f458ab60a57ce7197e 100644 (file)
@@ -114,9 +114,8 @@ check_lge(unsigned int n)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("LagrangeEquidistant");
   for (unsigned i = 8; i < 18; i += 2)
index 439464edaf17f945ad8187dea45d2fe6c76277ba..cd061778faa3524055169535b1398a28f1682e11 100644 (file)
@@ -93,9 +93,8 @@ check_lge(unsigned int n)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("LagrangeEquidistant");
   for (unsigned i = 1; i < 8; i += 2)
index bda0abf6a29ecb6fc0d434160b10cf4d4f51c1ac..3434818947301b1e97edc3953df70c0f12c51e48 100644 (file)
@@ -57,9 +57,8 @@ check_poly(const unsigned int n)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check_poly(10);
   check_poly(50);
index 633f581697d8561c0b01b1838ce952aabd205ef9..385a1796479f2b34ae2de32efbd0c694defaa65c 100644 (file)
@@ -164,9 +164,8 @@ check_dimensions(const std::vector<Polynomial<double>> &p)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   deallog.push("Lagrange");
   std::vector<Polynomial<double>> p;
index bb16c598d4a5e699ae5f9d8034a09a83f3700fe6..8c2b1fd3e1ed2a5d36f6f9c73ca17309fad5187f 100644 (file)
@@ -58,10 +58,8 @@ plot(const PolynomialsBDM<dim> &poly)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   PolynomialsBDM<2> p20(0);
   PolynomialsBDM<2> p21(1);
index c1264c1c128595a87e1d84804e0f7226689e28a1..e578a85e4b474c5c32882fecd93924e292361dcf 100644 (file)
@@ -81,11 +81,8 @@ plot(const PolynomialsBDM<dim> &poly)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
-
 
   PolynomialsBDM<3> p31(1);
   PolynomialsBDM<3> p32(2);
index 7bca2553b44a2e3f31a07ecfb7bac9adf9368641..ad7dde099349da56f7b18870430f2810a907810d 100644 (file)
@@ -167,9 +167,8 @@ check_poly_bubble(const PolynomialsBernardiRaugel<dim> &poly)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   PolynomialsBernardiRaugel<2> p_2d(1);
   check_poly_q(p_2d);
index 59133e8c2256913e5870de8fdbb737c3c7fe9eeb..8dc9a4844d868a3f3425a85e512116bf67a15bc1 100644 (file)
@@ -81,9 +81,8 @@ check_poly(const unsigned int n)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check_poly(25);
 }
index df3fe6ffb9076cdc391f7407fd8ab3cbf6412ba2..2bde054a3e9e97252e968042fde378050c4e6cb6 100644 (file)
@@ -58,9 +58,8 @@ plot(const PolynomialsRaviartThomas<dim> &poly)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   PolynomialsRaviartThomas<2> p20(0);
   PolynomialsRaviartThomas<2> p21(1);
index 8c2467f2442f163e2623aa54225b4caa49e633bb..484c8e87ac2ca2a534041c4015909f2622b4669d 100644 (file)
@@ -59,9 +59,8 @@ plot(const PolynomialsRT_Bubbles<dim> &poly)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   PolynomialsRT_Bubbles<2> p20(1);
   PolynomialsRT_Bubbles<2> p21(2);
index 7674990c342059ad967acec4a43be1f2afd65b79..8654777e4a7baa632deb310cf2d67f56d603b9ef 100644 (file)
@@ -103,9 +103,8 @@ check_rt()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(0);
-  deallog.attach(logfile);
 
   deallog.push("BDM");
   check_bdm<2>();
index 73bb4e44134c0fa19233155babac143c6f88ae88..1a06046da647c1a17e002b937d7189a35b580add 100644 (file)
@@ -35,9 +35,8 @@ compare(const U &u, const V &v)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   typedef Tensor<0, 1> T;
   T                    t1(13.), t2(42);
index 20bac1dceb18083a0d3b304f7ecede011c1f0f9b..6acc1b35a4752730c4aede91af15ce5e064f981d 100644 (file)
@@ -44,9 +44,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<float>();
   check<double>();
index 9c7d4d70f28b42541752b01166d6c209e310cabc..6d3db44c665cf95637337a096605c0a50543a8e5 100644 (file)
@@ -44,9 +44,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<float>();
   check<double>();
index 962bc49f624a1eb2e5917edb9db5c5e6868b7d48..93149f4be83a1b10aba4be485f451265eae9a659 100644 (file)
@@ -43,9 +43,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<float>();
   check<double>();
index 43490e494b030559c494a6b248657b4306d486d1..204446a66fe7b4476c7f1893d965b0840ad09964 100644 (file)
@@ -46,9 +46,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<float>();
   check<double>();
index 555863f9865de00b8f892b13a5eecfab655aa3e1..67bba0355fb525fc6d6a9b613d0d60dcc2045258 100644 (file)
@@ -44,9 +44,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   check<float>();
   check<double>();
index eb43d016c96c5983ed8c306877b9469eec91e67b..5b6b77b840b0e52e7e888bc2e0b8bdb17f56d754 100644 (file)
@@ -27,10 +27,9 @@ const int entries[] = {11, 12, 13, 21, 22, 23, 31, 32, 33, 58, 65, 78,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::fixed;
   deallog << std::setprecision(0);
-  deallog.attach(logfile);
 
   // a square table
   if (true)
index 4c5f8aa7ad2d9ebb4a4489b8b6ced5131b11eb96..3009be9a78dd82d938bb4c9c48e8af85edc2f138 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::fixed;
   deallog << std::setprecision(0);
-  deallog.attach(logfile);
 
   // rank=1
   {
index cd210140d91e636b03506f6fd1715af65052686a..1a145b4ad9ce5dbc42f9825e2d976d2f4f92e63a 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::fixed;
   deallog << std::setprecision(0);
-  deallog.attach(logfile);
 
   const std::string elements = "1 2 3 4 5 6";
   {
index 3cc6728b50bd4c623f84ee9b2dfcd03074578cc4..c2fe2ad08e86e9d4adf1ca57361c358486f88974 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::fixed;
   deallog << std::setprecision(0);
-  deallog.attach(logfile);
 
   // rank=1
   {
index 33352b543b0ef857da0264d4987e98305c4590ef..09d3e33711a0836c09ab27d86946ac9c73e61a48 100644 (file)
@@ -38,10 +38,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::fixed;
   deallog << std::setprecision(0);
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index e2ed89008707676529cfa59b73eadde3ca21ed5d..7e7ae6e48d2d5216544f3771cc9657a33c070b32 100644 (file)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   // set precision on the output
   // stream to 4 digits
-  logfile << std::setprecision(4);
+  deallog.get_file_stream() << std::setprecision(4);
 
   // but then set precision on the
   // table output to 2
@@ -45,9 +44,9 @@ main()
   table.set_precision("key", 2);
 
   // now output the table...
-  table.write_text(logfile);
+  table.write_text(deallog.get_file_stream());
   // ...and then output some other
   // number, hopefully with 4 digits
   // of precision
-  logfile << 0.123456789 << std::endl;
+  deallog.get_file_stream() << 0.123456789 << std::endl;
 }
index 65a7bc9e37abacd265b48a6a0856445493b2b3c3..287f21a505b475cc90c9d1f6f10ffc9ea150712b 100644 (file)
@@ -25,9 +25,8 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   const TableIndices<2> t1(84, 42);
   TableIndices<2>       t2;
index 48f54bae8a8da850552425581adc230cadc9d52a..bb95594c67a3d0ef6ecacfb38520fcb8ea6f62b2 100644 (file)
@@ -35,8 +35,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   {
     Threads::Task<> t1 = Threads::new_task(test, 1);
@@ -50,7 +49,10 @@ main()
     deallog << "OK" << std::endl;
   }
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index 28126f0f453026b08ead71fcb6e5451f760273e1..3d2029aa2cdb08943da0428b217e697fbd897f8d 100644 (file)
@@ -44,8 +44,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Threads::Task<> t1 = Threads::new_task(test, 1);
   Threads::Task<> t2 = Threads::new_task(test, 2);
@@ -55,7 +54,10 @@ main()
 
   deallog << "OK" << std::endl;
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index d5232f5be9c5d7775617d6644ca362ebf8808fd5..e06a6e3ddf28abdaab6796561bec03fb20c95d78 100644 (file)
@@ -39,8 +39,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   {
     Threads::Thread<> t1 = Threads::new_thread(test, 1);
@@ -52,7 +51,10 @@ main()
     deallog << "OK" << std::endl;
   }
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index 4d48d4ce0d285a6e8c0b03073caf6d851b8f1fb7..0d6deb1be7a73bd6b0fed3d140bc48bf080d40e4 100644 (file)
@@ -34,8 +34,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Threads::TaskGroup<> tg;
   tg += Threads::new_task(test, 1);
@@ -45,7 +44,10 @@ main()
 
   deallog << "OK" << std::endl;
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index a37709cd0433ec4b8a00459f495d9100685aaf92..5b5795669258201ed56efa11b43e37a1e23aed68 100644 (file)
@@ -35,8 +35,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   {
     Threads::new_task(test, 1);
@@ -44,7 +43,10 @@ main()
     deallog << "OK" << std::endl;
   }
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index f0f48d472b4caeca5b0d363f9ee0ecba795dd2f4..c3f3dbae67bfc8df84a70d215bc0532e60e1025b 100644 (file)
@@ -39,8 +39,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Threads::TaskGroup<double> tg;
   tg += Threads::new_task(std::bind(test, 1));
@@ -50,7 +49,10 @@ main()
 
   deallog << "OK" << std::endl;
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index 69275975a9ff58e985626d0633c4203f97f98acf..f84c7179f34001983e0ec5ddb24b63fac3578c55 100644 (file)
@@ -42,8 +42,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   int arg1 = 1;
   int arg2 = 2;
@@ -58,7 +57,10 @@ main()
 
   deallog << "OK" << std::endl;
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index d46352df61089194d463f59561a06137e2f7dad0..5fa5fd3ca79614e3313df33139df2ef93fd36487 100644 (file)
@@ -42,8 +42,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Threads::TaskGroup<double> tg;
 
@@ -55,7 +54,10 @@ main()
 
   deallog << "OK" << std::endl;
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index aec486c3b646f1711c4c27dea9dbc16bf3b91369..4f06ce13700b35e7d05f3b627aa9b58c0fd6fe63 100644 (file)
@@ -39,8 +39,7 @@ test(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Threads::ThreadGroup<double> tg;
   tg += Threads::new_thread(std::bind(test, 1));
@@ -50,7 +49,10 @@ main()
 
   deallog << "OK" << std::endl;
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index 587c35c53421883f92088d9d32c29ae9408f21d9..cd789ca10e86f03864cd7ab620dcad6faef959e2 100644 (file)
@@ -83,11 +83,7 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test();
-
-  deallog.detach();
-  logfile.close();
 }
index 004e04af7eaa6c4f54d1eb3347e898ad77f10fa0..744574136a72fa974f2ac78ff4ce87c0761e376e 100644 (file)
@@ -45,8 +45,7 @@ waiter(int i)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   worker_thread = Threads::new_thread(worker);
 
@@ -57,7 +56,10 @@ main()
   waiter_threads.join_all();
   deallog << "All waiting threads finished." << std::endl;
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index 861983bc3d86a57cfdc05614cd8ca637d014353c..21b4291916a13856f38b5a2c9da3990006d6f54c 100644 (file)
@@ -3164,8 +3164,8 @@ struct U
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
+
   using namespace Threads;
   ThreadGroup<X<0>>         tg;
   ThreadGroup<X<0> &>       tgr;
@@ -3662,7 +3662,10 @@ main()
   tgr.join_all();
   tgcr.join_all();
 
+  std::ofstream *out_stream =
+    dynamic_cast<std::ofstream *>(&deallog.get_file_stream());
+  Assert(out_stream != nullptr, ExcInternalError());
   deallog.detach();
-  logfile.close();
+  out_stream->close();
   sort_file_contents("output");
 }
index 33e5cc2b71d94bae49aa4d83e93083c7651b29da..25f3fe113cbe54a331525e5ef491044f8458ae0d 100644 (file)
@@ -27,8 +27,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   {
     // use std::cout so that no output is saved to the logfile, because it
index 50dd744cc8a0b6106d8ed878b1723af507a380ea..c8f708bb76eacde0db0009f0ddfeb01a47158b32 100644 (file)
@@ -72,8 +72,7 @@ burn(unsigned int n)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   Timer       t1, t2;
   TimerOutput tO(std::cout, TimerOutput::summary, TimerOutput::cpu_times);
index 56fdab9353c416c3d96295d8809b6d4dbcba8081..7125f82b5d02ca29a35d2bff2c4cc16cebb2803e 100644 (file)
 int
 main()
 {
-  std::string   logname = "output";
-  std::ofstream logfile(logname);
+  initlog();
 
   if (!std::is_pod<VectorizedArray<double>>::value)
-    logfile << "Not OK because VectorizedArray<double> is not POD!"
-            << std::endl;
+    deallog.get_file_stream()
+      << "Not OK because VectorizedArray<double> is not POD!" << std::endl;
 
   if (!std::is_trivial<VectorizedArray<double>>::value)
-    logfile << "Not OK because VectorizedArray<double> is not trivial!"
-            << std::endl;
+    deallog.get_file_stream()
+      << "Not OK because VectorizedArray<double> is not trivial!" << std::endl;
 
-  logfile << "OK" << std::endl;
-  logfile.close();
+  deallog.get_file_stream() << "OK" << std::endl;
 }
index d86bac9de59abcc26bc7956c1e842237c7581859..6acbd104b14b0e7b6d6b4d2971fc2c3946badc3c 100644 (file)
@@ -1 +1,2 @@
+
 OK
index f2d42a2ba9559f7a3bde857e923dabeee69381b6..1164fc9c1ddeec7045310c27551b0a16cdfbb06e 100644 (file)
@@ -178,10 +178,8 @@ do_project()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   do_project();
 }
index 8b43ab9061a1e04aa7e2e15caead77d206183ad4..093ea7a37bb881a214724d64cc6cfd193e906387 100644 (file)
@@ -189,10 +189,7 @@ do_project()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog << std::setprecision(3);
-
-  deallog.attach(logfile);
+  initlog();
 
   do_project();
 }
index add33ca06d98238dadd0fb76fa3008b3a6ee4b7d..7ca7726b66b399fb3686cfaafb26d886925143a3 100644 (file)
@@ -56,8 +56,6 @@
 #include <iostream>
 #include <string>
 
-std::ofstream logfile("output");
-
 template <int spacedim>
 class BEM
 {
@@ -114,8 +112,6 @@ template <int spacedim>
 void
 BEM<spacedim>::run()
 {
-  deallog.attach(logfile);
-
   ConvergenceTable table;
 
   if (spacedim == 2)
@@ -422,7 +418,7 @@ BEM<spacedim>::output_results()
     "error",
     DataOut<spacedim - 1, DoFHandler<spacedim - 1, spacedim>>::type_cell_data);
   dataout.build_patches();
-  dataout.write_vtk(logfile);
+  dataout.write_vtk(deallog.get_file_stream());
 }
 
 template <int spacedim>
@@ -445,13 +441,15 @@ BEM<spacedim>::write_grid(std::string filename)
 {
   GridOut grid_out;
   grid_out.set_flags(GridOutFlags::Ucd(true));
-  grid_out.write_ucd(tria, logfile);
-  grid_out.write_msh(tria, logfile);
+  grid_out.write_ucd(tria, deallog.get_file_stream());
+  grid_out.write_msh(tria, deallog.get_file_stream());
 }
 
 int
 main()
 {
+  initlog();
+
   BEM<2> bem;
   bem.run();
 
index cf55f5b19f82d1b782488974f3af10fac3a27c66..e432aca6a18d81dc5811e1c8466c8fbae35cd7d6 100644 (file)
@@ -41,9 +41,6 @@
 
 #include <string>
 
-std::ofstream logfile("output");
-
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -68,7 +65,7 @@ test(std::string filename)
   DataOut<dim, DoFHandler<dim, spacedim>> dataout;
   dataout.add_data_vector(dof_handler, numbering, "numbering");
   dataout.build_patches();
-  dataout.write_vtk(logfile);
+  dataout.write_vtk(deallog.get_file_stream());
 }
 
 
@@ -76,7 +73,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
   deallog << "Test<1,2>" << std::endl;
   test<1, 2>(SOURCE_DIR "/grids/circle_2.inp");
 
index 0437e257a8041cdb72665517ded9fe3d891bba86..55c31ea6566d1fea156a5dd6f6702dc2a8cac3cf 100644 (file)
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   const unsigned int dim = 1;
 
index 4f65e6b2b445d22d3ff1419cf7a0c2ba7c95ae2f..ce10c131c9b0e753b5a0f1d55d82781c7526d05f 100644 (file)
@@ -39,8 +39,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim>
 class Identity : public Function<dim>
 {
@@ -68,7 +66,7 @@ public:
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   int fe_degree      = 2;
   int mapping_degree = 2;
index e35d6e68123710053886d091c09b94795a888935..11f1f795300c1609e96a5372815a536f75a9c5d6 100644 (file)
@@ -203,10 +203,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1, 2>();
index a4791fe20ab1ec170aec3a76b33e5b57eb8f4c66..02a850b4089cba988bdf9178e122d7e8c5177ae5 100644 (file)
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   const unsigned int dim = 1;
 
index 96a07b983580db590cfc917858db769b6220f2e1..1885175dfa451a2f875a7b2bc11023d110c65fde 100644 (file)
 #include <deal.II/numerics/data_out.h>
 #include <deal.II/numerics/vector_tools.h>
 
-
-
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -183,7 +179,7 @@ test(std::string filename)
   dataout.attach_triangulation(triangulation);
   dataout.add_data_vector(projected_directional_derivative, "derivative");
   dataout.build_patches();
-  dataout.write_vtk(logfile);
+  dataout.write_vtk(deallog.get_file_stream());
 }
 
 
@@ -191,8 +187,8 @@ test(std::string filename)
 int
 main()
 {
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
 
   deallog << "Test <1,2>" << std::endl;
   test<1, 2>(SOURCE_DIR "/grids/circle_4.inp");
index 4f12d8a2cde3cc57c353652946c57d5e550f8550..9ebb885a93b22612f174621a73d501870ba0a41e 100644 (file)
@@ -49,9 +49,6 @@
 #include <deal.II/numerics/vector_tools.h>
 
 
-
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename, unsigned int degree = 1)
@@ -118,8 +115,8 @@ test(std::string filename, unsigned int degree = 1)
 int
 main()
 {
-  logfile.precision(4);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
 
   deallog << "Test <1,2>, Q1, Q2, Q3" << std::endl;
   test<1, 2>(SOURCE_DIR "/grids/circle_4.inp", 1);
index 26139981a8be1d916833ac0c838680fe9870803f..a87fefb2bf40a1c40d88ac425a7089d30fddcef6 100644 (file)
@@ -25,8 +25,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -39,14 +37,14 @@ test(std::string filename)
 
   GridOut grid_out;
   grid_out.set_flags(GridOutFlags::Ucd(true));
-  grid_out.write_ucd(tria, logfile);
-  grid_out.write_msh(tria, logfile);
+  grid_out.write_ucd(tria, deallog.get_file_stream());
+  grid_out.write_msh(tria, deallog.get_file_stream());
 }
 
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<1, 2>(SOURCE_DIR "/grids/circle_1.inp");
   test<2, 3>(SOURCE_DIR "/grids/square.inp");
index 71ebab3659f93e080bc51354f8b4ad09f5600116..d1f21b2b1abebde0b88ee950edb2219dfad5e401 100644 (file)
@@ -25,8 +25,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -38,13 +36,13 @@ test(std::string filename)
   gi.read_ucd(in);
 
   GridOut grid_out;
-  grid_out.write_gnuplot(tria, logfile);
+  grid_out.write_gnuplot(tria, deallog.get_file_stream());
 }
 
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<2, 3>(SOURCE_DIR "/grids/square.inp");
   test<2, 3>(SOURCE_DIR "/grids/sphere_1.inp");
index 6a81b5d5a3c55407ded3c5a5533de56072c4bdce..8f65a7f553b9c0682e4157f025918965eee22ce6 100644 (file)
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
 {
-  logfile << " Tria<" << dim << "," << spacedim << ">: " << std::endl;
+  deallog.get_file_stream()
+    << " Tria<" << dim << "," << spacedim << ">: " << std::endl;
   Triangulation<dim, spacedim> tria;
   GridIn<dim, spacedim>        gi;
   gi.attach_triangulation(tria);
@@ -52,13 +51,13 @@ test(std::string filename)
       ptria.execute_coarsening_and_refinement();
     }
 
-  ptria.write_flags(logfile);
+  ptria.write_flags(deallog.get_file_stream());
 }
 
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<2, 3>(SOURCE_DIR "/grids/square.inp");
   test<2, 3>(SOURCE_DIR "/grids/sphere_1.inp");
index 24ff532979e450eb359cd07e0eab297c1ad2c998..90a23cf0b12df5b9f932fd4698187a0b1275120b 100644 (file)
@@ -29,8 +29,6 @@
 
 #include <string>
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -49,14 +47,14 @@ test(std::string filename)
   for (unsigned int cycle = 0; cycle < 3; ++cycle)
     {
       tria.refine_global(1);
-      grid_out.write_msh(tria, logfile);
+      grid_out.write_msh(tria, deallog.get_file_stream());
     }
 }
 
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "Test<1,2>" << std::endl;
   test<1, 2>(SOURCE_DIR "/grids/circle_1.inp");
index 645b990a81aa8fd01c5a12cdb23e9d52b8115b22..2f83bd52147758cfbe9bc81f6971bcdab6d579b5 100644 (file)
@@ -43,8 +43,6 @@
 
 #include <string>
 
-std::ofstream logfile("output");
-
 double
 test(const unsigned int n,
      const unsigned int exponent,
@@ -135,7 +133,7 @@ newton_binomial(unsigned int a, unsigned int b)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
   deallog << std::fixed;
   deallog << std::setprecision(5);
   const double a = 1, b = 5.;
index e72874b152e9b4acc592938e8c863e580594e00a..5656b63f8dfbb6ef15b921d229d24a939ebd0efc 100644 (file)
@@ -45,9 +45,6 @@
 
 using namespace std;
 
-std::ofstream logfile("output");
-
-
 // Returns the following integral: /int_0^1 x^N * ln(|x-point|/alpha) dx
 double
 log_integral(const unsigned int N, const double point, const double alpha);
@@ -55,7 +52,8 @@ log_integral(const unsigned int N, const double point, const double alpha);
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
+
   deallog << std::fixed;
   deallog << std::setprecision(10);
 
index 421a4e062e3b7ba18a5ec3bbdad49f2eeea9bf98..d9e2f87eb93b96def44a17ec0e2eecb04e11fc9b 100644 (file)
@@ -32,8 +32,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -86,7 +84,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<2, 3>(SOURCE_DIR "/grids/square.inp");
   test<2, 3>(SOURCE_DIR "/grids/sphere_1.inp");
index d05a913552890dcf0cd5432b953f787c6ee8e5ff..a03e7f55dc4d01ea7a1c058b253dc1fa9890399f 100644 (file)
@@ -34,8 +34,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim>
 class X : public Function<dim>
 {
@@ -101,7 +99,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<2, 3>(SOURCE_DIR "/grids/square.inp");
   test<2, 3>(SOURCE_DIR "/grids/sphere_1.inp");
index 7e47db450e3ec2bb2600a42be9c342dfcf41f284..56891472094f7b8bc9839582bbc6962ecfa5d0bd 100644 (file)
@@ -33,8 +33,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 void
 test()
 {
@@ -93,7 +91,7 @@ test()
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test();
 
index 449ed1d83809cd8aff6799b4f29a7686dbf2e10e..692392c69a3955aa88efbbf03ae16531570110f3 100644 (file)
@@ -34,8 +34,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim>
 class X : public Function<dim>
 {
@@ -111,7 +109,7 @@ test()
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test();
 
index 19574936b351bfb61e14c7d148233a6c003cc6bf..5097d08c8a3b27369618c38dd5d61134d15fa791 100644 (file)
@@ -34,8 +34,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 void
 test()
 {
@@ -100,7 +98,7 @@ test()
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test();
 
index dda5141420892386b1fa46555b6a85bda4b54582..403fa3f5469964962b167bd3f4cc480708579374 100644 (file)
@@ -43,8 +43,6 @@
 using namespace dealii;
 
 
-std::ofstream logfile("output");
-
 void
 test()
 {
@@ -109,7 +107,7 @@ test()
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test();
 
index d62faa88d8d102d23c5d946631ce35f474995f11..c3971a9fac792569a03d2c328da8e11e8f90745b 100644 (file)
@@ -41,9 +41,6 @@
 
 #include <string>
 
-std::ofstream logfile("output");
-
-
 template <int dim, int spacedim>
 void
 test(std::string filename, unsigned int n)
@@ -82,7 +79,7 @@ test(std::string filename, unsigned int n)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   for (unsigned int n = 1; n < 8; ++n)
     {
index 5d1f00c870a281766c2eb14a1a9e9b9a935fc66c..559310ec836742aa612ae8b47832174d43e4d755 100644 (file)
@@ -43,9 +43,6 @@
 #include <string>
 
 
-std::ofstream logfile("output");
-
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -72,7 +69,7 @@ test(std::string filename)
   DataOut<dim, DoFHandler<dim, spacedim>> dataout;
   dataout.add_data_vector(dof_handler, interpolated_one, "numbering");
   dataout.build_patches();
-  dataout.write_vtk(logfile);
+  dataout.write_vtk(deallog.get_file_stream());
 }
 
 
@@ -80,7 +77,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "Test<1,2>" << std::endl;
   test<1, 2>(SOURCE_DIR "/grids/circle_2.inp");
index d1b749114d8834380a239038379c8e83408e71b2..dc0ca0754402f5d6e65326bbaf4504553a80565b 100644 (file)
@@ -43,9 +43,6 @@
 
 #include <string>
 
-
-std::ofstream logfile("output");
-
 // Test interpolation on system of finite elements.
 
 template <int dim, int spacedim>
@@ -82,7 +79,7 @@ test(std::string filename)
   dataout.attach_dof_handler(dof_handler);
   dataout.add_data_vector(interpolated_one, "test");
   dataout.build_patches();
-  dataout.write_vtk(logfile);
+  dataout.write_vtk(deallog.get_file_stream());
 }
 
 
@@ -90,7 +87,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "Test<1,2>" << std::endl;
   test<1, 2>(SOURCE_DIR "/grids/circle_2.inp");
index 5e48d51e83480410d07d761d68b7be05eb414f54..3aad29399bbc95b1a53200748fc5d0a39193a37c 100644 (file)
@@ -33,8 +33,6 @@
 
 #include <string>
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -47,7 +45,7 @@ test(std::string filename)
 
   GridOut grid_out;
   grid_out.set_flags(GridOutFlags::Ucd(true));
-  grid_out.write_ucd(tria, logfile);
+  grid_out.write_ucd(tria, deallog.get_file_stream());
 
   QTrapez<dim>                   quad;
   MappingQGeneric<dim, spacedim> mapping(1);
@@ -75,7 +73,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<1, 2>(SOURCE_DIR "/grids/circle_1.inp");
   test<2, 3>(SOURCE_DIR "/grids/square.inp");
index 4098a5f050620f90347e3c9a9e50d3b08741d951..81ff4f7ee1ef1643bd962323a29ff1164c3e68f2 100644 (file)
@@ -39,8 +39,6 @@
 
 #include <string>
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -64,7 +62,7 @@ test(std::string filename)
 
   GridOut grid_out;
   grid_out.set_flags(GridOutFlags::Ucd(true));
-  grid_out.write_ucd(tria, logfile);
+  grid_out.write_ucd(tria, deallog.get_file_stream());
 
   QTrapez<dim>                                     quad;
   MappingQ1Eulerian<dim, Vector<double>, spacedim> mapping(shift_dh, shift);
@@ -92,7 +90,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<1, 2>(SOURCE_DIR "/grids/circle_1.inp");
   test<2, 3>(SOURCE_DIR "/grids/square.inp");
index cf442e89b0c6ffd820c6e220d1725be918562c07..aa9f546c0bd3f29412d62887e0929c115dc831d5 100644 (file)
@@ -39,8 +39,6 @@
 
 #include <string>
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename, unsigned int degree)
@@ -64,7 +62,7 @@ test(std::string filename, unsigned int degree)
 
   GridOut grid_out;
   grid_out.set_flags(GridOutFlags::Ucd(true));
-  grid_out.write_ucd(tria, logfile);
+  grid_out.write_ucd(tria, deallog.get_file_stream());
 
   QTrapez<dim>                                    quad;
   MappingQEulerian<dim, Vector<double>, spacedim> mapping(degree,
@@ -95,7 +93,7 @@ test(std::string filename, unsigned int degree)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<1, 2>(SOURCE_DIR "/grids/circle_1.inp", 1);
   test<1, 2>(SOURCE_DIR "/grids/circle_1.inp", 2);
index 3403389d932581f2dfe4660e26cac719c91c626e..e853200c9d221c0eaaf7b9def5263e226a43c3ed 100644 (file)
@@ -42,9 +42,6 @@
 #include "../tests.h"
 
 
-std::ofstream logfile("output");
-
-
 template <int dim, int spacedim>
 void
 test()
@@ -73,7 +70,7 @@ test()
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<1, 2>();
   test<2, 3>();
index ac990d3cb0b156b9db20e7870fb63892c41216b9..7672fe0e4b8b3e437c2132b78ec29508b7cb7ec3 100644 (file)
@@ -34,7 +34,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
 
   Triangulation<2, 3> tria;
   GridIn<2, 3>        gi;
@@ -50,7 +50,7 @@ main()
 
 
   GridOut go;
-  go.write_ucd(tria, logfile);
+  go.write_ucd(tria, deallog.get_file_stream());
 
   return 0;
 }
index 32a20427df7abef3ade9a2aeece621ebc5294954..841453dd9a00192bb772c76bed7f4f6f300f439c 100644 (file)
@@ -1,6 +1,7 @@
+
 4 1 0 0 0
 1  -1.25 0 -0.0195312
 2  -1.25 0 -0.00976562
 3  -1.09375 0.0288444 -0.0195312
 4  -1.09375 0.0291878 -0.00976562
-1 10 quad    3 1 2 4 
+1 10 quad    3 1 2 4
index c59014867c41dd0699d5361fe93205f19fdc7b24..8c7d354fa74572a0275e98d40970b133fc346b85 100644 (file)
@@ -45,9 +45,6 @@
 #include <string>
 
 
-std::ofstream logfile("output");
-
-
 template <int dim, int spacedim>
 void
 test(std::string filename, unsigned int n)
@@ -78,7 +75,7 @@ test(std::string filename, unsigned int n)
   DataOut<dim, DoFHandler<dim, spacedim>> dataout;
   dataout.add_data_vector(dof_handler, projected_one, "projection");
   dataout.build_patches();
-  dataout.write_vtk(logfile);
+  dataout.write_vtk(deallog.get_file_stream());
 }
 
 
@@ -86,7 +83,7 @@ test(std::string filename, unsigned int n)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   for (unsigned int n = 1; n < 5; n++)
     {
index 20a0e267cf1ef719e30b9db1db0a41f75592b4ab..9d70d69f257e7ae770727a5063ceff9178a5dde3 100644 (file)
@@ -46,9 +46,6 @@
 #include <string>
 
 
-std::ofstream logfile("output");
-
-
 template <int dim, int spacedim>
 void
 test(std::string filename, unsigned int n)
@@ -81,7 +78,7 @@ test(std::string filename, unsigned int n)
   dataout.attach_dof_handler(dof_handler);
   dataout.add_data_vector(interpolated_one, "numbering");
   dataout.build_patches();
-  dataout.write_vtk(logfile);
+  dataout.write_vtk(deallog.get_file_stream());
 }
 
 
@@ -89,7 +86,7 @@ test(std::string filename, unsigned int n)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   for (unsigned int n = 1; n < 5; n++)
     {
index 8d7f1ce8816b7ddd0fd7dc17e90d6b5ddb46f961..31f4a8eec4b10d65ce39c2a828a090c6f560f752 100644 (file)
@@ -33,8 +33,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim, int spacedim>
 void
 test(std::string filename)
@@ -73,7 +71,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   test<2, 3>(SOURCE_DIR "/grids/square.inp");
   test<2, 3>(SOURCE_DIR "/grids/sphere_1.inp");
index 96e6d608bff5b0ed162e58f6fe23bf6343946252..14d2f1e22ac3be035e8f4300fcb10b948e21ae82 100644 (file)
@@ -37,8 +37,6 @@
 
 #include <string>
 
-std::ofstream logfile("output");
-
 // Computes the area and the outer normals of circles and spheres
 // which are more and more refined, and prints the error on the
 // output.
@@ -103,7 +101,7 @@ test(std::string filename)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "Test <1,2>" << std::endl;
   test<1, 2>(SOURCE_DIR "/grids/circle_1.inp");
index f1b2b0d866c1e9c91ca310ae32c61cfe3b65cbca..07a6f93713b2e399c47557f57414fba7c0438a5f 100644 (file)
@@ -25,9 +25,6 @@
 
 #include <deal.II/lac/full_matrix.h>
 
-std::ofstream logfile("output");
-
-
 template <typename number>
 void
 fill_matrix(FullMatrix<number> &A)
@@ -74,7 +71,7 @@ void display_tensor_2(Tensor<2, b> &T)
 int
 main()
 {
-  deallog.attach(logfile);
+  initlog();
 
   FullMatrix<double> A1(10, 10);
   Tensor<2, 3>       T1;
index 42c358a7f49a9a10f7feef0150e772948c9f6f89..a2ee0ad0fdffb1af009e0ae1cf4b61e8436b6a69 100644 (file)
@@ -70,12 +70,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index f20bf8419f7a64bfabc70a8b4efc226a55cd73f8..faebe85a0e2109e90d20e712e8c969da400899c3 100644 (file)
@@ -60,12 +60,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 8c91164aacce2330bb76111990263deca85c92ff..c496e88ef8421afcf45c645a3b197f0d89731658 100644 (file)
@@ -49,12 +49,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index fe6d816215bb2f8c39b24c925ab6a2c09fbb4bd1..e4ceb39b0ace1e50f2f88fdc2d126d615754fb60 100644 (file)
@@ -47,12 +47,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index d48151b1d8bd52c63526e693053694474df53dbb..a2690b8fff36792551262d50f842184b5afb6a27 100644 (file)
@@ -80,12 +80,11 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
-  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
+  initlog();
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index eb8208ceb2918f693e36981dd05c15cc82fe69d0..965e3e05c96e8d45353991a4ac519c3f0c6359ca 100644 (file)
@@ -52,12 +52,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 6abc3524b06e43ae386839a08fb8195023c8b498..4cc2f7d63682e91fb505d70abff03fa070429d8b 100644 (file)
@@ -121,12 +121,11 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
-  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
+  initlog();
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 9137b371b94f8f861871597bae319fe2e04fbbe3..6f586513ca708cd5ddd778d43b12e02db1598715 100644 (file)
@@ -182,12 +182,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 1261bb311a98da069523a85aa5f1009da16b0653..68a5166c77e669498527e87f7a9a5471a9f89644 100644 (file)
@@ -109,12 +109,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index b36fc8e12015f85f6ea1dde4e9d4311b26c4b9b4..5aad076a93821e035ae089d02e09e817da7a0e27 100644 (file)
@@ -50,12 +50,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 32d4f61c738170a49fc9e38645d9425fd356715d..3b0b6d84414b91c836665aa2567d04ad74411815 100644 (file)
@@ -108,12 +108,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index bd9461c3aac927963aa0fbad9afc88ad396f5134..2026c63197a4c143a22459a5d0c199f02905d9f9 100644 (file)
@@ -140,12 +140,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 7c074be4604b60b67d205e904200a65ae43578dc..252dcdf51f76a7a40aa036bf84dc0dae78aaaa0c 100644 (file)
@@ -73,12 +73,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 9617b1154226e4f96d8136958cd3fb9375484922..363e7dd8a907bf02958359481f6bef0f1a6efc67 100644 (file)
@@ -97,12 +97,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index d6514dc3ed0f13fced8f2ae42f8e2ac46b7a1a6d..9cd21dc2641fce41c5a7dfc9a44b9ebdc14db84e 100644 (file)
@@ -71,12 +71,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 67456aa87ed2a7b65d0453ac3bb58a5041b4b43a..3bc474ca57d2048d7c103695a3680a3762e7d91e 100644 (file)
@@ -66,13 +66,11 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   deal_II_exceptions::disable_abort_on_exception();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 638f9988e1ee875a1423db45600c3d35c2f691d9..25e697b4ddc2ac6d6ceaf01212e4f1e1176fe5f7 100644 (file)
@@ -116,11 +116,9 @@ main(int argc, char *argv[])
               ExcMessage("Current code works properly only with one process."));
 
   const unsigned int dim = 2;
-  std::ofstream      logfile;
   if (I_am_host)
     {
-      logfile.open("output");
-      deallog.attach(logfile);
+      initlog();
       deallog.push("2d");
     }
 
index f65040cf3004b781de4c1c8857f3eb8e6c8a1c03..997fceb3320578947701d0c234af8f462788ffdb 100644 (file)
@@ -70,12 +70,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index b8f84735b0e5706756e7e5cb82b76e48f9ec1f94..554c243cb3404c06f27e1391d6e9f1091f952fa1 100644 (file)
@@ -49,12 +49,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 0e72bcc734c293e52617fc9e73e175272f6fc5c8..bca4109b16b370b9bf345f1f67b259f3905ccd33 100644 (file)
@@ -47,12 +47,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index c62032ef69027b23253593375a4d4e6aebe3e7ec..087252c5246c2c136a0564533898f8bd1473a53e 100644 (file)
@@ -157,16 +157,14 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 34c6b4728509c44e36a99d94dc5c005ea75e013c..d6d7624b4f0531edbf8d86bc553fe2235090940f 100644 (file)
@@ -48,12 +48,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 4dc6dd735c074da7285392f81dc17bd624cc9bf6..ffa2423112f0bcbdb16c9f6e5aba2829afb19fb4 100644 (file)
@@ -80,12 +80,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 4dfedc0ab0d9b12d6f9d5661391a73b4ac78b29e..d8044149c9d68c6387a3af8678c5ee19711f8443 100644 (file)
@@ -52,12 +52,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index fbc48bf4154811e3eb80277c1e79b1345df3382b..363877882bd8c7f11f654449d5f2ccdb668fbee0 100644 (file)
@@ -122,12 +122,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index cd33573fca4d6d2a7b4b4f7e314c1f9b8964274b..d351428b34302b06033e7cd466b39b04576d2819 100644 (file)
@@ -119,12 +119,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index c01cef1e462497dac3bfdd8dfbe30bbb86044f87..90743e5ce570a032c556d79814bcd7814d86d1db 100644 (file)
@@ -118,12 +118,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index dcdbc8c6c73ed7d3be6f7affa1dd01de930368b5..75c4bc4103471d71811f87488eca6171f4b07e1a 100644 (file)
@@ -109,12 +109,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 12ff4d6a121c2a9b12e12f262d4e77d415bf6235..774bbd390a7e3d5d7a002590bb4978bcdfa8d651 100644 (file)
@@ -50,12 +50,11 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
-  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
+  initlog();
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index e52ecca6eaf8dde290fb502ad30fbf1482d730d8..c6cd18798b47b3416f4534670863c305e12d8db6 100644 (file)
@@ -108,12 +108,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 1fcf4b5a50f0d70dd6e68cb081030a3f5dd9c186..b2af8ffbce1f864cb9835ec33787331ed2e56ebd 100644 (file)
@@ -97,6 +97,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -104,10 +105,7 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 170594a55d26f2486348f6b077652d1bbf2b1669..ecda3881a81ee95718f5156135ce98a81f574f04 100644 (file)
@@ -73,6 +73,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -80,10 +81,7 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 712bf448ee5f5ca2cc3c00c7ebf5c686ca244752..b4ddbcd964248ef3477361c1f2416244e05c8e26 100644 (file)
@@ -97,6 +97,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -104,10 +105,7 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 7bc4f38d7605b12f1f80c1aa25418acbf7dfc278..65111464bb311b4b9c0c577f3743c58b54bf88e0 100644 (file)
@@ -86,6 +86,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -93,10 +94,7 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index c024d42eb222fc2789268de2084505e4d5e51bb3..fceda6ad79ba8d1ac12e523c3a939e5e429f266a 100644 (file)
@@ -65,6 +65,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -72,10 +73,7 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index eedede2805ce41c9ca9c01d6c53a254da5d204b8..6abed2c8d05a63cd8057eb309c36ed8b3d0dbdfb 100644 (file)
@@ -97,6 +97,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -104,8 +105,5 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
 }
index 39472e857e7ce013a48acd2eac0a0680576abc05..ab25f19f214260c8a6b79174f4c463e6b67534c1 100644 (file)
@@ -66,13 +66,12 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
+
   deal_II_exceptions::disable_abort_on_exception();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 2760a0a33adc68cf34f7a1ee4e49196d4b5c5620..4d1fc27cc445586d9c3743aaa2bbaf01e6a20caa 100644 (file)
@@ -116,11 +116,9 @@ main(int argc, char *argv[])
               ExcMessage("Current code works properly only with one process."));
 
   const unsigned int dim = 3;
-  std::ofstream      logfile;
   if (I_am_host)
     {
-      logfile.open("output");
-      deallog.attach(logfile);
+      initlog();
       deallog.push("3d");
     }
 
index 808f9bb092acc26072bc40ea49da7e9dd34c1bb7..3f09de10132a8a1ae949df40ee51e540790f20d8 100644 (file)
@@ -56,6 +56,8 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
+
   deal_II_exceptions::disable_abort_on_exception();
 
 #ifdef DEAL_II_WITH_MPI
@@ -65,13 +67,10 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
   deallog.push("2d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index d1502756d1b61e04215481b997cb5305342a17f0..00cb10e7bc95c17fb1e6a1d47f298365e3898ceb 100644 (file)
@@ -40,8 +40,6 @@
 #include "../tests.h"
 
 
-std::ofstream logfile("output");
-
 template <int dim>
 void
 test(unsigned n_refinements)
@@ -134,8 +132,7 @@ main(int argc, char *argv[])
 
   if (rank == 0)
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       deallog.push("2d");
       test<2>(n_refinements);
index 2f98a0217bd21fa0ca66a433247850c7ef6d7514..59e9180e6e2a715693aaae82c41947d8f0706be9 100644 (file)
@@ -79,6 +79,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -86,13 +87,10 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index a29640225e472a02a5d85b6b354ed451b30e7881..0d93aa7af8325ee1f8b730cc781f98845d12b03c 100644 (file)
@@ -114,6 +114,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -121,13 +122,10 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 3c17d5fe05c543a4fcdcfd075bade103476e576d..4a029295018b020a563deb125a72dd778eb4d4b2 100644 (file)
@@ -137,6 +137,7 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
 #ifdef DEAL_II_WITH_MPI
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 #else
@@ -144,13 +145,10 @@ main(int argc, char *argv[])
   (void)argv;
 #endif
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index a41b9379582eb0419726333344db928c4fd3a98a..815a271d27bf4b8d6275521eeb8c25117f02094d 100644 (file)
@@ -103,15 +103,13 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
   deallog.push("3d");
-  test<3>(logfile);
+  test<3>(deallog.get_file_stream());
   deallog.pop();
 }
index 43f61da191b0f5c375c915417e662e1299375254..3458c529128945a4c6c19243fc31559fa7253cf2 100644 (file)
@@ -84,12 +84,10 @@ test(std::ostream & /*out*/)
 int
 main(int argc, char *argv[])
 {
+  initlog();
   Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
 
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-
   deallog.push("2d");
-  test<2>(logfile);
+  test<2>(deallog.get_file_stream());
   deallog.pop();
 }
index 3d40fdeb8776dc22dcad0748e9c992b505125030..73575c9026ab6a8f5d3642026a683b3396782d92 100644 (file)
@@ -141,10 +141,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("2d");
   check<2>();
index a6717ec54df78121bd6af98ade5e3b1131f55c52..054be965d82c6f8ad9f3e2ff5e2faea958001612 100644 (file)
@@ -162,10 +162,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("2d");
   check<2>();
index 0a15919668854d1f703e20d6cd7226e7a5847643..26a65d65aea301b2ef62e5cc5d5cf9411501c3d9 100644 (file)
@@ -49,9 +49,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
 template <int dim>
 class ExactSolution : public Function<dim>
 {
@@ -412,11 +409,9 @@ test()
 int
 main()
 {
-  logfile.precision(2);
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 777dd5fe7531a709e47e8d0d71009ea2af06e50d..d566bfe5b0190a332db4acd6fdaf722e1862877c 100644 (file)
@@ -71,10 +71,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
 
index cd81096da69fe083519c19964527642252b1421a..9ce751e158942db5945358c1258a9bc9b1d507ae 100644 (file)
@@ -71,10 +71,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
 
index 6831d078e252a7efad3b19c42b6a781cc897aac1..434eda0138c4c854edd78ea797756fd032e20a7b 100644 (file)
@@ -71,10 +71,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<3>();
 
index afd113eefe327cf5acff9bb1dfb9f5ee66da2ec8..0aa2f0b5a908c83e7216498a681cd5478d6b69a5 100644 (file)
@@ -143,10 +143,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile << std::setprecision(2);
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 2146dd8aef287edb22c81950b6ec7fb682f4d695..bc6bc19470730a400c44d4164fc7699f0fbfd4e0 100644 (file)
@@ -143,10 +143,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile << std::setprecision(2);
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   check<1>();
   check<2>();
index 351ca5b7b4b9f808899fff06f632e9e68227b11c..e43a26077d9fb5fdd00b807677f5a46daa7213f2 100644 (file)
@@ -58,10 +58,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 00364cd8ff1fdce671f3d25877ccdace5dbd72a3..de2beacf17997c9ac3e597aac096741bfdb0e023 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index eb9098bcceef3beaf3dffd0fa59b873e84795acb..41751bc052b9dfef3f2d502f1ac04041db6e7d41 100644 (file)
@@ -64,10 +64,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index cb05882b129ccbafae6a35f1ba7140e0a88a9b87..5adf3dc57c1df4723a9ddf612e5ca976a27a51ce 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 8273994054e1b8c29ebc48156555fc6db58a1f49..7077dc0016450b1258dea07e2f8c8eaedece66aa 100644 (file)
@@ -83,10 +83,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 5fdc48e4b580f8a1d3959d673212cc6b6621b180..6b2a558d9c3252268bd2f9c0ee70ee100d9052af 100644 (file)
@@ -105,10 +105,8 @@ test_with_wrong_face_orientation(const hp::FECollection<3> &fe)
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(3);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   hp::FECollection<3> fe;
   for (unsigned int i = 0; i < 4; ++i)
index 7b9edc2526d20d0c78fa0d25008982cc8b161d81..75e846c5f2a38a2a638035694a5d523913f1536d 100644 (file)
@@ -52,11 +52,8 @@ char logname[] = "output";
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(3);
-
-  deallog.attach(logfile);
-
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   std::vector<Point<2>> points_glob;
   std::vector<Point<2>> points;
index 7cbbe57313d954b31f8b8ac30f4d20b0b957a2fc..cb5ec78d7d9d1146e953d710fcc33699210d9599 100644 (file)
@@ -19,9 +19,6 @@
 // constraint between degrees of freedom 3->14->17->6->3 with the algorithm
 // that is presently in make_hanging_node_constraints
 
-char logname[] = "output";
-
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 
@@ -53,10 +50,8 @@ char logname[] = "output";
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(3);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
 
   // create a mesh like this:
index 5701e66584594a429ea634fff4b26e4a993e2f4c..2b6f3f39a47df87b4ba954c7d2d617b75294edcc 100644 (file)
@@ -52,10 +52,8 @@ char logname[] = "output";
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(3);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
 
   // create a mesh like this (viewed
index 0a7bd2b563e5a3436fa66bb7295466225ff61936..8382f194c0102f51a6a68d99adcbd3d4b183a804 100644 (file)
@@ -36,9 +36,6 @@
 #include "../tests.h"
 
 
-std::ofstream logfile("output");
-
-
 template <int dim>
 void
 test()
@@ -101,9 +98,8 @@ test()
 int
 main()
 {
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   // this test depends on the right
   // starting value of the random
index af5008c1f9086f33217c1897291666b909351b47..f57acbb96414d567d02335830cb7570cbde23ccc 100644 (file)
@@ -18,9 +18,6 @@
 // a test where a degree of freedom was constrained multiple times,
 // but with different weights. see the hp paper for more on this
 
-char logname[] = "output";
-
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 
@@ -52,11 +49,8 @@ char logname[] = "output";
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(3);
-
-  deallog.attach(logfile);
-
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   // create a mesh like this (viewed
   // from top):
index 1a738df6d86cbd857b8bc0ebca8db352469defee..6f1c339e58cb0fc8b30e4588e7041aba2469ab53 100644 (file)
@@ -117,10 +117,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(7);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(7);
 
 
   test<2>();
index e37b9199b1fbd9267f9086cf2d4290aed620a05e..3a6f97345c0f5832bfcd256a2064487d365e2ec7 100644 (file)
@@ -114,10 +114,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 0204276906c196fb217c0237f360fcaf7e18d8ba..c1f9687bca6581daffa4beb57ece72ef3dc77fa0 100644 (file)
@@ -127,10 +127,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 50783554608ed5eb1f9b6002224975338392149e..d75145a4e658b627fc8473685df1380f3b65ccd4 100644 (file)
@@ -138,10 +138,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(3);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test<3>();
 }
index 3a16a026d043d93fa1fb3564300a4d1fbaa6c45e..22ef021c9bf5865e186dc8a4ad9044af14e245ff 100644 (file)
@@ -17,9 +17,6 @@
 
 // a modified version of step-27 that crashes because of circular constraints.
 
-char logname[] = "output";
-
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 #include <deal.II/base/timer.h>
@@ -674,11 +671,10 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile << std::setprecision(4);
+  initlog();
+  deallog.get_file_stream().precision(4);
   deallog << std::setprecision(4);
 
-  deallog.attach(logfile);
   try
     {
       LaplaceProblem<3> laplace_problem_2d;
index ebf0e0d0acbc5143d13b85ea9cfb9549b471feb7..483f5cd211dc713f98fb308e83457b9868028c11 100644 (file)
@@ -679,11 +679,9 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(3);
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
   try
     {
       LaplaceProblem<3> laplace_problem_2d;
index b146c9ee5d709be90bd3b7ec1b956a93bf1547bf..49108435cf656d53b7fff834bf0e1bd21bfd3d31 100644 (file)
 // used with hp::DoFHandler in 1d. Test that this is no longer the case
 
 
-#include "../tests.h"
-std::ofstream logfile("output");
-
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 #include <deal.II/base/table_handler.h>
@@ -58,6 +54,8 @@ std::ofstream logfile("output");
 #include <list>
 #include <sstream>
 
+#include "../tests.h"
+
 
 template <int dim>
 class ExactSolution : public Function<dim>
@@ -118,11 +116,9 @@ main()
 {
   try
     {
-      logfile.precision(2);
+      initlog();
       deallog << std::setprecision(2);
 
-      deallog.attach(logfile);
-
       test<1>();
       test<2>();
       test<3>();
index c330fc00a492990fbad65c68e54ec8b41e8113f9..a83e4b9c319374591745063215d2fc104818be37 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index d88bb4a127d0b85f7aab214a969f607da8153068..882775c698822fdfe612a05995013ae2056a5bca 100644 (file)
@@ -158,10 +158,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 0eba53d967f5fdbb3a4bf45a167a983d4f7bfaa7..4629dd1e55f1930a174dade0be6ea71bbdc46101 100644 (file)
@@ -144,10 +144,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index dadabc2dcced0c735b8f2bd2b2489d6845207946..9cde4cd3049ddd71d97c1a70f354e5c53853bf68 100644 (file)
@@ -137,10 +137,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 4292b80bc2146ff351871046d0c3f21f3bd329ef..8873bc5c50b0f8470a51540721c873f83f02ff30 100644 (file)
@@ -151,10 +151,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 116fc56305e45cf644a9318a2cd840bf0c8456d5..2acea70da190fc3ef23e4758d7d5b521ef07d654 100644 (file)
@@ -144,10 +144,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index d4d16ee4e6fe00d3e0346c642b55327f235e0b75..90f95cd323e46064a9e4f297f9b60e6bdc3ccc90 100644 (file)
@@ -150,9 +150,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index f119709809fe929696d4aab33f02636cdf0b822d..459d3fc57c5f69c27c961e29819f8c3e34e61396 100644 (file)
@@ -139,9 +139,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 77200dce177c07b52e67527fcb394640d5bae7a8..a969e345aba20b0db21ab3ec56333ff5d13d1c87 100644 (file)
@@ -143,10 +143,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 8738b57ad3c133bc64220c209f510195cc97c00c..02c140564dbfa72e3b85924cea5f73b56e6ba386 100644 (file)
@@ -134,10 +134,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index e8b7d1b6691a21610e6c8e51a5f2e9bd8663d2f0..843685c4391912633435ea771e7385ec51ae3d28 100644 (file)
@@ -150,10 +150,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 4c9158c9d7ce5675589fa6b23ad8c7f7a28c4ad4..f7cdd50a14985a618167654fc13762b888874a38 100644 (file)
@@ -141,10 +141,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index bb015547e720416940283dac76346f5026b70d10..829bfd03eb299758d139fe3ad1c10aee57d6ac06 100644 (file)
@@ -144,10 +144,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 12b7cc614b88378595a8765046c9ff509af62d96..10091ed8b51d7b30ad940f0041f6a6f48e83a679 100644 (file)
@@ -139,10 +139,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 182760d2670fb37b123add476412fb64b972e9d0..fdf72d4bc235d6b0a3844255a642af0e48203e0d 100644 (file)
@@ -151,10 +151,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index afda48272352ecff4f1aa90cecfe69488ea557ba..22232d4ec60259c7327f942dfca2e6af5bf1ba4c 100644 (file)
@@ -144,10 +144,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 2b26917c03d25f46a0a045f496f8a1ea24ca97b5..23aba4c6d227cc03ca05cbbecb292addd5f6d3ec 100644 (file)
@@ -140,10 +140,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("2d");
   check<2>();
index f78fe7ba85936cc8f8fc4b5c86dc3f6cd5997bf0..e901dc12da8e665a454cf8df15b77bc59ebb3936 100644 (file)
@@ -150,9 +150,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index ca526172f6b1252a4b4a57857e7caf122481478b..db1cef1c52ef0c50d4db3f9a3b489f9e33f8461a 100644 (file)
@@ -139,9 +139,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index ca87c0b2238381939d59606d99b54f1251edfefb..d4bb0251a06444b1e496bd5be34232474f1f39c3 100644 (file)
@@ -113,12 +113,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test();
 
   deallog << "OK" << std::endl;
index 8b29c828dec65390a01820385453489a91a0bdef..b3fd2ea6612335704b3a0eecc507b2884fd6727a 100644 (file)
@@ -119,10 +119,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 60a918fca24495791e13997918d003a141a3dce8..ee6916366f6a82aa652bea2592735aee72aabc7d 100644 (file)
@@ -119,10 +119,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index e42723b2b766be46646b9e02f0918a99735fcbb1..b950b2b5166b51dff47f454f26534e97d7115132 100644 (file)
@@ -119,10 +119,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index b61ab8e9f23892e97961d6f3b69ff7c5c7d71a4b..4cf7423dc88100e6051a656f8f086a91dbf92c2e 100644 (file)
@@ -49,10 +49,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 8a328ae485b8b7754a2df89eac5b753d1e03501b..6e58e64e951d19daa2259f50ada1480acaaee26d 100644 (file)
@@ -59,10 +59,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 98bc92c3b8d96dfeddee6460b14b1835361a47ca..a3357177097d242acd266ccec9eee8b52162f2ed 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index b80a96e756d93495a8fb9d1ea10b11c1b9b382f4..1e76a66e020a4b33f4a8aa30cc47cc9941d797a2 100644 (file)
@@ -66,10 +66,8 @@ main()
 {
   deal_II_exceptions::disable_abort_on_exception();
 
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index c4c4e33e4fab5a822e8b9004f4c02b9b2e754481..af047f07dd58f5865a54a3e39dd89bd414186d76 100644 (file)
@@ -162,10 +162,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 51c0fd1078b615f7e7598312c722ba8353a5f0e6..bf2163bc51c0f8a3df638affc6d8bc5b15aee6f1 100644 (file)
@@ -88,10 +88,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 6d21867b7efe6683d2a5771d1750e3c08d1f85f9..e42cafd7aa56e72406cb8ea2502b7ba9a79dea5e 100644 (file)
@@ -128,10 +128,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index a15b81a304cc9f056d70027d54f3c468be089315..361da870ab80f6625c0f740ae318a163617d49a2 100644 (file)
@@ -101,10 +101,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 6066d23788dd24c32b5101800eb6755877d7d954..44bb61fad681d7c063fd899a9e51470dda828b9d 100644 (file)
@@ -151,10 +151,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   deallog << "Try dim == 1" << std::flush << std::endl;
   test<1>();
index c525e421a09b18a05902a6fafc80208487238ff4..51293a4fc5cef44b6b671a81a0762d8728f47d92 100644 (file)
@@ -153,10 +153,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   deallog << "Try dim == 1" << std::flush << std::endl;
   test<1>();
index cb3f8f5d0e15ed69e7d36b928a2b3119596d7d7d..be2a2f52d37416104599c4bea497f540e103f97c 100644 (file)
@@ -185,10 +185,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   deallog << "Try dim == 1" << std::flush << std::endl;
   test<1>();
index ee662452754010e4d5f5aef717a40c037c95e815..5ff15dcef1ede0b5c1a6b7274734948bc4b46361 100644 (file)
@@ -86,10 +86,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 33575702da41f726efb924fdc366cbd163f65642..e42d7804b4d332b0c423258a4c667f135990393c 100644 (file)
@@ -88,10 +88,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 1302a35b02750902fe2108ef2bbcb8ddb7996ebb..3ad9074485fc43698e51b4e32c10141e40969bd4 100644 (file)
@@ -45,10 +45,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 66d2eb64f275a6c74be5deef5d3e1fefc840a066..6af89e0d00d2a0e6a15de9edfa66a25ffcde1781 100644 (file)
@@ -88,10 +88,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index f65bfde68125c0dd18122696843c78cfca6616f0..9eb618d1e25524c145895d09bb114353a14c3cde 100644 (file)
@@ -119,10 +119,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
 
index 140b10c5044fc5e79ac3b0db5a10b724be27ef26..d4c3265a0ac228debd6801beedfa13519fa06e0e 100644 (file)
@@ -124,10 +124,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
 
index 262a639c8a2563b543c60d8019f74ed2e08e83a7..8eb0747691b8ad5fe979151c5cb92e27afba6d34 100644 (file)
@@ -139,10 +139,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test<2>();
 
index 4eaf9648a5b5a5dd9776b05cce364378b1f4fecf..c06f942dfb3cc33ece575d69a4892116f1fc0953 100644 (file)
@@ -68,10 +68,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   deallog << "Try dim == 1" << std::flush << std::endl;
   test<1>();
index 7c0086e0666915d325d401cbd868938bcf152beb..93c79001842a5d82d0818ac21724afbd68c61adf 100644 (file)
@@ -80,10 +80,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
 
index c01e005b290415fd29af3ac7ef7aaa5ea5dd1c25..86a7db660f603811fea8fd0a037f06353a7852d8 100644 (file)
@@ -109,15 +109,14 @@ transfer(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "   1D solution transfer" << std::endl;
-  transfer<1>(logfile);
+  transfer<1>(deallog.get_file_stream());
 
   deallog << "   2D solution transfer" << std::endl;
-  transfer<2>(logfile);
+  transfer<2>(deallog.get_file_stream());
 
   deallog << "   3D solution transfer" << std::endl;
-  transfer<3>(logfile);
+  transfer<3>(deallog.get_file_stream());
 }
index 88848946ded1f5cdd31e22a1dbe8190ba17d6206..4fc2bd6da39bd5c46e0d870331ede9f8599666ee 100644 (file)
@@ -132,8 +132,7 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   deallog.push("2d");
   check<2>();
index b6190d6e677ff14c313c89d8e6fef0fc7ecfcd41..55eb5db8b7888d612d6b21820e4e03f2ae54b8b5 100644 (file)
@@ -73,10 +73,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 36ea801048e55a6b54d373bf530bb1a2c9e0ed0a..ffe873752035f24cb1466ea93b285c4212eac2d5 100644 (file)
@@ -104,10 +104,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(PRECISION);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(PRECISION);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deal_II_exceptions::disable_abort_on_exception();
 
index b1345e4e86f10e6675d8ec236b61437b9d73e2b5..c0582e13e5b911d24ae7249bccf612737c160f72 100644 (file)
@@ -102,10 +102,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(1);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(1);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   test<1>();
   test<2>();
index 73b13df47a09f7665448d81eeebd9563e8f6c186..aadaeab4220eb78ddd8fc16f0d75da28b3c820fc 100644 (file)
@@ -472,11 +472,8 @@ test_interpolation(const hp::FECollection<dim> &    fe,
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(7);
-
-  deallog.attach(logfile);
-  deallog.depth_console(0);
+  initlog();
+  deallog.get_file_stream().precision(7);
 
   test<1>();
   test<2>();
index 1aa7be3f6930992c726f409f50cb9f165b736b9a..cf5b6d43733547e91b2925d1cf9bc5effc23f0e5 100644 (file)
@@ -472,11 +472,8 @@ test_interpolation(const hp::FECollection<dim> &    fe,
 int
 main()
 {
-  std::ofstream logfile(logname);
-  logfile.precision(7);
-
-  deallog.attach(logfile);
-  deallog.depth_console(0);
+  initlog();
+  deallog.get_file_stream().precision(7);
 
   test<1>();
   test<2>();
index 600c05c04e385dada959760bfcaff6f38181fd5e..7fea1bbee0dbc110ad6fe4d54917cc6e9e2f7ccf 100644 (file)
@@ -219,11 +219,9 @@ test2cells(const unsigned int p1 = 2, const unsigned int p2 = 1)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
-
 
   try
     {
index 08469d737fcfcf5c4f152456a93f640366905bc4..f25e9367dd970fb8110c2f60a55e5dff7f42e3ab 100644 (file)
@@ -309,11 +309,9 @@ test2cells(const FiniteElement<dim> &fe_0,
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
-
 
   try
     {
index 2e860cd4bef1efa26d948cf6d7f5d08e175ed34a..b1fb63391e0c8c50641b7854bd97a05abad53073 100644 (file)
@@ -157,10 +157,8 @@ test_constraints_old(FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   FE_Q<2> fe_1(1);
   FE_Q<2> fe_2(2);
index 52dcc7fa0d0af6f1731ede8e4b8026cda213c1a1..4adf3a949c64dd3890c3a502aaa17f8ad6117d99 100644 (file)
@@ -50,9 +50,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
 template <int dim>
 void
 run(bool random_p, unsigned int *indx)
@@ -136,9 +133,8 @@ run_test(unsigned int *indx)
 int
 main()
 {
-  logfile.precision(8);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(8);
 
   unsigned int index[] = {1, 2, 3, 4, 5, 6, 7};
 
index 3fa72bc4fcdeb75a5c32b357f2673da909b82b8c..77f9763494d8b1c6b8d216b46737d5bdae28e066 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index b7cda8716e963a9a3f3dae5e768d3a248a13d5f2..e15126fdf9060919cb6243f8b5d2d1003f47a3b5 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index d54a5dbb3602d06d6211fd9f62d706ac6ee907c6..823679167fa17abcba6fd39c7992e6a3ba74a408 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index d107f8b2799e5562a2c6aac404e867a4d293b3a8..25c848021fa0666129c959cf7b07b98fa8e97f87 100644 (file)
@@ -84,10 +84,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 633fc47f85429bb05921594fded3422298a6a0f9..7c937c5befef5474309ad0d610ad11ebe635313e 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index b66caedaf3f030b69b1d3e75726477c917a2153f..d1c4f40db42c8dc84c29109301138d674011456d 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 37f448833a1a1659a3468f1752d4effd990f926f..e81ba01ce230f2e59e7556f665c835fe538d4904 100644 (file)
@@ -86,10 +86,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 6dea58dce7d84d13e4894299cb2bf959b587d3d5..0275811ad7fc8e9932bb0bada0acd4a7b6ae574d 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index e74af12ec9e12f657c4a7240816ad6b0dd4de674..3cf6b1af41b1fcfed99a1ad821fb1bcf111841aa 100644 (file)
@@ -84,10 +84,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index f2b46b2dec15b88bc92ab3fe0a1f5be5acccc38e..c3b31609ae530ac45048c1ed7aa5fe2cdd031586 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 49a5c9693eb1d280c90b81ca7321717c58426fca..999b81913658d30a568a3219ca6a3fe57e5f8463 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 2473b45020d44b438068ff5d638d068c2435539f..f9d265f712571180b80fb1ab8a2da4cfd9bf25c7 100644 (file)
@@ -84,10 +84,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 765db3f0658cb8034c55500ddd8f63300d7cd4c2..492c6ecbda07bcf018166953251eae41540620d2 100644 (file)
@@ -64,10 +64,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 4ae4f691d0a4cec2d4f9eca8317339d486c4c80b..f4d11d5f4ffe4be9dbb9ef9397ccaa0708253fdc 100644 (file)
@@ -64,10 +64,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 4beb20b24031debb814dd5303153c29b20a19940..27d90b9779f6d30547d4387fa1cc78c65e017ea5 100644 (file)
@@ -66,10 +66,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 600a52bbaf229ad1fb4e263ac2703d05d53e4e65..b068e72cd042499e9be7b21eb87f6422f0487e76 100644 (file)
@@ -93,10 +93,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index baa54863c5a4e22451eaa50544e5b718b71f57ce..af164c19b3ca8673b7a2d26bdd9eb6c185613593 100644 (file)
@@ -71,10 +71,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 0db59c4a16f961bd2988dbc742349812492c452b..d6d9ecbaa95c8210e098ee5189b860b7e7a72514 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index b31e2e73302de6e0151a272f0ca17066bfb63e41..b0e001cbf605313eec5d9bd9323033d54e80335d 100644 (file)
@@ -133,8 +133,7 @@ test(const bool apply_constrains, const unsigned int hp)
 int
 main(int argc, char *argv[])
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<2>(true, 0);
   test<2>(true, 1);
index a0284e7dfa54401ea66822cbe823a1ad0cabb3af..0ef9411cb9ae8fc1463ddcee6f9012aa2ccdbec0 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index dec36daee13290c291070187fc74d8e95967c2fa..6fce36387727c36828920b583c377e8cabad5a19 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index d9e1e54ac1bed40968026958f7ac4259f3234e63..85842eebc71c4afa9dd224d6b10a9c7c247288ba 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index c8a033f3d065b338beaf75b1375b88fc9e3f04c0..e179cd5bb111c73ab80331700f8f0490a3788d12 100644 (file)
@@ -73,10 +73,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index e57cddb8a3f21490d946b9ec0dd228113a257aef..7187dac8112b14e3aa2088037ab3f80d6c2ec494 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index a96f25245b8fa96ad6981265123980d0a6b48c9f..29a1ebc1e138834af205c3dc7f773382deca84e6 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 4e9046f794dceae0c07af1a3fd3449f3db8b4c79..6da8a369aba5cea913f21e053385a43923166553 100644 (file)
@@ -74,10 +74,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index ec322d01fcbfe9d73d2d8325ac78291653769487..c8bae11563e606c87efd44d50f80f46e6998842f 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 1fa198f760c99c5a09b4d8717d1a7530880f6bad..cb4ca92005a7b187dccc3c619cf4cc1bf472d4a1 100644 (file)
@@ -73,10 +73,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index e6aa290f9ced836a4c83e1985926a86a3e899e75..ebc6bdb298047135fd853fc87b8f548d3bec28b8 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 7783a82c6f2a2df898e19a7045aecc087bd5c0a0..9bbdef5578e7d37b244177c3e659a8195239c1d6 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 9706fbee9a16bf31c2035454603a6665ee4cc314..b4353c5ba4e55b20fcc90d6f9d91c125c03edbe1 100644 (file)
@@ -73,10 +73,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index de466ce601f3b497e02340fd16be27327a8b82ae..e6707d524a1ba14311543c9e9462883eff37cf1c 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 89ba55847c10afbc73e7c4210cc6955d2e1aa4e5..ecb4c2b7644882b2bda10ef299e32063fa48d803 100644 (file)
@@ -64,10 +64,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 98e8205c07e6da48e1d2fd7350d84bae6c0f35a8..cccecfb23064d2590d30f9ec9f9dd036fed5be81 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index b57a2fc2307b917b5ebe68c293c8104ceb969bc0..974663fee87ffec0da99ceaa6dd22744a31470e6 100644 (file)
@@ -71,10 +71,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 3e9714e6564b10c0d843c7fde9ef504d9418a9aa..ce4a56ca376060bed1627c9e45e9784b0d4f9432 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index eb3901c0a481ce034203580c51397100440bfa9a..f38afdcb7c94a215f6c0ba05bd62e2003c66d4ef 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index f64b242a5ccbf3cced84c02330285f2552194fdb..dd47910115ce2b751b3258b187621575ba921468 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 3441e552f3d9af72048ff4456984e19d4fa32dda..78fa4f900f146641d8c6defed112edc383acf493 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index f2450f1a2e9b9dff6724077e447c392c84f32585..f7bbcac6c5d9fc59d158d4177729c92f0a663929 100644 (file)
@@ -74,10 +74,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 2b2643644568311f8a1fe3f657999d1375e5fc3d..6f33c96c8d735bbbe8149ad0ae6d8d457dc0e0f4 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 7298fbec5b2a8ec8fc0bc4014abfdf2bc274606b..1963af759f179e6f210391df3c044ccabee3ad9b 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 6ac262da9a03d8cbcff92b33a1fd24fbec5c2327..8fe36f0e56306cc2d7ff97a908f34d42452001ea 100644 (file)
@@ -74,10 +74,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index fee9c008245cf028774eaddb152f5e9edad03da0..73f49dbdc5e26c4bd4aece418f66216a9e42d3cc 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 4c78ceab2e99be661cd7d9297f4cbb58a2ddb6cc..45576c28f73c22bffdc34b0df08770f1da2deff3 100644 (file)
@@ -73,10 +73,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 70abc0491d1ef82b81072aceaacb73d6c46a8ed5..1807fb812b5094d884e3f55d8aaf1a22c2b2afb1 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 3d40eb2186ae3f77f1ee9c0218f6e45128dbc8cb..dc4d9ed8afd2052da91c955332a4772b42af92f0 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index c8bb9b93141e42a0484fd22f4b10c46d8da9c3a9..495cc9cc83a1ce89b922e60ae73c52ef003e5788 100644 (file)
@@ -73,10 +73,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 867e1319c5d8a659fb0519209d8012d60c1ce06e..303eef281d6ce5620e8762a87f333be19d5ceb34 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 4eaf69d61dd360048fb695f6666744b679ecb065..a74263d022317b754a7c1bceb6f409dc4c315001 100644 (file)
@@ -63,10 +63,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 83262951f81d449a4c45f7f7bfb9eb8467bc8e99..ad9e7a2e04f1d984c88e9044543ae7c1aeced4d0 100644 (file)
@@ -71,10 +71,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 471be38541046acca8df3f94a6a367c02662e95f..333c1cfb5a262b7407edf28955833aacbc217e14 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<2>();
   test<3>();
index 782eccf2aa393b8fcf005a8a110acd6dd0941b53..d7dd9c9a646b7c37e3f51527fbc5e3bd2990da20 100644 (file)
@@ -104,12 +104,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 214eb7082b2ee6c1fa8df5623d4d655e0e2d858b..8cfb42f5225dee7a271c6e31961fc3bff86ca3a0 100644 (file)
@@ -148,11 +148,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
+  initlog();
   deallog << std::setprecision(2);
-
-  deallog.attach(logfile);
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 92a093741d3f708e721339a9e25094bb017ad003..139d4563635c42637b96ba47040c86493794c301 100644 (file)
@@ -131,12 +131,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 5db994cff01d042180c8316d3ea12c75643cd429..4257c455eff96595d23de05e5f34120f2e3490fa 100644 (file)
@@ -115,12 +115,10 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
+  deallog.get_file_stream().precision(3);
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 0d63b05649f035da7729bf7279917b14b62e8f38..df6f3748300edc61e870585839c9b4a0ab8e4ac4 100644 (file)
@@ -124,12 +124,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 3bdcee5b4b59d6da939a6ff9b308f19a9bc85839..0fef4614ae81695c7c62b11033c5c15e845c805f 100644 (file)
@@ -79,12 +79,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index cb374a1a8791e8288b666a29a5568c5b58a662af..e2e84cb56e5403e5dbe0a954c05724d8a9794d37 100644 (file)
@@ -262,12 +262,9 @@ diffusionMechanics<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   diffusionMechanics<DIMS> problem(1, 1);
   problem.run();
 }
index 23e4554bceb139ef6016b07bc92e9d42c582eea1..9dfb24c565c05ce346366d55341b5716404a9d1b 100644 (file)
@@ -88,12 +88,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 6247ce5965bec4081895fac462ad9d51c53a663e..c58227f6dff23a74b65ff2b3ab1b1bcd3c68e43a 100644 (file)
@@ -116,12 +116,10 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
+  deallog.get_file_stream().precision(3);
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index b81f05e22e343a23d86b3b00c7bee3fec235d513..d4a28deb9bd8b57fea78d0ba927fb921e542ddd4 100644 (file)
@@ -124,12 +124,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 17c1ea72a4b987ac6be007e5308945bf6db5c1eb..7db6c7a373e0101e6d7d2125d6e48639b82baa47 100644 (file)
@@ -121,12 +121,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index d3373f22d5d6fd3f56d36a15479d4f86b3143b55..1638313ce027432e864b29150d5d43c7eebc327a 100644 (file)
@@ -130,12 +130,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-
   test<1>();
   test<2>();
   test<3>();
index 625d90dedde74cc6afb04f831aea2f67bca04f04..160632bdb6e443fafe9203c4463c96a7d309b149 100644 (file)
@@ -50,10 +50,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index c8371528daf3c5eb7ebba1351c1a2b1fed2d99f4..93a10137875da2b586d0be9e77e40c96427b4d27 100644 (file)
@@ -39,10 +39,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 0dad7694c47eace5327efe710338ab17063e57e7..9626ed52a711c0a80f7be0887fbebe07c0c05ec1 100644 (file)
@@ -45,10 +45,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 3264ce1d674e88cb71463d7c53e34676e346403b..46b3eed5bfb05913c4af095629aaf26d4c5d4655 100644 (file)
@@ -45,10 +45,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 1e02295103ed729b86fbe6df1e7dc6cad7c147c8..7eb6691dbff86d40cbb99ea2b815c90b82a85534 100644 (file)
@@ -223,10 +223,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("1d");
   check<1>();
index 250e03476988aa1e1a33720eca3629f0fbde927b..b885eb4a1649574d5fa20130281855644962ec62 100644 (file)
@@ -156,10 +156,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 000e684385ba7cbcd5ff93a2faecec1c08145bba..f36510418b0b166c667964b640239754afdbd623 100644 (file)
@@ -105,10 +105,8 @@ test(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   CHECK_ALL(Q, 1);
   CHECK_ALL(Q, 2);
index 0879ef64e6c734529927a4c5a6f78723c8b4bf55..2ff545ba86363fc9e7b9c5ed1073e1abed530841 100644 (file)
@@ -106,8 +106,7 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<1>();
   test<2>();
index e9f5992ddcdfcc678cd402197408ba46b9b21ef9..824edab2247013245c768969e155720482e24793 100644 (file)
@@ -200,8 +200,7 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<2>();
   test<3>();
index c27b803ad70f594554fd876aa6637b8071300d5f..6f433e0a4bdf2eb2025525daed7850235b2dcce8 100644 (file)
@@ -109,8 +109,7 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<1>();
   test<2>();
index 99830d9effdef5b9a7b7f592e1a0fc995cb51339..ce4300b0120657faa6dbbdc9c0a0f8b9e024f2f6 100644 (file)
@@ -49,10 +49,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index 9a6832243b8911e0b49fa8af9c714574b1564b22..7596395dd810ba9f92157fe808361ee9728f41c8 100644 (file)
@@ -99,10 +99,8 @@ namespace Step27
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   Step27::MixedFECollection<1>().run();
   Step27::MixedFECollection<2>().run();
index c2a91c0719eb1a6d28978541898583074fa59ed2..c368348c1a93246f908ecdf13bec08351c0c7ddb 100644 (file)
@@ -82,10 +82,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   test<1>();
   test<2>();
index d158aadd493f8439c6d56dd4b03fc4824ab397e3..0cc645d6394aa2d2fb5b5c39349d602b283e3e18 100644 (file)
@@ -129,10 +129,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index bf46dea3bca36dec17436ff198077140f1cfcd18..eeb47f7d908626f4bc9688bc52a89649299f3201 100644 (file)
@@ -115,10 +115,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("3d");
   check<3>();
index 4a51755f51e9ce80d24ddb61f6dff561b091fffd..32e06851dddc8fc3416fb2f2141f0ebd5c3c1061 100644 (file)
@@ -111,10 +111,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   check<3>();
 }
index ed5dcf197a6a1fb4a8638a2727ba06faa89a2900..59e80ccfbd1d438fbffcb50d8b3ca73ce3255189 100644 (file)
@@ -141,10 +141,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("2d");
   check<2>();
index d5ec1a6adc7e6e403275d450e4767e151875b2fc..9a446709f1e120b8355850b8a34657ed36272fac 100644 (file)
@@ -122,10 +122,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 0435e7fd49f82c31bcfc218a6ed9f394e091dd3a..df663c201e343f57d3c11e538a9cdc576297a9cf 100644 (file)
@@ -104,10 +104,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(PRECISION);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(PRECISION);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deal_II_exceptions::disable_abort_on_exception();
 
index 1e68e2353a884a8e46a543db812ff60a1be74719..455ecd842fa99834a9521edbcf702bb9519c4146 100644 (file)
@@ -107,10 +107,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(PRECISION);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(PRECISION);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   test<1>();
   test<2>();
index 5c436fc2492df9cba6dc33ed42edbe6c640bd231..b1a1d8ff4d74beb11ba8920e306705d1c7414bd8 100644 (file)
@@ -98,10 +98,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(1);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(1);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   test<1>();
   test<2>();
index f4c606f2f142dbeedc7543791b76ab03c0a80505..0902922bc4bb2f8718fa5612290e3bf1ae0875ef 100644 (file)
@@ -240,15 +240,14 @@ transfer(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "   1D solution transfer" << std::endl;
-  transfer<1>(logfile);
+  transfer<1>(deallog.get_file_stream());
 
   deallog << "   2D solution transfer" << std::endl;
-  transfer<2>(logfile);
+  transfer<2>(deallog.get_file_stream());
 
   deallog << "   3D solution transfer" << std::endl;
-  transfer<3>(logfile);
+  transfer<3>(deallog.get_file_stream());
 }
index 4ad67e2e823eb9ebd7cfc0bdefd13855ce23a65e..3231fc4af89e48dfbbdc861473e3e3934b8600ed 100644 (file)
@@ -99,15 +99,14 @@ transfer(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "   1D solution transfer" << std::endl;
-  transfer<1>(logfile);
+  transfer<1>(deallog.get_file_stream());
 
   deallog << "   2D solution transfer" << std::endl;
-  transfer<2>(logfile);
+  transfer<2>(deallog.get_file_stream());
 
   deallog << "   3D solution transfer" << std::endl;
-  transfer<3>(logfile);
+  transfer<3>(deallog.get_file_stream());
 }
index 107118f2928ee4b274aaeedabf4775cac2afd9a5..a7f0abdeed7bcece31eeeeb5853ecc835c5cf3ac 100644 (file)
@@ -86,15 +86,14 @@ transfer(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "   1D solution transfer" << std::endl;
-  transfer<1>(logfile);
+  transfer<1>(deallog.get_file_stream());
 
   deallog << "   2D solution transfer" << std::endl;
-  transfer<2>(logfile);
+  transfer<2>(deallog.get_file_stream());
 
   deallog << "   3D solution transfer" << std::endl;
-  transfer<3>(logfile);
+  transfer<3>(deallog.get_file_stream());
 }
index a6487ed58eee5616e6cead1e223b481a17dfbdf3..4c0bd7c67cdee691ce309b83575fe92d1152ddd9 100644 (file)
@@ -235,15 +235,14 @@ transfer(std::ostream &out)
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   deallog << "   1D solution transfer" << std::endl;
-  transfer<1>(logfile);
+  transfer<1>(deallog.get_file_stream());
 
   deallog << "   2D solution transfer" << std::endl;
-  transfer<2>(logfile);
+  transfer<2>(deallog.get_file_stream());
 
   deallog << "   3D solution transfer" << std::endl;
-  transfer<3>(logfile);
+  transfer<3>(deallog.get_file_stream());
 }
index 9723517b86807eee06c32c7ff6adfa0c129681ac..4304caa77854322482acfdbab3bf3e7a52acefb6 100644 (file)
 // a hp-ified version of step-10
 
 
-#include "../tests.h"
-std::ofstream logfile("output");
-
-
 #include <deal.II/base/convergence_table.h>
 #include <deal.II/base/quadrature_lib.h>
 
@@ -42,6 +38,8 @@ std::ofstream logfile("output");
 
 #include <iostream>
 
+#include "../tests.h"
+
 const long double pi = 3.141592653589793238462643;
 
 
@@ -227,9 +225,8 @@ compute_pi_by_perimeter()
 int
 main()
 {
-  logfile.precision(6);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(6);
 
   gnuplot_output<2>();
 
index 3a36c118b33237ecd610944e44e8e5499cc3752b..d10ce90b6e6f29d443ec30ffb5125989e8e27648 100644 (file)
 // a hp-ified version of step-11
 
 
-#include "../tests.h"
-
-std::ofstream logfile("output");
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 #include <deal.II/base/table_handler.h>
@@ -54,6 +50,8 @@ std::ofstream logfile("output");
 #include <algorithm>
 #include <iostream>
 
+#include "../tests.h"
+
 
 template <int dim>
 class LaplaceProblem
@@ -231,11 +229,9 @@ main()
 {
   try
     {
-      logfile.precision(2);
+      initlog();
       deallog << std::setprecision(2);
 
-      deallog.attach(logfile);
-
       for (unsigned int mapping_degree = 1; mapping_degree <= 3;
            ++mapping_degree)
         LaplaceProblem<2>(mapping_degree).run();
index 67e875841a094e0bf2d25bd3f13d23638cfd9e4a..5637bb9e6cab3c2e911f88f6929a685993ef1fe1 100644 (file)
@@ -18,9 +18,6 @@
 // a hp-ified version of step-12
 
 
-#include "../tests.h"
-std::ofstream logfile("output");
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 #include <deal.II/base/timer.h>
@@ -51,6 +48,8 @@ std::ofstream logfile("output");
 
 #include <iostream>
 
+#include "../tests.h"
+
 
 template <int dim>
 class RHS : public Function<dim>
@@ -964,9 +963,8 @@ main()
 {
   try
     {
-      logfile.precision(2);
-
-      deallog.attach(logfile);
+      initlog();
+      deallog.get_file_stream().precision(2);
 
       DGMethod<2> dgmethod;
       dgmethod.run();
index fa982b6e7916af3f19298b5cda757332dc1ab17f..1528c835ecf6e223d2652666e8157197c0d77e11 100644 (file)
 // a hp-ified version of step-13
 
 
-#include "../tests.h"
-std::ofstream logfile("output");
-
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 #include <deal.II/base/table_handler.h>
@@ -57,6 +53,8 @@ std::ofstream logfile("output");
 #include <list>
 #include <sstream>
 
+#include "../tests.h"
+
 
 
 namespace Evaluation
@@ -810,11 +808,10 @@ main()
 {
   try
     {
-      logfile.precision(2);
+      initlog();
+      deallog.get_file_stream().precision(2);
       deallog << std::setprecision(2);
 
-      deallog.attach(logfile);
-
       solve_problem<2>("global");
       solve_problem<2>("kelly");
     }
index a92f939c3923974383d1b36d1ff62fe5bc0b89e6..0b0886ca6204659893bad5a059f13720783b5fcc 100644 (file)
@@ -37,9 +37,6 @@
 
 
 
-std::ofstream logfile("output");
-
-
 void make_grid(Triangulation<2> &triangulation)
 {
   const Point<2> center(1, 0);
@@ -110,9 +107,8 @@ void renumber_dofs(hp::DoFHandler<2> &dof_handler)
 int
 main()
 {
-  logfile.precision(2);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(2);
 
   Triangulation<2> triangulation;
   make_grid(triangulation);
index 8ecfacccc3eb3f1729931495e335ada603c7c262..fd5f20f66f841eeea5fe49f75d03d0d7d139ed01 100644 (file)
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
-
 class LaplaceProblem
 {
 public:
@@ -220,11 +216,10 @@ LaplaceProblem::run()
 int
 main()
 {
-  logfile.precision(2);
+  initlog();
+  deallog.get_file_stream().precision(2);
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   LaplaceProblem laplace_problem;
   laplace_problem.run();
 
index b1c44b819814970d9e399b0126723b04eec5f978..6f38acc78ca4d0d83c750a3f70ab79c3595df232 100644 (file)
@@ -51,9 +51,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
 
 class LaplaceProblem
 {
@@ -272,9 +269,8 @@ LaplaceProblem::run()
 int
 main()
 {
-  logfile.precision(6);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(6);
 
   LaplaceProblem laplace_problem;
   laplace_problem.run();
index 25cebac443225f66f4f74c52f8c01ed8d45e7487..7a059f10cc7e5009829a30d9c3dc292cb07be903 100644 (file)
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
-
 class LaplaceProblem
 {
 public:
@@ -282,9 +278,8 @@ LaplaceProblem::run()
 int
 main()
 {
-  logfile.precision(6);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(6);
 
   LaplaceProblem laplace_problem;
   laplace_problem.run();
index 697747bea6546612233e051e212cb5d77de2536a..20be7690f7e231f2b3809bacef1fc49f4ba40f23 100644 (file)
@@ -51,9 +51,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
 
 class LaplaceProblem
 {
@@ -272,9 +269,8 @@ LaplaceProblem::run()
 int
 main()
 {
-  logfile.precision(6);
-
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(6);
 
   LaplaceProblem laplace_problem;
   laplace_problem.run();
index 7d62497224b4b53e8a3b10b28b01944102646b0d..2f147e99d2113a0852673ec62c82f742887b4ef6 100644 (file)
 // a hp-ified version of step-4
 
 
-#include "../tests.h"
-std::ofstream logfile("output");
-
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 
@@ -50,6 +46,8 @@ std::ofstream logfile("output");
 
 #include <iostream>
 
+#include "../tests.h"
+
 
 
 template <int dim>
@@ -293,11 +291,10 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
-  logfile.precision(2);
+  initlog();
+  deallog.get_file_stream().precision(2);
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   {
     LaplaceProblem<2> laplace_problem_2d;
     laplace_problem_2d.run();
index 62113abdb8e3d20a6ea9eee6b5efe19d1889ccc6..6095825157ea77426edf382b5bf4230dcdeb5e07 100644 (file)
 // a hp-ified version of step-7
 
 
-#include "../tests.h"
-std::ofstream logfile("output");
-
-
 #include <deal.II/base/convergence_table.h>
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
@@ -58,6 +54,8 @@ std::ofstream logfile("output");
 #include <iostream>
 #include <typeinfo>
 
+#include "../tests.h"
+
 
 
 template <int dim>
@@ -667,11 +665,9 @@ HelmholtzProblem<dim>::run()
 int
 main()
 {
-  logfile.precision(2);
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   const unsigned int dim = 2;
 
   try
index 80a6e340bf4ba91d79518f832308fe7bab830edc..0672f0bfd1cc47aa72c5847f7b172ecf863bd256 100644 (file)
 // a hp-ified version of step-8
 
 
-#include "../tests.h"
-std::ofstream logfile("output");
-
-
 #include <deal.II/base/function.h>
 #include <deal.II/base/quadrature_lib.h>
 
@@ -55,6 +51,8 @@ std::ofstream logfile("output");
 
 #include <iostream>
 
+#include "../tests.h"
+
 
 
 template <int dim>
@@ -428,10 +426,9 @@ ElasticProblem<dim>::run()
 int
 main()
 {
-  logfile.precision(2);
+  initlog();
   deallog << std::setprecision(2);
-
-  deallog.attach(logfile);
+  deallog.get_file_stream().precision(2);
 
   try
     {
index 8a76cc581dd32e3bb8fe1c4404ee8941c997f545..90aefa5b6f3049d1c44a76bbe3508598f93162bb 100644 (file)
@@ -126,10 +126,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("2d");
   check<2>();
index 3486c925a65d644005c38f37a60699ba09d4991e..a08e208b615b6a53bf71614d61a8fa3c1936a7b5 100644 (file)
@@ -127,10 +127,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("2d");
   check<2>();
index 7b111293112730a44665ba9368f23226be1e3e3a..f0a203591b3a19b831e673901fd46a5a6f62948a 100644 (file)
@@ -126,10 +126,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("2d");
   check<2>();
index 4bfa553f771596d540925b035372964830a836c5..44a6f72b575f728acf1ee2034d6334ab2f2716da 100644 (file)
@@ -133,10 +133,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("2d");
   check<2>();
index bd946eff3f0076fd4f20bb0ab11e3d001289cb4b..c5517676f279807003c158367d4634e3ed6f9a43 100644 (file)
@@ -129,10 +129,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("2d");
   check<2>();
index 2d5250f1cf13c737a9a97be587e31c700ae1e4ce..b669fd81a4b0197e72881837b7b6fcb270128a19 100644 (file)
@@ -99,11 +99,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
+  initlog();
   deallog << std::setprecision(4) << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 92dcd2d73b90e09f3852fdf415503846dc40cefa..363edac15c755f66dd3f47c569cbe0c2651b6866 100644 (file)
@@ -102,11 +102,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
+  initlog();
   deallog << std::setprecision(4) << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index d60a4c1d7a002c0610317f45df95b2c880abd638..3d60d7115737c69a40bffb8c1cdf18c7d64f25ee 100644 (file)
@@ -126,9 +126,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 77d2b87b93df8424230549743a16f1ecf6b2cb0d..5888e169e892cc8f4f5030982574182e7645558f 100644 (file)
@@ -126,9 +126,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("2d");
   check<2>();
index beaa723585ccc7a89be51f85f5f4ee7772795c51..f59afb0ddfb4d55fabf11afb76582c6737bb3733 100644 (file)
@@ -125,9 +125,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 49ab682e86a4047f995dd588fbf90355263f1320..8e1b6e009c7dc2a35f8dc31d674b4b4d4b176ae5 100644 (file)
@@ -133,9 +133,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 43f4472109c3dc5608a235a0d1c024984ffef36c..83785923e7a25ac960738c0f251b4a885f9d4761 100644 (file)
@@ -128,9 +128,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8) << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 2015c3c72e29a41ab4b390cf2779426e74638983..56669f83a3649a7169cae27b927bbba6d0e433f5 100644 (file)
@@ -90,11 +90,8 @@ test(const unsigned int size, const bool reinit_square)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   // Test square matrix initialization
   test(4, true);
index 57d95cf4e04f8703721b348bcaa69b3e5ed42d5c..a0a13c3432aea6217728e6d7541f8b5001efe1f2 100644 (file)
@@ -92,10 +92,8 @@ test_rect(unsigned int m, unsigned int n, const double *values)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test_rect(3, 4, &rect[0][0]);
   test_rect(4, 3, &rect[0][0]);
index 23b3bd9751a0978bda828732c2c78dd7a1fe3aa6..5c06b9595d42156a0438955964b570d7c83fb54d 100644 (file)
@@ -74,10 +74,8 @@ test(const unsigned int size, const bool nonsymmetric)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test(4, false);
   test(4, true);
index 1862cdc032b9a5ddd3a0cf29e9ca6e99ce101777..3c602c0f9326d9bcb631ab48f81d48eb3f70c5cc 100644 (file)
@@ -108,10 +108,8 @@ test_rect(unsigned int m, unsigned int n, const double *values)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test_rect(4, 4, &symm[0][0]);
   test_rect(4, 3, &rect[0][0]);
index a6153ded9382420ffba16854935b9092d29a099a..f4c5fa93cb116eef5e7ac41effe1873194453266 100644 (file)
@@ -110,10 +110,8 @@ test_rect(unsigned int m, unsigned int n, const double *values)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test_rect(4, 4, &symm[0][0]);
   test_rect(4, 3, &rect[0][0]);
index 9b762e7ae3925142fba5c097686e35bba731a5af..8cb10f89df8b2ff34f71343dcf10f600fbda0e32 100644 (file)
@@ -40,10 +40,8 @@ const double right[4][4] = {{4., -1., -1., -1.},
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(1);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(1);
 
   FullMatrix<double>       A(4, 4, &left[0][0]), B(4, 4, &right[0][0]);
   LAPACKFullMatrix<double> LA(4, 4), LB(4, 4);
index fb08674b73dbcf7e2c38e49dbed4172d5b4d347c..39dfc8991022a2d8491dc27e980e4319640547a2 100644 (file)
@@ -42,10 +42,8 @@ const double right[4][4] = {{4., -1., -1., -1.},
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(1);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(1);
 
   FullMatrix<double>       A(4, 4, &left[0][0]), B(4, 4, &right[0][0]);
   LAPACKFullMatrix<double> LA(4, 4), LB(4, 4);
index d1bba25ada633f750853a5359ff9a446df08d057..ee0750ad751c678d77352e043f9930dfd231d216 100644 (file)
@@ -37,10 +37,8 @@ const double left[4][4] = {{1.75, -0.433012701892219, 0.0, 0.0},
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(1);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(1);
 
   FullMatrix<double>       A(4, 4, &left[0][0]);
   LAPACKFullMatrix<double> LA(4, 4);
index 681b72bd390f34367eef511f1b15f19c1378a27c..31dc0a8abc8f89cd7749413723faf6daeafcec70 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test();
 }
index 49a92f71118a978f177dafce78ba468ae4615765..dde3dbf2d737c562956dec031b7ce14c98380fbe 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test();
 }
index 173c5142397c9ca9d84b08fbb05ff0b4e72f1237..f2c0de9c404ffa68e1cdf10cd06879859c74e0c9 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test();
 }
index 32e7363a15b1d031801b55bb8fec3e2efe94e15e..65c1e91388e57845adc1ce2152cac0d1d9f14bad 100644 (file)
@@ -57,10 +57,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test();
 }
index 4691fe28dd26d7ccdd9f00a7d446bfd7af54ba7a..88d26a226568bb3fe0d1b713aa5949b0620d55ea 100644 (file)
@@ -60,10 +60,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test();
 }
index 6bc8b4ab7b6088de6b002f0f7f639f2df848e511..7a0ada20f6bb8907623c5485811a5255bce9fff3 100644 (file)
@@ -62,10 +62,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test();
 }
index 78e5fe5694f54314e6e66a7555b44be6426a8d51..ab0f34c2b8e129e7b0c0a114fa7a82d851300684 100644 (file)
@@ -64,10 +64,8 @@ test(const bool is_singular)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test(false);
   test(true);
index d843218d15af4798ccf5ea70b249797199bf18d6..142122e2332bc3086f325dd58e02ce0002664114 100644 (file)
@@ -67,10 +67,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{1, 3, 11, 17, 32, 64, 200, 391}};
   for (const auto &s : sizes)
index a747ae547abd120afe1d0cd9738844d27ca7af6d..5b24ee88f5e584fdfe48a7fc9a8a825970895be6 100644 (file)
@@ -49,10 +49,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{1, 3, 11, 17, 32, 64, 200, 391}};
   for (const auto &s : sizes)
index 78cbb3aefec4a9d5d84b18099ced4dbe6f8f96ee..d7242adee02fb88e419ede2eecdcbd69fe82ffb0 100644 (file)
@@ -53,10 +53,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{1, 3, 11, 17, 32, 64, 200, 391}};
   for (const auto &s : sizes)
index f9fae28bcdfbc9df92a60a1be07bbbfba00b8106..31866956077c235049fce79766cef833622eda24 100644 (file)
@@ -63,10 +63,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{1, 3, 11, 17, 32, 64, 200, 391}};
   for (const auto &s : sizes)
index 3f3540b27588e0f535083138f1c90396098c7da8..7d1f3089e6d5a8109d6f9b4b9ba594a84769bad0 100644 (file)
@@ -48,10 +48,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{1, 3, 11, 17, 32, 64, 200, 391}};
   for (const auto &s : sizes)
index 3f6c54462751517889f704a0c0441396e03e19f4..4878fa2808e0a845652f6fa482e5b731526dc84d 100644 (file)
@@ -45,10 +45,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{17, 391}};
   for (const auto &s : sizes)
index 79d4d92f13b2d6a4f0991744b01478948fc57478..ddd796aee18183e5da2d01dbc488081869eeb1b8 100644 (file)
@@ -57,10 +57,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{17, 391}};
   for (const auto &s : sizes)
index 424260e8cbc46dbb1b6d8840cb8dc75734492b43..2e83b3cd0c9fca03ed76a0d9b503ab7d4a582af8 100644 (file)
@@ -60,10 +60,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{1, 3, 11}};
   for (const auto &s : sizes)
index 6adcbc8c5458e997d1207a7b23dd6f7c2f744f3f..ecc9defc068ad1620e23acdac3e69ea82c1824df 100644 (file)
@@ -80,10 +80,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test<double>();
 }
index 94d946a54c92a7160dcb744105043734ec3e4625..f7c374a410c7b7aca8060bd2210163da03b9e673 100644 (file)
@@ -82,10 +82,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test<double>();
 }
index e93af3b83ac4cadbd9f10a1a1866e4ffbd206fe6..0d3071885f61db8f30656eeb35212885da63c68b 100644 (file)
@@ -71,10 +71,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test<double>();
 }
index 71f5d79fb9f516985c4075bf9aabc03c720e16ec..e6d45f2ebab640ae566f080ad7e52de771cdc9cb 100644 (file)
@@ -66,11 +66,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   test(4);
   test(7);
index e4417129cba7543402690ee230b27aa992075b68..c4f9a886eb74f5c4c43aa4598f0f2d9ba2d8fa42 100644 (file)
@@ -68,10 +68,8 @@ test(const unsigned int size)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<unsigned int> sizes = {{17, 35, 391}};
   for (const auto &s : sizes)
index 6e0d607aadba0aa07c138facbabbedfb4c646d74..c77e438150a32c8c1f04d1ead19109fdfdddabec 100644 (file)
@@ -104,10 +104,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(5);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(5);
 
   test<double>();
 }
index 7bfbf770a23327413d47ccc923bef8a0476d8ef6..8d58e5864f65ea7af303fcb9fac9c1be3c1a309a 100644 (file)
@@ -122,10 +122,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(5);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(5);
 
   test<double>();
 }
index 2643f0fed60a36ee118b02bbea02e01a4c10ca72..2586de3bbd0e8f79ef2ccbb89b3f7598ab6e5885 100644 (file)
@@ -43,10 +43,8 @@ test()
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(5);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(5);
 
   test<double>();
 }
index a8acf765c229c96bfaf34bab44f093329fce1c50..fd418772c1856c0143bfb2c6247f5ef9d85d39ee 100644 (file)
@@ -108,10 +108,8 @@ test(const unsigned int m,
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<std::array<unsigned int, 3>> sizes = {{3, 3, 3},
                                                           {7, 7, 7},
index d74598a5ae4e23e8e582e8d371209421300e6b38..d93ceb6b8bbe793d8d70da07dd50e383388a04de 100644 (file)
@@ -69,10 +69,8 @@ test(const unsigned int n, const unsigned int k, const NumberType eps)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<std::array<unsigned int, 2>> sizes = {
     {3, 3}, {7, 7}, {51, 51}, {320, 320}, {3, 9}, {9, 7}, {5, 17}, {320, 121}};
index c7f6bb992682cea58ec14c5cb2bba9e2161c3f48..61e920ca29bd087fc4ace85606d48c280ad812eb 100644 (file)
@@ -70,10 +70,8 @@ test(const unsigned int n, const unsigned int k, const NumberType eps)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<std::array<unsigned int, 2>> sizes = {
     {3, 3}, {7, 7}, {51, 51}, {320, 320}, {3, 9}, {9, 7}, {10, 5}, {320, 120}};
index 34a614a34a9969bff2fa48b377428e6ef0241d8b..8ea725b36c78747b3a63b4439bef3efdb49f0ae5 100644 (file)
@@ -70,10 +70,8 @@ test(const unsigned int n, const unsigned int k, const NumberType eps)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  logfile.precision(3);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
   const std::vector<std::array<unsigned int, 2>> sizes = {
     {3, 3}, {7, 7}, {51, 51}, {320, 320}, {3, 9}, {9, 7}, {10, 5}, {320, 120}};
index 2256a81ab4eb6f05ee787337a700a174f446b95f..b99cc8440195a69b02dc4f4a837bbedc6570021e 100644 (file)
@@ -98,10 +98,8 @@ check_Tsolve(SolverType &        solver,
 int
 main()
 {
-  std::ofstream logfile("output");
-  //  logfile.setf(std::ios::fixed);
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   GrowingVectorMemory<> mem;
   SolverControl         control(100, 1.e-3);
index 4b8ea806214bd2037b659029b5ecc7ede1268231..07fcc499ba6b7ae0e2f3d978121c57d52c6d1010 100644 (file)
@@ -47,9 +47,7 @@ test_laplacian(unsigned int n)
 int
 main()
 {
-  const std::string logname = "output";
-  std::ofstream     logfile(logname.c_str());
-  deallog.attach(logfile);
+  initlog();
 
   test_laplacian<double>(10);
   test_laplacian<double>(20);
index 5cc8557e5e275929d68c7bf08798d7330f079a64..e7d878cfd69b4079e0eab8f55c1ac2ef0d14e80d 100644 (file)
@@ -54,8 +54,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 using namespace dealii;
 
 
@@ -463,9 +461,8 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
+  initlog();
   deallog << std::setprecision(2);
-  logfile << std::setprecision(2);
-  deallog.attach(logfile);
 
   {
     deallog.push("2d");
index c0d2a1f730399bb1e3621cd98ee9bb844871b92d..cc1bb307048fd32921bef4856240b181a1b68d23 100644 (file)
@@ -56,8 +56,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 using namespace dealii;
 
 
@@ -533,9 +531,8 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
+  initlog();
   deallog << std::setprecision(2);
-  logfile << std::setprecision(2);
-  deallog.attach(logfile);
 
   {
     deallog.push("2d");
index 2668ec70e5ad367a24249bd482641e4e92ace64b..c70b499566d89358648e3378c8e9d3faca6b96a1 100644 (file)
@@ -54,8 +54,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 using namespace dealii;
 
 
@@ -471,9 +469,8 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
+  initlog();
   deallog << std::setprecision(2);
-  logfile << std::setprecision(2);
-  deallog.attach(logfile);
 
   {
     deallog.push("2d");
index d222498fa77764e4bcaa293f233320dca279a800..83abc234fddbf6b4a5b215f221466d6c2a9c04e3 100644 (file)
@@ -55,8 +55,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 using namespace dealii;
 
 
@@ -570,9 +568,8 @@ LaplaceProblem<dim>::run()
 int
 main()
 {
+  initlog();
   deallog << std::setprecision(2);
-  logfile << std::setprecision(2);
-  deallog.attach(logfile);
 
   {
     deallog.push("2d");
index a1c3a0b8d7b5e7588f0320028753b6b4149e12f9..6339cec2f20896bc64ff9179bd96e49041f6e9d6 100644 (file)
@@ -128,10 +128,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index f67bb154b49acc53bb1d59b6c85bb0ef59aff716..117aa17f8014eb2e51de2a41f07282522c671e78 100644 (file)
@@ -120,10 +120,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 6232122df73d6451853746bc7ba0712c8604f5d3..a539710f9f04c9d2b95f4f1f1ee17ffe7523c8c6 100644 (file)
@@ -131,10 +131,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 054896aff437f1c4e5d15106999ca09ebf19dfe6..54812a0ed52713cfb684f6758794fdb84332d457 100644 (file)
@@ -123,10 +123,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index eb8a3930adc9815a57221a6e83dadc70fcd1c59f..d2a266072946345c2b3c1b0e33c5c1a9d6176e9e 100644 (file)
@@ -128,10 +128,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 57e304e0314a6640d0c4dcb6a98d2eac4b0b1e45..6970d048c3780496565972f109e65ff4938d4569 100644 (file)
@@ -123,10 +123,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 3c4c0d906be6063e1688a1cfc1117bf0100e9b45..05777611306e15594a48fb5d9b4ba4683895a578 100644 (file)
@@ -131,10 +131,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index abea1c74d056cb058c99e0f6a5fd029b1c91d8a0..7e614aec77d9d1c69ad7534f14c64137d2a2c97d 100644 (file)
@@ -126,10 +126,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index df338fbaff30e3268fc7f957578800a6a088304a..bca448802ab36724b228373436769ccec8bbc6fb 100644 (file)
@@ -124,9 +124,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index d777025fbc848c3fbd14575cd008d19ac6a7fc78..3d93ce795f5e290511b30536248062fb3ee960e4 100644 (file)
@@ -127,9 +127,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 72e7ce590ab96135e77ffdd8435e3f61633117db..b70449d8c49b92e58b05df0a1b8e5c99e56a76d8 100644 (file)
@@ -122,9 +122,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 0238325ee769d9c075a60b7324d0f1c34db97c13..cb84b3f2e119a84e2fecc9c4c3fecbde68510673 100644 (file)
@@ -129,9 +129,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 6099d8ac100b517a1065af0de8b7cd1aba645054..cd976efbb64c40f1b874018af05a2ec31d701cc4 100644 (file)
@@ -132,9 +132,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 519bc47abc691c93fd18dc700845e7c75a89a170..111b866de0ce1fd45e4cb34bdaa2c4eb2e7b0d9e 100644 (file)
@@ -128,10 +128,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index ebc328449f84bcbe0863d053026130b06f70a8c9..6b3cddf422e543c4087b894484bc78a0e1c8cd13 100644 (file)
@@ -120,10 +120,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 1d7351238113b116f44e8a46db0d9a93af45cd21..2187b2e31e11f2138ccaed9671f040c3a97619d8 100644 (file)
@@ -131,10 +131,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index f88273291f9ff5ea5d931248c92a2a316ca1878d..25f069fd0ebb899dc301f3dfc0db15090a5cdf74 100644 (file)
@@ -123,10 +123,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 738aeddd4f1fbffa7f56cbc518db6f617acbf18b..db6c9e2fe582a0cc37e22ffd7176e011b32532e8 100644 (file)
@@ -128,10 +128,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index b95743d6e6980e475a5860e452626b44434b1691..737da8fe4852f70c9745c83b76b0a16512852a98 100644 (file)
@@ -123,10 +123,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index ebed5492b1ca13b9dca4fff8427f25b4bf2a1261..02b9f0b62358917acc3cd6ca255da765c65af82c 100644 (file)
@@ -131,10 +131,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 8801d14b61e6606dc4581631ad99fad03564243d..756b40d45bd5ddfade9a69e23899bdbddb93ac64 100644 (file)
@@ -126,10 +126,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 4a790563723b80519295a6cffac5b3ebc2927c42..3b84789ceb7c3996e0fe3f7abc8b4e885273f0db 100644 (file)
@@ -122,10 +122,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   // there used to be a bug in the cell similarity detection for the above
   // test pattern of an FE_RaviartThomas inside and FESystem, but cell
index 2f489e1ed6667371d8e12213a4df62a3d10774fd..0c8e0c70fd36fc0b1f73d2d99de8d9e866519ad3 100644 (file)
@@ -124,9 +124,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 81e2508636187d468efa5e7bfc31459f2a9d524e..1554a9cf90144ef6f3b172bcdc30f3bd2f5c93b5 100644 (file)
@@ -127,9 +127,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 2f11606e0b81973fab2da9b7aad5d4f1ef083673..5c97d5e0f38d36eee542d2518945e21770fc7981 100644 (file)
@@ -125,9 +125,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index d5e0311513cdd720468ad79590262dad17d5a5b8..8d47b4e0e5ab562b70ddff97e5553f66d7d8c9ab 100644 (file)
@@ -129,9 +129,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index ab4f662f4ca300e8e289c0af0f42c8202e808e35..48c71f80a9d4d43b5faf2f3848aeb6752b15f962 100644 (file)
@@ -132,9 +132,8 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 0387e16220b69fb6997db6a5ff67a2cd26cb5af9..6826f151df0439f2f6f8c624aa062dcdf0233fc7 100644 (file)
@@ -61,10 +61,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 6f0ffb86bf0eafa013d5a6cd34e357674d597694..1a4377082825e2d75b89b4a529f89bbb87a34fd5 100644 (file)
@@ -66,11 +66,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
-
   deallog.push("1d");
   check<1>();
   deallog.pop();
index d352195995b893c2a6f42e2bb8d274b85e27b217..c9f153620308626a3408e9b1b718b2e7ee401e4a 100644 (file)
@@ -84,10 +84,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 015024ffaf04e6dc1c200cc802e8eaddbcc85820..6a6aeeeb7f3726b585af32643ae0fdd43f4a5ed2 100644 (file)
@@ -228,10 +228,9 @@ loop()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   loop<1>();
index f9bd5e414766dc2586d6626e83f71b16fc68f9d6..074d902cf7c5e0b361464c917487d3af38654fed 100644 (file)
@@ -121,10 +121,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index d5bb089e8875774b369f45c263cdc7f0f6d1c179..e75e34f23a7a4a900396cbeb13c46c99ed0433c7 100644 (file)
@@ -82,11 +82,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
-
 
   deallog.push("2d_2");
   check<2, 2>();
index 20ebcef9dcb34ccbe3b6846b883153bdcf9ca81f..04313d1252f55a2a20cc29fcdcad65b590fe59a1 100644 (file)
@@ -741,8 +741,7 @@ test(const MySecondFunction<dim> &func)
 int
 main()
 {
-  std::ofstream logfile("output");
-  dealii::deallog.attach(logfile);
+  initlog();
 
   {
     NeumanBC<2> func(1.25);
index bc5096b7b3bc82dfd6c45003d4fabcf8ba61df4b..9ef7f4009e2f53cb8cdced05fd42a49d5b8c3808 100644 (file)
@@ -688,8 +688,7 @@ test(const MySecondFunction<dim> &func)
 int
 main()
 {
-  std::ofstream logfile("output");
-  dealii::deallog.attach(logfile);
+  initlog();
 
   {
     NeumanBC<2> func(1.25);
index d97019f3d5ae954eaafe6a5dc9fcc8576d936e3e..5faf394b526b07b862d234cba33e946d4df5b0c7 100644 (file)
@@ -85,9 +85,7 @@ test()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  dealii::deallog.attach(logfile, /*do not print job id*/ false);
-  dealii::deallog.depth_console(0);
+  initlog();
 
   test();
 }
index 6ec4e28ab2a925bce206d98a65847e5c65b4ca9f..b8f6bcdf3d2a65d20bfd4fa51c7f46fdeae52a2c 100644 (file)
@@ -1,3 +1,4 @@
+
 DEAL::size:     0
 DEAL::max_size: 3
 DEAL::initial:
index ed5ce909ecdf66864e2f8595dcc9ba54eef55d82..3561f8ff6441d7cc684369788beabfd71ee1ce8c 100644 (file)
@@ -231,10 +231,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(3);
+  initlog();
+  deallog.get_file_stream().precision(3);
 
-  deallog.attach(logfile);
   test();
   return 0;
 }
index 4d9b459c0affef2683bf1680bf7c0687cb4cce13..917e8931e2e1f1e08216761e12ed39e26d66f578 100644 (file)
@@ -85,10 +85,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index db71bc4a6f0ffa11a338ee2555c3b796ceed3f43..d2dce1db5b6a7638157040e67bade8b4073317fe 100644 (file)
@@ -91,10 +91,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index a54bdaa2386fa40b461782da13835f0132e6149f..c97c264c8a229ccc8926e74bf423ca70b3eadc8c 100644 (file)
@@ -85,11 +85,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index b6e220a20a1abeae472580adcf0bc36c8d96b543..e589b0d12dd2937fb1508020862d9753e0af552c 100644 (file)
@@ -147,10 +147,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
index 610635d31dc92d60de6465c5c9784f4c7f699172..f7c933c24e7e299b5e8429a14663a0ced5766f7b 100644 (file)
@@ -99,10 +99,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index 06cccd7a2f0d53457c1450c313fc5e8f9a9c95cf..35e6e26536ebf66f57800c2d7fb25683ae1123b8 100644 (file)
@@ -71,10 +71,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<3>();
 }
index f20d40cd45ea0d9428cf77b9b3289668ef6ed150..02e7ed14dc4d5bcc83fb8011e54644f9f241ca1a 100644 (file)
@@ -88,10 +88,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<3>();
 }
index b025d6e2b34c8b708966a151a85d2c1b20582c39..304354f4588e9c700b28ccb34f7bfa6bda5f9d85 100644 (file)
@@ -79,10 +79,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   deallog.push("2d");
   check<2>();
index b1f0214939d93a4d6a54ff046520374a5c4e6814..03ed30b42b0bc5e1c0beb5670a8b2fb3a43cf620 100644 (file)
@@ -80,10 +80,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   check<3>();
 }
index 75e0c53f6c2004307e34c7a94e99c7adea323a50..47f3f265e1912d9d519fe47f5299cc4d8a4992fb 100644 (file)
@@ -246,10 +246,9 @@ run()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   run<3>();
 }
index f6820eb3e7294bc7482f655d442fa7695eac817d..560edbd888946d93a18d8d9245e21f18de0a43dc 100644 (file)
@@ -160,10 +160,9 @@ run()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   run<2>();
 }
index 21eb7e42369eb843ffb8714dbbaa953df2fc67a8..484323b7c51cf13049526a4631f9d7ca04563452 100644 (file)
@@ -117,10 +117,9 @@ run()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(7);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(7);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   run<3>();
 }
index 471135b760b75fa95d50af1a38743d860756fde4..1bc0d2da82251afe6abb71e6d4460f0636dab9da 100644 (file)
@@ -69,10 +69,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile.precision(4);
-  logfile.setf(std::ios::fixed);
-  deallog.attach(logfile);
+  initlog();
+  deallog.get_file_stream().precision(4);
+  deallog.get_file_stream().setf(std::ios::fixed);
 
   check<3>();
 }
index 968a5ef3da1435e5f5fb861714688fdf7d6d67ca..46ef5a4b77ccb115b02217b16e7e338f908c9720 100644 (file)
@@ -81,10 +81,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index 9629c9c66570640c4ec49cf53fa16be74cc14879..9a4cbfaf70b02c7dcfffc7762032a6f0f58545f3 100644 (file)
@@ -87,10 +87,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index 55ff250f146545f9dc55b66eead77819f6a10c18..a01dbfad274edf514e2cee13b5cc3d687e7c84df 100644 (file)
@@ -80,11 +80,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index af05e24c0c1ddd029782542954cc2ed7d2e85815..66a8ddbf2b75fc10611300a968c2c28e49f8b913 100644 (file)
@@ -141,10 +141,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
index 50228d3a8db6eea3e364e51024b69dba4a8395f7..24f49578c4f0d77728b4082f79172ba25b7d7efd 100644 (file)
@@ -92,10 +92,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index 7de6e3bb087daf87bea12a726f01b983e9af9374..a2a95a93b7951f5f656fc8a7d1e02d38a82b420a 100644 (file)
@@ -85,10 +85,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index c3052ebfb651c05002bb50a8fed338048fe776d9..9928fd5720845b4bffdc24236c4d3d46c4af2f58 100644 (file)
@@ -91,10 +91,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index 63052c6f0b71ac3da3cb4c62bb8a49e5e8180e4e..81d4e2b1eb995298ebff0ce7b2fcb51569629127 100644 (file)
@@ -80,11 +80,9 @@ test_hyper_sphere()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
 
-  deallog.attach(logfile);
-
   test_hyper_sphere<2>();
   test_hyper_sphere<3>();
 }
index 1b1b8e2efa1dbadb53d10a1312c3e1dec597c84d..8b5fdf7f3db27810557d58f6c95012930afbf3a0 100644 (file)
@@ -88,10 +88,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index c212a55206099f634d16a955688e8cbdf271675c..9275ac66139ebda4e89bdf57c805e98b2e8d9e29 100644 (file)
@@ -120,10 +120,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index a73cd941532ebe132df392af09ac8f567068fa77..3e4076e8c3a95ff7b4f89e659986d40fb4a67e90 100644 (file)
@@ -273,10 +273,8 @@ TestPointValueHistory<dim>::run()
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile << std::setprecision(2);
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   TestPointValueHistory<2> test;
   test.run();
index da36b4402433f73b95b837f4b092cae777de106d..bfd7d2bd5278e40d097841e384535c2ead66b958 100644 (file)
@@ -441,10 +441,8 @@ TestPointValueHistory<dim>::output_results(unsigned int   step,
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile << std::setprecision(2);
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   TestPointValueHistory<2> test;
   test.run();
index 05c52ff59b161e8665a1d43e17ef0e07ed24fa3c..87dea8b9a0284864d7eb2e4289d9139501f03f59 100644 (file)
@@ -389,10 +389,8 @@ TestPointValueHistory<dim>::output_results(unsigned int   step,
 int
 main()
 {
-  std::ofstream logfile("output");
-  logfile << std::setprecision(2);
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   TestPointValueHistory<2> test;
   test.run();
index ec3510d761ba33ebe6035d20d866bfe2e6368a97..5df3da102c27bcf9af4d00a70ee1fd23da903a08 100644 (file)
@@ -100,8 +100,7 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<1>();
   test<2>();
index 6707a71642abd74b07ba08631171e1eeb7d5d77c..ec8f54efaa94c75bc4be9ac7a8cf5875f725aa77 100644 (file)
@@ -182,8 +182,7 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<2>();
   test<3>();
index 8441db9af84d25f4a7fc0a1f3183f2a8540f37a8..f5fb904825b56657ab312524c397fbfc6e3c978c 100644 (file)
@@ -103,8 +103,7 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<1>();
   test<2>();
index 3645729394209dc11d48df7cfc2e3092f9001689..a45bdcf79b1824030c1efaf8c5c89fe53c8dc3e3 100644 (file)
@@ -112,8 +112,7 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   test<1>();
   test<2>();
index 39ea198d21ee32a384bc37f393cba9d734556f09..879402047d4543e9c2f47b6b19c7f6caede63007 100644 (file)
@@ -191,10 +191,9 @@ test_hyper_cube(const FiniteElement<dim> &fe)
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   FE_RaviartThomasNodal<2> rt21(1);
   test_hyper_cube(rt21);
index d39856290d4802205e9c4aafb79fa33453aab996..28c628315e85f03c857f78da49ef0303e05a420e 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim>
 class BoundaryFunction : public Function<dim>
 {
@@ -72,14 +70,13 @@ test_boundary_values(const FiniteElement<dim> &fe)
   VectorTools::project_boundary_values_curl_conforming_l2(
     dof_handler, 0, boundary_function, 0, constraints);
   constraints.close();
-  constraints.print(logfile);
+  constraints.print(deallog.get_file_stream());
 }
 
 int
 main()
 {
-  deallog << std::setprecision(2);
-  deallog.attach(logfile);
+  initlog();
 
   FE_Nedelec<2> fe_2(1);
 
index 8d68fe0f73086f48437e1b17e001a72b4c440041..fb5a27d8e710a7759090f861a2d24670173a2608 100644 (file)
@@ -34,8 +34,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim>
 class BoundaryFunction : public Function<dim>
 {
@@ -131,8 +129,8 @@ test(unsigned order)
 int
 main()
 {
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   test<2>(0);
   test<2>(1);
index 2414ddd178fa46cfb10db5b378be67c672a36b22..064a135a93918382957db0068dad892ee92d51d3 100644 (file)
@@ -28,8 +28,6 @@
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
 template <int dim>
 class BoundaryFunction : public Function<dim>
 {
@@ -72,14 +70,14 @@ test_boundary_values(const FiniteElement<dim> &fe)
   VectorTools::project_boundary_values_div_conforming(
     dof_handler, 0, boundary_function, 0, constraints);
   constraints.close();
-  constraints.print(logfile);
+  constraints.print(deallog.get_file_stream());
 }
 
 int
 main()
 {
+  initlog();
   deallog << std::setprecision(2);
-  deallog.attach(logfile);
 
   FE_RaviartThomas<2> fe_2(1);
 
index 2d8fc0cbc20922c43dbe3ccec6c06bb76cc880aa..dee826d719f8f036abc11338813b7bba8044decb 100644 (file)
@@ -347,12 +347,9 @@ test_with_2d_deformed_refined_mesh(const FiniteElement<dim> &fe,
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
 
-  deallog.attach(logfile);
-  deallog.depth_console(0);
-
   test<1>();
   test<2>();
   test<3>();
index e8037bc80a03fb5214b3e1bf3281f66f82d3c8eb..c9f2cff47f62254bc8af1d4145bb01c8b6a65f54 100644 (file)
@@ -128,10 +128,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test<1>();
   test<2>();
index cfdb688d05411867c179ca26892141a0b7729988..1708175e0e2903f8d2bddea9cc743bd4c1736c35 100644 (file)
@@ -159,10 +159,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test<2>();
   test<3>();
index 9ff2d3b2fe1042c805fb81f086c7a6fc7a11752f..007878535b50622303e244968d934ce447924dc3 100644 (file)
@@ -125,10 +125,9 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test<3>();
 }
index ac93fe48b456727b076592e3f779c8638c10b609..1d69a5f78ac4bd7b98635294e221763f4011f42b 100644 (file)
@@ -121,10 +121,9 @@ test_hyper_cube()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(2);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   test_hyper_cube<2>();
   test_hyper_cube<3>();
index cda24b876ed121c7644966338cf069b625ad2cc4..2c2903e6a4a2f29b770c9d4ee7c922825bdb76ef 100644 (file)
@@ -25,9 +25,6 @@
 #include "../tests.h"
 
 
-std::ofstream logfile("output");
-
-
 std::vector<bool> end_sweep_flags;
 
 
@@ -82,8 +79,8 @@ test()
 int
 main()
 {
+  initlog();
   deallog << std::setprecision(4);
-  deallog.attach(logfile);
 
   test();
 
index de792c18c7255889b1529a3acbd71709d553367d..eb4b340d7bc5d1f1659471836a32a4eb5b324072 100644 (file)
@@ -116,10 +116,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("2d");
   check<2>();
index ff73cda7a7ae35e1e8093e9f3e95c856c322767b..06d6f1cc5def2510509df69833995912ba568936 100644 (file)
@@ -118,10 +118,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("2d");
   check<2>();
index d165d22a435395e3ecdb4ad93ced879644f4307c..ea69a6cb8cd05b10b54ca9861e13ae5709feb96b 100644 (file)
@@ -117,10 +117,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("2d");
   check<2>();
index 7a793e46f58da24ec55c1014d1f3c78c343bab50..dd9413009e44dc4c378729629d177eabd1b68419 100644 (file)
@@ -112,10 +112,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(4);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 15eaf21ca14778f8aa908c4b16e568951da48532..08d8b427afd4a1d7e1e35583620c129a69f1c06b 100644 (file)
@@ -117,10 +117,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 2a27138693baf6a4acd850d6ee798fa5976571ba..5b72d76c0b7c95332c5b78a8cf375eaca6638476 100644 (file)
@@ -117,10 +117,9 @@ check()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(8);
   deallog << std::fixed;
-  deallog.attach(logfile);
 
   deallog.push("1d");
   check<1>();
index 19fe7a2112eac8058aa2d80c32b8427ec238828f..8832f869c0bfff7138b93569d4c3d9863c0b92af 100644 (file)
@@ -27,8 +27,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -42,7 +41,7 @@ main()
 
       // read and then write parameters
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index 3dc2edcad7a737906719781788623032b561188c..d1e1db023340747f89ac34eb1c16f1cc91b1cf85 100644 (file)
@@ -30,8 +30,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -46,7 +45,7 @@ main()
 
       // read and then write parameters
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index a2c22f39932f00eaf7d0af7d8e80ec4ccb5d451e..19dee09aad69f723fa3dbfd49623c26799f9f7dc 100644 (file)
@@ -30,8 +30,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -46,7 +45,7 @@ main()
 
       // read and then write parameters
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index aa7b2d4850325a1879e5f63b5ffe35f596e343fe..f506be54a0e891a3dd2c1a6b2914126bd70ec280 100644 (file)
@@ -28,8 +28,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -44,7 +43,7 @@ main()
 
       // read and then write parameters
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3_with_alias_03.prm");
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index f6f1b65bac3d586be2e4b7394bd444a7fedd7a9c..54671c962f8fa64273f7affe9d1f2a58a8486b61 100644 (file)
@@ -28,8 +28,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -44,7 +43,7 @@ main()
 
       // read and then write parameters
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3_with_alias_04.prm");
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index 301e55687b793c74004847f338acac46a6f20e13..ba56d40b46c9d2c0f3c16b9cb148b91c653f1bb4 100644 (file)
@@ -28,8 +28,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -47,7 +46,7 @@ main()
 
       // read and then write parameters
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3_with_space.prm");
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index 3a1fc8d4bfef755209481872488e6517cd6c308c..01f102699f7341148167aeaf3d0b39e866becd05 100644 (file)
@@ -27,8 +27,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -45,7 +44,7 @@ main()
       // as for parameter_handler_3, but
       // use different output format
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
-      prm.print_parameters(logfile, ParameterHandler::LaTeX);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::LaTeX);
     }
   catch (std::exception &exc)
     {
index 980c4a4d744a61758483b33ee49d8e4a123baa4a..45c8bad1518d4926d5c3049266990075ac661447 100644 (file)
@@ -29,8 +29,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -65,7 +64,7 @@ main()
       // as for parameter_handler_3, but
       // use different output format
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
-      prm.print_parameters(logfile, ParameterHandler::LaTeX);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::LaTeX);
     }
   catch (std::exception &exc)
     {
index 7187bb3bd1f32bc0f141a7a0248d1daff0ac2ffe..db404cb3938684d3953f05eb31d3d839d1153f02 100644 (file)
@@ -29,8 +29,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -67,7 +66,7 @@ main()
       // as for parameter_handler_3, but
       // use different output format
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
-      prm.print_parameters(logfile, ParameterHandler::LaTeX);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::LaTeX);
     }
   catch (std::exception &exc)
     {
index caa4909e164a185b227feb403fbb7aa81a3a1dce..82297a3464bbb7742aaa4ff9d90a05974bb73755 100644 (file)
@@ -29,8 +29,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -67,7 +66,7 @@ main()
       // as for parameter_handler_3, but
       // use different output format
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
-      prm.print_parameters(logfile, ParameterHandler::LaTeX);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::LaTeX);
     }
   catch (std::exception &exc)
     {
index b7e5407922ac7de1d235b4647eb61e03433e5586..ead3942ba55ad09e1160c1bf6123cfd4ea58a5e5 100644 (file)
@@ -30,13 +30,12 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
       prm.leave_subsection();
-      prm.print_parameters(logfile, ParameterHandler::LaTeX);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::LaTeX);
     }
   catch (std::exception &exc)
     {
index ff440d834a63f4e031d98c1871c15b077510fae5..b34d8f21ffc849555468e5cc031062597bdae1b9 100644 (file)
@@ -28,14 +28,13 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.declare_entry("int", "1", Patterns::Integer());
       prm.declare_entry("int", "2", Patterns::Integer());
 
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index 93ac611f3c86d2c1d8f1012790418128c88df107..5406ac0030bb233a99327aa1473c47df476412ee 100644 (file)
@@ -27,8 +27,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       // same as parameter_handler_3
       ParameterHandler prm;
@@ -52,7 +51,7 @@ main()
       prm.leave_subsection();
 
       // then write
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index 3c7587fab5c740e59c7d6d6b631fa43e1274b41b..6a86712fe5417261a2155fdbe6a9515cb3b82472 100644 (file)
@@ -27,8 +27,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       // same as parameter_handler_3
       ParameterHandler prm;
@@ -45,7 +44,7 @@ main()
       prm.leave_subsection();
 
       // then write
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
 
       // and do it again with the opposite
       // value
@@ -54,7 +53,7 @@ main()
       prm.leave_subsection();
 
       // then write
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index 04e2ec3016e68fa62c7039ef5d672d8aee93b7b2..95530828b92a23454e2a6158355f7a54811d99f4 100644 (file)
@@ -27,8 +27,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing");
@@ -45,7 +44,8 @@ main()
       // as for parameter_handler_3, but
       // use different output format
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_3.prm");
-      prm.print_parameters(logfile, ParameterHandler::Description);
+      prm.print_parameters(deallog.get_file_stream(),
+                           ParameterHandler::Description);
     }
   catch (std::exception &exc)
     {
index 7c71edb1b8034d45805a780e5542936a6bf94df8..28b613ee3126e1b5342e5f366b10215f59d1d887 100644 (file)
@@ -29,8 +29,7 @@ main()
 {
   try
     {
-      std::ofstream logfile("output");
-      deallog.attach(logfile);
+      initlog();
 
       ParameterHandler prm;
       prm.enter_subsection("Testing testing");
@@ -68,7 +67,7 @@ main()
       // as for parameter_handler_3, but
       // use different output format
       prm.parse_input(SOURCE_DIR "/prm/parameter_handler_8.prm");
-      prm.print_parameters(logfile, ParameterHandler::Text);
+      prm.print_parameters(deallog.get_file_stream(), ParameterHandler::Text);
     }
   catch (std::exception &exc)
     {
index edacf840856369325a43be37b06da94376c9ba1a..b6d68e58256149970506d451aec51b4998dc6a25 100644 (file)
@@ -25,8 +25,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   ParameterHandler prm;
   prm.declare_entry("int1", "1", Patterns::Integer(), "doc 1");
@@ -64,7 +63,7 @@ main()
 
   // write it out again
   prm.print_parameters(deallog.get_file_stream(), ParameterHandler::JSON);
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index 1af84a29f49e77c546950a8ec730eff046ddeba0..f882eb47adc89d4666c084b3c60a69fc0308971d 100644 (file)
@@ -25,8 +25,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   ParameterHandler prm;
   prm.declare_entry("int1", "1", Patterns::Integer(), "doc 1");
@@ -64,7 +63,7 @@ main()
 
   // write it out again
   prm.print_parameters(deallog.get_file_stream(), ParameterHandler::XML);
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index 92a157a2aaed508ca87a590303d76e3528b9ca59..c35d52ab034db3ab71e7084da32f1f4c9d658969 100644 (file)
@@ -26,8 +26,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   ParameterHandler prm;
   prm.declare_entry("int1", "1", Patterns::Integer(), "doc 1");
@@ -60,8 +59,8 @@ main()
   prm.leave_subsection();
 
 
-  prm.print_parameters(logfile, ParameterHandler::JSON);
-  logfile << std::endl;
+  prm.print_parameters(deallog.get_file_stream(), ParameterHandler::JSON);
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index 8abb887c34d7dcfc2ab9ddf0e8e08ff14bc7e94e..23447e63e7ac5963a5203e057e549581c376330b 100644 (file)
@@ -26,8 +26,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   ParameterHandler prm;
   prm.declare_entry("int1", "1", Patterns::Integer(), "doc 1");
@@ -55,11 +54,13 @@ main()
 
   prm.enter_subsection("ss1");
   prm.enter_subsection("Testing%testing");
-  prm.print_parameters_section(logfile, ParameterHandler::Text, 0);
+  prm.print_parameters_section(deallog.get_file_stream(),
+                               ParameterHandler::Text,
+                               0);
   prm.leave_subsection();
   prm.leave_subsection();
 
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index 6da4593695857b1a788d013642cd00361131f6c2..359ade81e8d666ea7525ebafc95c5bacc00dca24 100644 (file)
@@ -26,8 +26,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   ParameterHandler prm;
   prm.declare_entry("int1", "1", Patterns::Integer(), "doc 1");
@@ -55,11 +54,14 @@ main()
 
   prm.enter_subsection("ss1");
   prm.enter_subsection("Testing%testing");
-  prm.print_parameters_section(logfile, ParameterHandler::Text, 0, true);
+  prm.print_parameters_section(deallog.get_file_stream(),
+                               ParameterHandler::Text,
+                               0,
+                               true);
   prm.leave_subsection();
   prm.leave_subsection();
 
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index c1858c780d2c69de1b592efc2410f806debeb279..33aa5ee4be9a9716eb31ca5824fb2de23adf72e1 100644 (file)
@@ -26,8 +26,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   ParameterHandler prm;
   prm.declare_entry("int1", "1", Patterns::Integer(), "doc 1");
@@ -55,11 +54,14 @@ main()
 
   prm.enter_subsection("ss1");
   prm.enter_subsection("Testing%testing");
-  prm.print_parameters_section(logfile, ParameterHandler::XML, 0, true);
+  prm.print_parameters_section(deallog.get_file_stream(),
+                               ParameterHandler::XML,
+                               0,
+                               true);
   prm.leave_subsection();
   prm.leave_subsection();
 
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index 3f9a08b74f447db01a902d902869ddab0c240ca7..3365725cf3135cd20c995131751d1790133b6eb2 100644 (file)
@@ -26,8 +26,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   ParameterHandler prm;
   prm.declare_entry("int1", "1", Patterns::Integer(), "doc 1");
@@ -60,8 +59,8 @@ main()
   prm.leave_subsection();
 
 
-  prm.print_parameters(logfile, ParameterHandler::XML);
-  logfile << std::endl;
+  prm.print_parameters(deallog.get_file_stream(), ParameterHandler::XML);
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index d0394f2f5052481164ac3853aada619e0a982205..3d36f42c5ca142b530bba6bcdca51cf0e48048a9 100644 (file)
@@ -26,8 +26,7 @@
 int
 main()
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
+  initlog();
 
   ParameterHandler prm;
   prm.declare_entry("int1", "1", Patterns::Integer(), "doc 1");
@@ -60,17 +59,18 @@ main()
   prm.leave_subsection();
 
   // set a special fill char and verify that it is being used
-  logfile.fill('x');
-  logfile.width(15);
-  logfile << std::left << 42 << std::endl;
+  deallog.get_file_stream().fill('x');
+  deallog.get_file_stream().width(15);
+  deallog.get_file_stream() << std::left << 42 << std::endl;
 
   // now let ParameterHandler output its state
-  prm.print_parameters(logfile, ParameterHandler::Description);
+  prm.print_parameters(deallog.get_file_stream(),
+                       ParameterHandler::Description);
 
   // verify that the special fill char is still available (i.e., that
   // print_parameters() has saved and restored the stream flags)
-  logfile.width(15);
-  logfile << std::left << 42 << std::endl;
+  deallog.get_file_stream().width(15);
+  deallog.get_file_stream() << std::left << 42 << std::endl;
 
   return 0;
 }
index 6e163861405d6e3190e9d88ccb91cb23d68273c3..5594707d1232a67047e9544716bc60f3f08e0880 100644 (file)
@@ -151,8 +151,7 @@ init_petsc_complex()
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  dealii::deallog.attach(logfile);
+  initlog();
 
   try
     {
index f14301187574ec3e5638fbc5ba7e42c45ad6c713..8d4b05b474d0e54f090c37c0c04e6484fde620b4 100644 (file)
@@ -60,9 +60,7 @@ test_vector(PETScWrappers::MPI::Vector &v)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  dealii::deallog.attach(logfile);
-  dealii::deallog.depth_console(0);
+  initlog();
 
   try
     {
@@ -72,7 +70,7 @@ main(int argc, char **argv)
         test_vector(v);
 
         deallog << "vector:" << std::endl;
-        v.print(logfile);
+        v.print(deallog.get_file_stream());
       }
     }
 
@@ -104,7 +102,7 @@ main(int argc, char **argv)
       return 1;
     }
 
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index a6825fcf29118a37693c74258480a5105c03fe43..23a47907fe80b5e13c9e68e75f52ba803bc20b9a 100644 (file)
@@ -58,11 +58,9 @@ test_matrix(PETScWrappers::SparseMatrix &m)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  dealii::deallog.attach(logfile);
-  dealii::deallog.depth_console(0);
+  intilog()
 
-  try
+    try
     {
       Utilities::MPI::MPI_InitFinalize mpi_initialization(argc, argv, 1);
       {
@@ -70,7 +68,7 @@ main(int argc, char **argv)
         test_matrix(m);
 
         deallog << "matrix:" << std::endl;
-        m.print(logfile);
+        m.print(deallog.get_file_stream());
       }
     }
 
@@ -102,7 +100,7 @@ main(int argc, char **argv)
       return 1;
     }
 
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index 49723d4fb5da5e676e9820871b8d1645b73a407b..2fc9c348e0f44da97f0b778a4549e4182b488cb9 100644 (file)
@@ -47,9 +47,7 @@ test(PETScWrappers::SparseMatrix &m)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  dealii::deallog.attach(logfile);
-  dealii::deallog.depth_console(0);
+  initlog();
 
   try
     {
@@ -59,7 +57,7 @@ main(int argc, char **argv)
         test(m);
 
         deallog << "matrix:" << std::endl;
-        m.print(logfile);
+        m.print(deallog.get_file_stream());
       }
     }
 
@@ -90,7 +88,7 @@ main(int argc, char **argv)
       return 1;
     }
 
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index ff052c85f66807dee9bb90adce0c64a48fac74fe..59d404985eb8997fc37586bd5e162c3d9912ac1e 100644 (file)
@@ -68,9 +68,7 @@ test_matrix(PETScWrappers::SparseMatrix &m)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  dealii::deallog.attach(logfile);
-  dealii::deallog.depth_console(0);
+  initlog();
 
   try
     {
@@ -80,7 +78,7 @@ main(int argc, char **argv)
         test_matrix(m);
 
         deallog << "matrix:" << std::endl;
-        m.print(logfile);
+        m.print(deallog.get_file_stream());
       }
     }
 
@@ -111,7 +109,7 @@ main(int argc, char **argv)
       return 1;
     }
 
-  logfile << std::endl;
+  deallog.get_file_stream() << std::endl;
 
   return 0;
 }
index e3fc46dd4a89d36c517cb261f70cb7cf69ff8464..0303b5e091b96a58b7d7b3168ad4448100d386fa 100644 (file)
@@ -47,9 +47,7 @@ test(PETScWrappers::MPI::Vector &v, PETScWrappers::MPI::Vector &w)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-  deallog.depth_console(0);
+  initlog();
 
   try
     {
@@ -62,9 +60,9 @@ main(int argc, char **argv)
         // Some output
         deallog << "Complex vectors: " << std::endl;
         deallog << "v: " << std::flush;
-        v.print(logfile, 0, false, true);
+        v.print(deallog.get_file_stream(), 0, false, true);
         deallog << "w: " << std::flush;
-        w.print(logfile, 0, false, true);
+        w.print(deallog.get_file_stream(), 0, false, true);
         deallog << "OK" << std::endl;
       }
     }
index 174c391522c0a616637d973212d45947466f302f..c855ab3e4b82191f988cac0b83e10a28cba104ce 100644 (file)
@@ -47,9 +47,7 @@ test(PETScWrappers::MPI::Vector &v, PETScWrappers::MPI::Vector &w)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-  deallog.depth_console(0);
+  initlog();
 
   try
     {
@@ -61,8 +59,8 @@ main(int argc, char **argv)
 
         // SOme output
         deallog << "Complex vectors: " << std::endl;
-        v.print(logfile, 0, false, true);
-        w.print(logfile, 0, false, true);
+        v.print(deallog.get_file_stream(), 0, false, true);
+        w.print(deallog.get_file_stream(), 0, false, true);
         deallog << "OK" << std::endl;
       }
     }
index db6bc45f2fc696b3f04aa3324b717633496c11fa..757eb781e869d830c51a1a36ad2a7d3870046b99 100644 (file)
@@ -51,9 +51,7 @@ test(PETScWrappers::MPI::Vector &v, PETScWrappers::MPI::Vector &w)
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-  deallog.depth_console(0);
+  initlog();
 
   try
     {
@@ -65,8 +63,8 @@ main(int argc, char **argv)
 
         // Output
         deallog << "Complex vectors: " << std::endl;
-        v.print(logfile, 0, false, true);
-        w.print(logfile, 0, false, true);
+        v.print(deallog.get_file_stream(), 0, false, true);
+        w.print(deallog.get_file_stream(), 0, false, true);
         deallog << "OK" << std::endl;
       }
     }
index 1e87b63a83ff162c8bfab0f62d2d0fa039e02918..f4b0028adcdb174fbd6fa73d57b6cdb267a86425 100644 (file)
@@ -29,9 +29,7 @@
 int
 main(int argc, char **argv)
 {
-  std::ofstream logfile("output");
-  deallog.attach(logfile);
-  deallog.depth_console(0);
+  initlog();
 
   try
     {
@@ -44,10 +42,10 @@ main(int argc, char **argv)
 
         // print with prescribed precision
         deallog << "unreadable=true,across=false" << std::endl;
-        v.print(logfile, 10, true, false);
+        v.print(deallog.get_file_stream(), 10, true, false);
 
         deallog << "unreadable=false,across=true" << std::endl;
-        v.print(logfile, 3, false, true);
+        v.print(deallog.get_file_stream(), 3, false, true);
       }
     }
   catch (std::exception &exc)
index a844df3b27e656b9d066460ab01119b8767b93ed..91ca5a4e808becaf16dbc1e87b40f00d2cf46338 100644 (file)
@@ -187,9 +187,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1, 1>();
   test<1, 2>();
index 9656c43a4a318b822243c0d90c1cad0ef8aa49a8..d0117035728319987a5f45fcfe8c8efb8f46ad81 100644 (file)
@@ -95,9 +95,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 7f1194b3bfb8b2344cff4df251ec2d6ad376c779..2793dd8f9f8f601a8618bb3eb8307536bf71a059 100644 (file)
@@ -37,9 +37,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 6284757179ec7a9bdb13e9adc28e6158d2da7b4f..6ed24bf51fb2e61fc0ce56573f2f34147dbf5d5c 100644 (file)
@@ -80,9 +80,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 8af36c0ae2d649eb9108382cfac86f9e9f46cc8d..1277bfd7e69a9218348ce825539021596bcbaaad 100644 (file)
@@ -102,9 +102,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 2b80e5a04752ba9b3cba99ed5fe2da4c63374a60..b0746539049dcdd5f12c83d1342c102d3275ffb1 100644 (file)
@@ -104,9 +104,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 553ca5d2eec037aac884ece82ca0f52d1465ca27..3c2f994083e47ed7ce7d6d36e35f1a23bd6a2bb2 100644 (file)
@@ -109,9 +109,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 569218c8cda7445413fc020a2d7c7e69bfde417b..7ffb47f0ddec4c938b912149ddafd15f49c64004 100644 (file)
@@ -127,9 +127,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index ad71778c6bb262dbac850a64b17091516382715c..7f92609e25d04da735c5de79260b1b9e056a70e7 100644 (file)
@@ -47,9 +47,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 8199df1f41bc6231654d734a0df761a5c381ebd4..a8a895fd7dad1aec988f5723756b6dbbea577b99 100644 (file)
@@ -38,9 +38,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 9ed94b95daebd4a7eb9087d12c0c138b6fd280e6..cab884e6101d8fbacff34474c3318e83f1cf62f1 100644 (file)
@@ -42,9 +42,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 04e27747f2ed6f3e8b1f8108f7feb8e0ca401f34..5b7822179ef358eb2f32e5084fe07505ecb6cc2b 100644 (file)
@@ -48,9 +48,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index ead2b44dca08b0a15b5a297bc9bd7d506e3992ca..bed8a1d5f29daf27d95035597a0eca4f2af1d061 100644 (file)
@@ -39,9 +39,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 0657b4f3b052759f9d3b2618cc126192c8c698e3..35dd5fe395faad2259cf7eeb940a85f7a901aad8 100644 (file)
@@ -39,9 +39,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 33dc287c3dd882d5e563778bd8ee88c6cd38542a..7123c020679e91f4cabee3669b39708a1eb81a1e 100644 (file)
@@ -43,9 +43,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index ab8e7205a10ed99a502bdfb19c2b07e002b7d7d5..73b6512c6e12c735cd0a3fb9b5ab58421dee4010 100644 (file)
@@ -60,9 +60,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 5abcb940cf5772f1abb7f85fe11efbeab01d8b43..fbc37ca3dfc5d79edcc4defbf73b3b1e27d269ef 100644 (file)
@@ -53,9 +53,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 85892acc74291371ba0c58ea0c8edd728a0e9309..7051dbc3396671bf7d4f79c81337e20e23ae21d5 100644 (file)
@@ -54,9 +54,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index bf07545bebbb50b96102a32403979956d7a1122e..c0a024dc6a5c93007cd422e50796ba5f06c79509 100644 (file)
@@ -46,9 +46,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index f44c91fc800fcae5c6c0a7821ffd9464bedee7dc..92153cb2553d18e1dd7395cbdf60bf404d26b575 100644 (file)
@@ -47,9 +47,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index f78b2e4ffe93ac4b21cf11716e86514238c0434b..c95245712cccdbaca16cb80185851dbed5b61aa2 100644 (file)
@@ -55,9 +55,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 74e33bb1b03374fc426134bfb0773460285b5afc..c05b92fbd7fe4d932d678d5efe4a63ed31c0f003 100644 (file)
@@ -60,9 +60,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index bf212b376cbe361ebb6126be16cbef10d8046d5d..11aa8596b1ffb0d831187f6eeea47ecb627e4a1d 100644 (file)
@@ -64,9 +64,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 56eaf7c20b5ae33be350400bacd336a901d35b28..8f5836ded15000894ccda63bdf6c467c348c2ed4 100644 (file)
@@ -67,9 +67,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 9202b1cd46c45b2b75696bbf0874af6769b89b51..bc1d775bcac25503214b15163660284ee48d80d4 100644 (file)
@@ -74,9 +74,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index b7f8aca95cc81168e539b404f43bcf5efb575bdd..d2945589a6240204094fab0634c0a8f4bac2de60 100644 (file)
@@ -79,9 +79,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index d4dc563f20bed899dad4fd13a8ce4c3a6f9b6e86..26db830a404df80d9792b806810b82fbeba7065c 100644 (file)
@@ -61,9 +61,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 0692f8b25c043e9bc7809d109bb4f9c45783ecd5..718d33e3cc4e8c57f8701b5216d52e2a96bf0a9f 100644 (file)
@@ -47,9 +47,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 78e6786dfc4b8af6d7099a0bf529ca3825ced422..aae843475f9117c93aa221bddd5d5e56b766ec78 100644 (file)
@@ -39,9 +39,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 37c630c2f44376c3d55b4061affd9427d6317de8..afaaaea3a5f6966bd8f486cf3c6ccb3bacecc99e 100644 (file)
@@ -38,9 +38,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index fe95b64b9dc57be3c7909f3c5589391ab38c0acf..042dd729f6d9c5adcb67697450440754940ba55f 100644 (file)
@@ -69,9 +69,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 
index 93dddf854c3735f71484995edff9f4a7426d78ad..9e111ccfc04341f72d9bf3f78b13211ca7cba5b0 100644 (file)
@@ -164,9 +164,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1, 1>();
   test<1, 2>();
index 02d5856f074abf87a1a7245dbbbd068c64e11c9b..a5e8ff4623af5367d620a2a8c76f5e2b05f73c47 100644 (file)
@@ -175,9 +175,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test<1, 1>();
   test<1, 2>();
index d1cfb184c1e2ae513b8c2c9bcae8d6aa26453465..c39abb0eafe4d4abbdd672476abde51dd2fffacf 100644 (file)
@@ -48,9 +48,8 @@ test()
 int
 main()
 {
-  std::ofstream logfile("output");
+  initlog();
   deallog << std::setprecision(3);
-  deallog.attach(logfile);
 
   test();
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.