]> https://gitweb.dealii.org/ - dealii.git/commitdiff
grid output
authorBaerbel Jannsen <baerbel.janssen@gmail.com>
Wed, 6 Jan 2010 13:31:23 +0000 (13:31 +0000)
committerBaerbel Jannsen <baerbel.janssen@gmail.com>
Wed, 6 Jan 2010 13:31:23 +0000 (13:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@20315 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-42/step-42.cc

index 805f0921e45d2d30785b1d0db53bb657e3f6dcd5..3c72345de8d1bd44b13095972c27ae703e7b6a0a 100644 (file)
@@ -34,6 +34,7 @@
 #include <grid/tria_iterator.h>
 #include <grid/tria_boundary_lib.h>
 #include <grid/grid_tools.h>
+#include <grid/grid_out.h>
 #include <grid/grid_refinement.h>
 
 #include <dofs/dof_handler.h>
@@ -1003,6 +1004,15 @@ void StokesProblem<dim>::run ()
       if (refinement_cycle > 0)
         refine_mesh ();
 
+      std::ostringstream out_filename;
+      out_filename << "gitter"
+        << refinement_cycle
+        << ".eps";
+
+      std::ofstream grid_output (out_filename.str().c_str());
+      GridOut grid_out;
+      grid_out.write_eps (triangulation, grid_output);
+
       setup_dofs ();
 
       std::cout << "   Assembling..." << std::endl << std::flush;

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.