Skip to content
Snippets Groups Projects
Commit d9d5cac6 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

don't throw assertion in method subIndex for codim 0 .

[[Imported from SVN: r3132]]
parent be248a6b
No related branches found
No related tags found
No related merge requests found
......@@ -640,11 +640,10 @@ namespace Dune {
template <int cd>
int subIndex (const EntityCodim0Type & en, int i) const
{
assert( cd > 0 );
assert( cd >= 0 );
assert( cd < ncodim );
if(!codimUsed_[cd]) this->template setUpCodimSet<cd>();
return codimLeafSet_[cd].index ( hIndexSet_. template subIndex<cd> (en,i) );
//return hIndexSet_. template subIndex<cd> (en,i) ;
}
//! returns vector with geometry tpyes this index set has indices for
......@@ -668,7 +667,6 @@ namespace Dune {
//! set indices to unsed
void remove (const EntityCodim0Type & en)
{
//std::cout << "Remove el = "<< hIndexSet_.index(en) << "\n";
codimLeafSet_[0].remove ( hIndexSet_.index(en) );
if(higherCodims_)
{
......@@ -688,8 +686,6 @@ namespace Dune {
//! return size of grid entities per level and codim
int size ( int codim , GeometryType type = unknown ) const
{
//if(codim == 0) return codimLeafSet_[codim].size();
//return hIndexSet_.size(codim);
return codimLeafSet_[codim].size();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment