]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
step-50: add gridout
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 May 2013 13:55:20 +0000 (13:55 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 24 May 2013 13:55:20 +0000 (13:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@29570 0785d39b-7218-0410-832d-ea1e28bc413d

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

index d7593ead9ab96048a2a60360aab54d983303d67c..03b0057bde85328451b37c6c6920ddcffe83d07a 100644 (file)
@@ -49,6 +49,7 @@
 #include <deal.II/grid/tria_accessor.h>
 #include <deal.II/grid/tria_iterator.h>
 #include <deal.II/grid/grid_generator.h>
+#include <deal.II/grid/grid_out.h>
 #include <deal.II/grid/grid_refinement.h>
 #include <deal.II/grid/tria_boundary_lib.h>
 
@@ -299,6 +300,12 @@ namespace Step50
   template <int dim>
   void LaplaceProblem<dim>::setup_system ()
   {
+    std::ofstream out ("grid.svg");
+    GridOut grid_out;
+    grid_out.write_svg (triangulation, out);
+
+
+
     mg_dof_handler.distribute_dofs (fe);
     mg_dof_handler.distribute_mg_dofs (fe);
 

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.