]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix two tests after elimination of logfile 9662/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 15 Mar 2020 10:14:30 +0000 (11:14 +0100)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sun, 15 Mar 2020 10:14:30 +0000 (11:14 +0100)
tests/mpi/torus.cc
tests/petsc/vector_print.cc

index ff026ac5efca6ca76ac2f5fc7b63ed3a9da2e0bb..948ee93baf0e79fdcd070196d74f39c6283c0e9f 100644 (file)
@@ -76,11 +76,6 @@ main(int argc, char *argv[])
     argc, argv, testing_max_num_threads());
   MPILogInitAll log;
 
-  if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
-    {
-      static initlog();
-    }
-
   parallel::distributed::Triangulation<2, 3> triangulation(
     MPI_COMM_WORLD,
     typename Triangulation<2, 3>::MeshSmoothing(
index 0b4a5e1261fe08933e5f1f10cf94316f028b3810..22b3167a67a8e37c5f3942b69ac5c369f7520a64 100644 (file)
@@ -46,10 +46,10 @@ main(int argc, char **argv)
 
         // print with prescribed precision
         deallog << "across=false" << std::endl;
-        v.print(logfile, 10, true, false);
+        v.print(deallog.get_file_stream(), 10, true, false);
 
         deallog << "across=true" << std::endl;
-        v.print(logfile, 10, true, true);
+        v.print(deallog.get_file_stream(), 10, true, true);
 
         // print once more. should be the old precision again
         deallog << numbers::PI << std::endl;

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.