]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not write gratuitous output files into test directories. 14659/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 10 Jan 2023 15:51:53 +0000 (08:51 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 10 Jan 2023 15:51:53 +0000 (08:51 -0700)
I don't think we still need those. If someone needs to look at this test in detail
again at a future time, it's easy enough to add these lines again by hand.

tests/simplex/data_out_write_vtu_01.cc

index 445b8aa40e9f461e04f10540efdcaa2f6d54e4b8..b1c67611960b48e3461a2ac5509aaa14045e9801 100644 (file)
@@ -73,8 +73,6 @@ test(const FiniteElement<dim, spacedim> &fe, const unsigned int n_components)
                            RightHandSideFunction<dim>(n_components),
                            solution);
 
-  static unsigned int counter = 0;
-
   for (unsigned int n_subdivisions = 1; n_subdivisions <= 2; ++n_subdivisions)
     {
       DataOut<dim> data_out;
@@ -85,13 +83,7 @@ test(const FiniteElement<dim, spacedim> &fe, const unsigned int n_components)
 
       data_out.build_patches(mapping, n_subdivisions);
 
-      //#if false
-      std::ofstream output("test." + std::to_string(dim) + "." +
-                           std::to_string(counter++) + ".vtu");
-      data_out.write_vtu(output);
-      //#else
       data_out.write_vtu(deallog.get_file_stream());
-      //#endif
     }
 }
 

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.