From: Wolfgang Bangerth Date: Thu, 15 Apr 2004 22:32:07 +0000 (+0000) Subject: Minor changes. X-Git-Tag: v8.0.0~15327 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd9372989ab210128cbc0fb423f7e47b636affe0;p=dealii.git Minor changes. git-svn-id: https://svn.dealii.org/trunk@9022 0785d39b-7218-0410-832d-ea1e28bc413d --- 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);