From: Wolfgang Bangerth Date: Sun, 2 Jul 2023 17:16:09 +0000 (-0600) Subject: Introduce a variable that explicitly names the end time in step-26. X-Git-Tag: relicensing~793^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15593%2Fhead;p=dealii.git Introduce a variable that explicitly names the end time in step-26. --- 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;