From daa40a343fb4a6b3894975830d55da60b35463f0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 17 Oct 2007 14:32:51 +0000 Subject: [PATCH] Make computations even faster. Produce better output file names that sort more easily, also create output for the first time step by assigning it number 0. git-svn-id: https://svn.dealii.org/trunk@15335 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-22/step-22.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deal.II/examples/step-22/step-22.cc b/deal.II/examples/step-22/step-22.cc index 0d54c6b23e..749dd6d007 100644 --- a/deal.II/examples/step-22/step-22.cc +++ b/deal.II/examples/step-22/step-22.cc @@ -16,6 +16,7 @@ #include #include #include +#include #include #include @@ -291,7 +292,7 @@ template void InverseMatrix::vmult (Vector &dst, const Vector &src) const { - SolverControl solver_control (src.size(), 1e-8*src.l2_norm()); + SolverControl solver_control (src.size(), 1e-6*src.l2_norm()); SolverCG<> cg (solver_control, vector_memory); PreconditionJacobi<> preconditioner; @@ -820,7 +821,7 @@ void BoussinesqFlowProblem::output_results () const data_out.build_patches (degree); std::ostringstream filename; - filename << "solution-" << timestep_number << ".vtk"; + filename << "solution-" << Utilities::int_to_string(timestep_number, 4) << ".vtk"; std::ofstream output (filename.str().c_str()); data_out.write_vtk (output); @@ -882,7 +883,7 @@ void BoussinesqFlowProblem::run () old_solution); } - timestep_number = 1; + timestep_number = 0; double time = 0; do -- 2.39.5