From 0071dc1b3f226d50e9a26ea987155216e370de98 Mon Sep 17 00:00:00 2001 From: Baerbel Jannsen Date: Wed, 6 Jan 2010 13:31:23 +0000 Subject: [PATCH] grid output git-svn-id: https://svn.dealii.org/trunk@20315 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-42/step-42.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/deal.II/examples/step-42/step-42.cc b/deal.II/examples/step-42/step-42.cc index 805f0921e4..3c72345de8 100644 --- a/deal.II/examples/step-42/step-42.cc +++ b/deal.II/examples/step-42/step-42.cc @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -1003,6 +1004,15 @@ void StokesProblem::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; -- 2.39.5