]> https://gitweb.dealii.org/ - dealii.git/commitdiff
use mpi_initlog 14716/head
authorStefano Zampini <stefano.zampini@gmail.com>
Thu, 26 Jan 2023 12:30:55 +0000 (15:30 +0300)
committerStefano Zampini <stefano.zampini@gmail.com>
Thu, 26 Jan 2023 12:30:55 +0000 (15:30 +0300)
tests/petsc/assemble_matrix_parallel_01.cc

index 3f79a650f4de39da6ce53fdd133775242e011ae0..9aa69077aa638752013dfa10f248c9b7c537fdb7 100644 (file)
 
 #include "../tests.h"
 
-std::ofstream logfile("output");
-
-
-
 namespace Assembly
 {
   namespace Scratch
@@ -470,13 +466,12 @@ LaplaceProblem<dim>::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;

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.