]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Minor changes.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 15 Apr 2004 22:32:07 +0000 (22:32 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 15 Apr 2004 22:32:07 +0000 (22:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@9022 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-15/step-15.cc

index 45cb026214f6c5f235a1621eef6ebe992925fde8..496b6dd7def1fd830685930e2b5ea3fd27a627ef 100644 (file)
@@ -799,8 +799,7 @@ void MinimizationProblem<dim>::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<dim>::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);

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.