From: Wolfgang Bangerth Date: Fri, 30 May 2025 17:14:14 +0000 (-0600) Subject: Make step-93 compile. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3711d877cc6c482989a93fb1ff177de437e720a8;p=dealii.git Make step-93 compile. --- diff --git a/examples/step-93/step-93.cc b/examples/step-93/step-93.cc index bcb2d5a2e4..3c0da0b526 100644 --- a/examples/step-93/step-93.cc +++ b/examples/step-93/step-93.cc @@ -642,17 +642,18 @@ namespace Step93 template void Step93::solve() { + Timer timer; + timer.start(); + std::cout << "Beginning solve..." << std::endl; - { - Timer timer; - SolverControl solver_control(1'000'000, 1e-6 * system_rhs.l2_norm()); - SolverMinRes> solver(solver_control); + SolverControl solver_control(1'000'000, 1e-6 * system_rhs.l2_norm()); + SolverMinRes> solver(solver_control); - solver.solve(system_matrix, solution, system_rhs, PreconditionIdentity()); + solver.solve(system_matrix, solution, system_rhs, PreconditionIdentity()); + + timer.stop(); - timer.stop(); - } std::cout << "Wall time: " << timer.wall_time() << "s" << std::endl; std::cout << "Solved in " << solver_control.last_step() << " MINRES iterations." << std::endl;