From 7eadc9e023cdc8fe1e338aa69dcb2297154fcc22 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 2 Jul 2023 11:16:09 -0600 Subject: [PATCH] Introduce a variable that explicitly names the end time in step-26. --- examples/step-26/step-26.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/step-26/step-26.cc b/examples/step-26/step-26.cc index 6d2d9afddb..238bcdb360 100644 --- a/examples/step-26/step-26.cc +++ b/examples/step-26/step-26.cc @@ -472,7 +472,8 @@ namespace Step26 // Recall that it contains the term $MU^{n-1}-(1-\theta)k_n AU^{n-1}$. // We put these terms into the variable system_rhs, with the // help of a temporary vector: - while (time <= 0.5) + const double end_time = 0.5; + while (time <= end_time) { time += time_step; ++timestep_number; -- 2.39.5