]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Division by zero removed
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Mar 2000 22:38:28 +0000 (22:38 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 14 Mar 2000 22:38:28 +0000 (22:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@2584 0785d39b-7218-0410-832d-ea1e28bc413d

tests/base/timer.cc

index 024209a054da1109bb40fc79c5695792361d1029..2df61d3f8384f4a44ed8542c7f39ec36c4147a99 100644 (file)
@@ -40,7 +40,7 @@ void burn (unsigned int n)
   double s;
   for (unsigned int i=0 ; i<n ; ++i)
     {
-      for (unsigned int j=0 ; j<100000 ; ++j)
+      for (unsigned int j=1 ; j<100000 ; ++j)
        {
          s += 1./j * i;
        }

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.