]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make computations even faster. Produce better output file names that sort more easily...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Oct 2007 14:32:51 +0000 (14:32 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Oct 2007 14:32:51 +0000 (14:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@15335 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 0d54c6b23e55b9b82d0eef0ffcf66c84988dd7f8..749dd6d007e30adb79f8a1fe0fc9961a330dbd32 100644 (file)
@@ -16,6 +16,7 @@
 #include <base/quadrature_lib.h>
 #include <base/logstream.h>
 #include <base/function.h>
+#include <base/utilities.h>
 
 #include <lac/block_vector.h>
 #include <lac/full_matrix.h>
@@ -291,7 +292,7 @@ template <class Matrix>
 void InverseMatrix<Matrix>::vmult (Vector<double>       &dst,
                                    const Vector<double> &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<dim>::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<dim>::run ()
                           old_solution);
   }
   
-  timestep_number = 1;
+  timestep_number = 0;
   double time = 0;
   
   do

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.