]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix bug.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Dec 2009 19:24:48 +0000 (19:24 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 2 Dec 2009 19:24:48 +0000 (19:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@20196 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/index_set.cc

index 4523416f7889e2ede23aea8596dfb589d8dd0f40..f2093054f0b7a680ccd323e34fe90d66c353c002 100644 (file)
@@ -168,7 +168,9 @@ IndexSet::get_view (const unsigned int begin,
 
   while (r1 != ranges.end())
     {
-      if (r1->end > begin || r1->begin < end)
+      if ((r1->end > begin)
+         &&
+         (r1->begin < end))
        {
          result.add_range (std::max(r1->begin, begin)-begin,
                            std::min(r1->end, end)-begin);

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.