From: Wolfgang Bangerth Date: Thu, 26 Mar 2015 12:53:34 +0000 (-0500) Subject: Minor doc update. X-Git-Tag: v8.3.0-rc1~354^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F691%2Fhead;p=dealii.git Minor doc update. --- 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;