From b90669c33451a409c3bf3c371ae138ac1fff14c2 Mon Sep 17 00:00:00 2001 From: Stefano Zampini Date: Thu, 26 Jan 2023 15:30:55 +0300 Subject: [PATCH] use mpi_initlog --- tests/petsc/assemble_matrix_parallel_01.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/tests/petsc/assemble_matrix_parallel_01.cc b/tests/petsc/assemble_matrix_parallel_01.cc index 3f79a650f4..9aa69077aa 100644 --- a/tests/petsc/assemble_matrix_parallel_01.cc +++ b/tests/petsc/assemble_matrix_parallel_01.cc @@ -58,10 +58,6 @@ #include "../tests.h" -std::ofstream logfile("output"); - - - namespace Assembly { namespace Scratch @@ -470,13 +466,12 @@ LaplaceProblem::run() int main(int argc, char **argv) { - deallog << std::setprecision(2); - logfile << std::setprecision(2); - deallog.attach(logfile); - Utilities::MPI::MPI_InitFinalize mpi_initialization( argc, argv, testing_max_num_threads()); + mpi_initlog(); + deallog << std::setprecision(2); + { deallog.push("2d"); LaplaceProblem<2> laplace_problem; -- 2.39.5