]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Minor improvements
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jul 2006 17:00:06 +0000 (17:00 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 24 Jul 2006 17:00:06 +0000 (17:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@13435 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 65ffc0c203d65777eb1bf37bdfa294c5a04cedda..4afa1129b86444086f0dbf8b6fc7ccb4fb024bcb 100644 (file)
@@ -219,8 +219,8 @@ void WaveEquationProblem<dim>::solve_u ()
   cg.solve (system_matrix, solution_u, system_rhs,
            PreconditionIdentity());
 
-  std::cout << "   " << solver_control.last_step()
-           << " CG iterations needed to obtain convergence."
+  std::cout << "   u-equation: " << solver_control.last_step()
+           << " CG iterations."
            << std::endl;
 }
 
@@ -233,8 +233,8 @@ void WaveEquationProblem<dim>::solve_v ()
   cg.solve (mass_matrix, solution_v, system_rhs,
            PreconditionIdentity());
 
-  std::cout << "   " << solver_control.last_step()
-           << " CG iterations needed to obtain convergence."
+  std::cout << "   v-equation: " << solver_control.last_step()
+           << " CG iterations."
            << std::endl;
 }
 
@@ -253,7 +253,8 @@ void WaveEquationProblem<dim>::output_results (const unsigned int timestep_numbe
 
   std::ostringstream filename;
   filename << "solution-"
-          << timestep_number;
+          << timestep_number
+          << ".gnuplot";
   std::ofstream output (filename.str().c_str());
   data_out.write_gnuplot (output);
 }
@@ -281,6 +282,10 @@ void WaveEquationProblem<dim>::run ()
   unsigned int timestep_number = 1;
   for (double time = time_step; time<=5; time+=time_step, ++timestep_number)
     {
+      std::cout << "Time step " << timestep_number
+               << " at t=" << time
+               << std::endl;
+      
       Vector<double> tmp (solution_u.size());
 
       mass_matrix.vmult (system_rhs, old_solution_u);

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.