From 9dad65ce313a3abfb526dc807d9475cf79bf2540 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 26 Mar 2015 07:53:34 -0500 Subject: [PATCH] Minor doc update. --- examples/step-15/step-15.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/examples/step-15/step-15.cc b/examples/step-15/step-15.cc index b92b423341..ba2c2e9b0f 100644 --- a/examples/step-15/step-15.cc +++ b/examples/step-15/step-15.cc @@ -1,6 +1,6 @@ /* --------------------------------------------------------------------- * - * Copyright (C) 2012 - 2014 by the deal.II authors + * Copyright (C) 2012 - 2015 by the deal.II authors * * This file is part of the deal.II library. * @@ -639,8 +639,9 @@ namespace Step15 // // At the beginning of the loop, we do a bit of setup work. In the first // go around, we compute the solution on the twice globally refined mesh - // after setting up the basic data structures. In all following mesh - // refinement loops, the mesh will be refined adaptively. + // after setting up the basic data structures and ensuring that the first + // Newton iterate already has the correct boundary values. In all + // following mesh refinement loops, the mesh will be refined adaptively. double previous_res = 0; while (first_step || (previous_res>1e-3)) { @@ -652,6 +653,8 @@ namespace Step15 setup_system (true); set_boundary_values (); + + first_step = false; } else { @@ -683,7 +686,6 @@ namespace Step15 solve (); - first_step = false; std::cout << " Residual: " << compute_residual(0) << std::endl; -- 2.39.5