From: David Wells Date: Fri, 21 May 2021 16:21:49 +0000 (-0400) Subject: step-78: Make output a lot quieter. X-Git-Tag: v9.3.0-rc1~9^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7fa62c5cdd19ffab17da5169d4f3781d3872c41;p=dealii.git step-78: Make output a lot quieter. We don't want to print thousands of lines. --- diff --git a/examples/step-78/step-78.cc b/examples/step-78/step-78.cc index bb2cd42b49..e56a6ab22b 100644 --- a/examples/step-78/step-78.cc +++ b/examples/step-78/step-78.cc @@ -533,8 +533,6 @@ namespace BlackScholesSolver preconditioner.initialize(system_matrix, 1.0); cg.solve(system_matrix, solution, system_rhs, preconditioner); constraints.distribute(solution); - std::cout << " " << solver_control.last_step() << " CG iterations." - << std::endl; } // @sect4{BlackScholes::add_results_for_output} @@ -751,8 +749,10 @@ namespace BlackScholesSolver { time += time_step; ++timestep_number; - std::cout << "Time step " << timestep_number << " at t=" << time - << std::endl; + + if (timestep_number % 1000 == 0) + std::cout << "Time step " << timestep_number << " at t=" << time + << std::endl; mass_matrix.vmult(system_rhs, solution);