From ed728767a8b50e1ae5d9d5f8065e4126b8015468 Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 24 Jul 2006 17:00:06 +0000 Subject: [PATCH] Minor improvements git-svn-id: https://svn.dealii.org/trunk@13435 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-23/step-23.cc | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) 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); -- 2.39.5