]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
More standardization.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Mar 2013 04:00:05 +0000 (04:00 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Mar 2013 04:00:05 +0000 (04:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@28952 0785d39b-7218-0410-832d-ea1e28bc413d

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

index ab471df4ed35154eaff7a5ce5487bf66e7813704..368567c199757374ee403871a0a46e710313233e 100644 (file)
@@ -231,9 +231,11 @@ namespace Step26
     Vector<double> tmp(solution.size());
     Vector<double> forcing_terms(solution.size());
 
-    for (timestep_number = 1, time = time_step; time <= 0.5;
-         time += time_step, ++timestep_number)
+    while (time <= 0.5)
       {
+       time += time_step;
+       ++timestep_number;
+
         std::cout << "Time step " << timestep_number << " at t=" << time
                   << std::endl;
 

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.