From: bangerth Date: Mon, 24 Jul 2006 17:00:06 +0000 (+0000) Subject: Minor improvements X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed728767a8b50e1ae5d9d5f8065e4126b8015468;p=dealii-svn.git Minor improvements git-svn-id: https://svn.dealii.org/trunk@13435 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-23/step-23.cc b/deal.II/examples/step-23/step-23.cc index 65ffc0c203..4afa1129b8 100644 --- a/deal.II/examples/step-23/step-23.cc +++ b/deal.II/examples/step-23/step-23.cc @@ -219,8 +219,8 @@ void WaveEquationProblem::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::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::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::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 tmp (solution_u.size()); mass_matrix.vmult (system_rhs, old_solution_u);