From: Wolfgang Bangerth Date: Thu, 3 Sep 2009 12:35:42 +0000 (+0000) Subject: Output only every 20th step. Be prepared to output up to 100,000 steps. X-Git-Tag: v8.0.0~7196 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2833c39ae45f9e293d58c0e9b86bd1ab6e38b90;p=dealii.git Output only every 20th step. Be prepared to output up to 100,000 steps. git-svn-id: https://svn.dealii.org/trunk@19373 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-32/step-32.cc b/deal.II/examples/step-32/step-32.cc index 1e13f52be7..23667c50fb 100644 --- a/deal.II/examples/step-32/step-32.cc +++ b/deal.II/examples/step-32/step-32.cc @@ -2825,7 +2825,7 @@ void BoussinesqFlowProblem::solve () template void BoussinesqFlowProblem::output_results () { - if (timestep_number % 10 != 0) + if (timestep_number % 20 != 0) return; computing_timer.enter_section ("Postprocessing"); @@ -2942,7 +2942,8 @@ void BoussinesqFlowProblem::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);