]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace wrong loop bounds
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Jul 2011 02:14:01 +0000 (02:14 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 1 Jul 2011 02:14:01 +0000 (02:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@23899 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/event.h

index 79a0e7f19e3657327e366725dba7102ec1574c98..5dcba7beb720bedcea3cb79181940214ac8f494f 100644 (file)
@@ -234,7 +234,7 @@ namespace Algorithms
 
     if (flags.size() < event.flags.size())
       flags.resize(event.flags.size());
-    for (unsigned int i=0;i<flags.size();++i)
+    for (unsigned int i=0;i<event.flags.size();++i)
       flags[i] = flags[i] || event.flags[i];
 
     return *this;
@@ -257,7 +257,7 @@ namespace Algorithms
 
     if (flags.size() < event.flags.size())
       flags.resize(event.flags.size());
-    for (unsigned int i=0;i<flags.size();++i)
+    for (unsigned int i=0;i<event.flags.size();++i)
       if (event.flags[i]) flags[i] = false;
 
     return *this;

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.