From 4ed349a3673513d265ba4c3f635b427b0e94624a Mon Sep 17 00:00:00 2001
From: Markus Blatt <mblatt@dune-project.org>
Date: Wed, 15 Feb 2006 12:41:41 +0000
Subject: [PATCH] assertion without warning.

[[Imported from SVN: r4082]]
---
 istl/paamg/globalaggregates.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/istl/paamg/globalaggregates.hh b/istl/paamg/globalaggregates.hh
index 278cf074c..5b9603499 100644
--- a/istl/paamg/globalaggregates.hh
+++ b/istl/paamg/globalaggregates.hh
@@ -47,7 +47,7 @@ namespace Dune
       inline GlobalIndex& get(std::size_t index)
       {
         const Vertex& aggregate = aggregates_[index];
-        assert(index < AggregatesMap<Vertex>::ISOLATED);
+        assert(aggregate < AggregatesMap<Vertex>::ISOLATED);
         const Dune::IndexPair<GlobalIndex,LocalIndex >* pair = indexset_.pair(aggregate);
         assert(pair!=0);
         return const_cast<GlobalIndex&>(pair->global());
-- 
GitLab