]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Output only every 20th step. Be prepared to output up to 100,000 steps.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Sep 2009 12:35:42 +0000 (12:35 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Sep 2009 12:35:42 +0000 (12:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@19373 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 1e13f52be737ecdbebfac686ec66b90790b2197f..23667c50fbacb750d30f460f675ef40df656b9fb 100644 (file)
@@ -2825,7 +2825,7 @@ void BoussinesqFlowProblem<dim>::solve ()
 template <int dim>
 void BoussinesqFlowProblem<dim>::output_results ()
 {
-  if (timestep_number % 10 != 0)
+  if (timestep_number % 20 != 0)
     return;
 
   computing_timer.enter_section ("Postprocessing");
@@ -2942,7 +2942,8 @@ void BoussinesqFlowProblem<dim>::output_results ()
       data_out.build_patches (std::min(stokes_degree, temperature_degree));
 
       std::ostringstream filename;
-      filename << "solution-" << Utilities::int_to_string(timestep_number, 4) << ".vtk";
+      filename << "solution-" << Utilities::int_to_string(timestep_number, 5)
+              << ".vtk";
 
       std::ofstream output (filename.str().c_str());
       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.