From 119eb2c981e3712b861074d755f1105b88bf0bb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert=20Kl=C3=B6fkorn?=
 <robertk@mathematik.uni-stuttgart.de>
Date: Fri, 15 Jul 2005 13:45:15 +0000
Subject: [PATCH] check wether element is not tetra.

git-svn-id: https://dune.mathematik.uni-freiburg.de/svn/alugrid/trunk@317 0d966ed9-3843-0410-af09-ebfb50bd7c74
---
 src/duneinterface/gitter_dune_impl.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/duneinterface/gitter_dune_impl.cc b/src/duneinterface/gitter_dune_impl.cc
index b5b179660..0e6a11622 100644
--- a/src/duneinterface/gitter_dune_impl.cc
+++ b/src/duneinterface/gitter_dune_impl.cc
@@ -118,13 +118,16 @@ void GitterDuneBasis ::restoreIndices (istream & in)
     LeafIterator < helement_STI > ew(*this);
     for ( ew->first(); !ew->done(); ew->next()) 
     {
+      if( ew->item().type() != tetra ) continue;
       ew->item().setIndex( idx );
       idx++;
     }
     this->indexManager(0).setMaxIndex ( idx );
     assert (debugOption (20) ? (cout << endl << "**INFO GitterDuneBasis :: restoreIndices: create new leaf indices with size = " << idx << " ! file: "<< __FILE__ << ", line: " << __LINE__ << endl, 1) : 1) ;
+    printsize ();
     return ;
   }
+
   
   cerr<< "**WARNING: GitterDuneBasis :: restoreIndices: indices (id = " << indices << ") not read! file: "<< __FILE__ << ", line: " << __LINE__ << "\n";
   return ;
-- 
GitLab