From 6c209ca229484399b0996994e0a8e0b0aac8ba3b Mon Sep 17 00:00:00 2001
From: Matthias Maier <tamiko@43-1.org>
Date: Fri, 7 Jul 2023 01:30:47 -0500
Subject: [PATCH] examples/step-40: use check_solver_within_range with pcout
 ostream

---
 tests/examples/step-40.diff                                  | 5 +++--
 .../step-40.mpirun=2.with_p4est=true.with_petsc=true.output  | 3 ---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/tests/examples/step-40.diff b/tests/examples/step-40.diff
index 465c92cf94..508d46f13f 100644
--- a/tests/examples/step-40.diff
+++ b/tests/examples/step-40.diff
@@ -25,11 +25,12 @@
   
       constraints.distribute(completely_distributed_solution);
   
---- 494,506 ----
+--- 494,507 ----
       LA::MPI::PreconditionAMG preconditioner;
       preconditioner.initialize(system_matrix, data);
   
-!     check_solver_within_range(solver.solve(system_matrix,
+!     check_solver_within_range(pcout,
+!                               solver.solve(system_matrix,
 !                                            completely_distributed_solution,
 !                                            system_rhs,
 !                                            preconditioner),
diff --git a/tests/examples/step-40.mpirun=2.with_p4est=true.with_petsc=true.output b/tests/examples/step-40.mpirun=2.with_p4est=true.with_petsc=true.output
index 6bf5cce606..a96b3045a5 100644
--- a/tests/examples/step-40.mpirun=2.with_p4est=true.with_petsc=true.output
+++ b/tests/examples/step-40.mpirun=2.with_p4est=true.with_petsc=true.output
@@ -3,17 +3,14 @@ Cycle 0:
    Number of active cells:       1024
    Number of degrees of freedom: 4225
 Solver stopped within 8 - 15 iterations
-Solver stopped within 8 - 15 iterations
 
 Cycle 1:
    Number of active cells:       1960
    Number of degrees of freedom: 8421
 Solver stopped within 8 - 15 iterations
-Solver stopped within 8 - 15 iterations
 
 Cycle 2:
    Number of active cells:       3658
    Number of degrees of freedom: 16109
 Solver stopped within 8 - 15 iterations
-Solver stopped within 8 - 15 iterations
 
-- 
2.39.5