From e7fa62c5cdd19ffab17da5169d4f3781d3872c41 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 21 May 2021 12:21:49 -0400 Subject: [PATCH] step-78: Make output a lot quieter. We don't want to print thousands of lines. --- examples/step-78/step-78.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); -- 2.39.5