]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-81: print something more to the screen 17475/head
authorTimo Heister <timo.heister@gmail.com>
Sun, 11 Aug 2024 19:05:49 +0000 (15:05 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 12 Aug 2024 00:24:18 +0000 (20:24 -0400)
examples/step-81/step-81.cc
tests/examples/step-81.with_umfpack=true.output

index 3313cf66e44a31927c5337ebd40ae07ad1d028ad..eb1b788c279bd415e1d8d5161dc79a540d414cc7 100644 (file)
@@ -850,8 +850,10 @@ namespace Step81
     data_out.add_data_vector(solution,
                              {"real_Ex", "real_Ey", "imag_Ex", "imag_Ey"});
     data_out.build_patches();
-    std::ofstream output("solution.vtk");
+    const std::string filename = "solution.vtk";
+    std::ofstream     output(filename);
     data_out.write_vtk(output);
+    std::cout << "Output written to " << filename << std::endl;
   }
 
 
index a05168d55ebdd89b922ebe80d2314803557e88d7..bc54b634a3412d845b93c22e2a3bfe7277345ebc 100644 (file)
@@ -1,2 +1,3 @@
 Number of active cells: 65536
 Number of degrees of freedom: 263168
+Output written to solution.vtk

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.