]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use VTK as the file format for step-3.
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 23 Aug 2019 16:12:51 +0000 (10:12 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 23 Aug 2019 16:12:51 +0000 (10:12 -0600)
examples/step-3/step-3.cc

index 8f695b463beddd8a391cd3bd47f6d896e1acbef5..c9a1f2ee6ec208ff758197da49bcb73bad14485d 100644 (file)
@@ -594,11 +594,12 @@ void Step3::output_results() const
   data_out.build_patches();
 
   // Now we have everything in place for the actual output. Just open a file
-  // and write the data into it, using GNUPLOT format (there are other
-  // functions which write their data in postscript, AVS, GMV, or some other
-  // format):
-  std::ofstream output("solution.gpl");
-  data_out.write_gnuplot(output);
+  // and write the data into it, using VTK format (there are many other
+  // functions in the DataOut class we are using here that can write the
+  // data in postscript, AVS, GMV, Gnuplot, or some other file
+  // formats):
+  std::ofstream output("solution.vtk");
+  data_out.write_vtk(output);
 }
 
 

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.