]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Optimize get_view a bit.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Dec 2009 23:15:55 +0000 (23:15 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 3 Dec 2009 23:15:55 +0000 (23:15 +0000)
git-svn-id: https://svn.dealii.org/trunk@20197 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/index_set.cc

index f2093054f0b7a680ccd323e34fe90d66c353c002..15dc09783c524296325874de1d7ec5f03f940aa6 100644 (file)
@@ -176,6 +176,10 @@ IndexSet::get_view (const unsigned int begin,
                            std::min(r1->end, end)-begin);
 
        }
+      else
+       if (r1->begin >= end)
+         break
+
       ++r1;
     }
 

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.