]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix one stupid bug.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 15 Oct 2009 21:45:57 +0000 (21:45 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 15 Oct 2009 21:45:57 +0000 (21:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@19892 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/index_set.cc

index 618a29067bd1a3f1ecd592ec24ddf8100bbf9a1b..4b7e0a2a294a1fe355ad722ce338736e4f31a506 100644 (file)
@@ -43,7 +43,7 @@ IndexSet::compress () const
       while (next != ranges.end() &&
             (next->begin <= last_index))
        {
-         last_index = next->end;
+         last_index = std::max (last_index, next->end);
          ++next;
          can_merge = true;
        }

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.