From 03eb5c2ed364f0483ca6c4f741ac64c0724de697 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 15 Apr 2004 22:32:07 +0000 Subject: [PATCH] Minor changes. git-svn-id: https://svn.dealii.org/trunk@9022 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/examples/step-15/step-15.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/deal.II/examples/step-15/step-15.cc b/deal.II/examples/step-15/step-15.cc index 45cb026214..496b6dd7de 100644 --- a/deal.II/examples/step-15/step-15.cc +++ b/deal.II/examples/step-15/step-15.cc @@ -799,8 +799,7 @@ void MinimizationProblem::do_step () hanging_node_constraints.distribute (update); } - const double step_length = line_search (update); - present_solution.add (step_length, update); + present_solution.add (line_search (update), update); } @@ -1018,9 +1017,8 @@ void MinimizationProblem::run () while (true) { setup_system_on_mesh (); - - unsigned int iteration=0; - for (; iteration<5; ++iteration) + + for (unsigned int iteration=0; iteration<5; ++iteration) do_step (); const double this_energy = energy (dof_handler, present_solution); -- 2.39.5