From: Stefano Zampini Date: Thu, 26 Jan 2023 12:30:55 +0000 (+0300) Subject: use mpi_initlog X-Git-Tag: v9.5.0-rc1~559^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b90669c33451a409c3bf3c371ae138ac1fff14c2;p=dealii.git use mpi_initlog --- 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;