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

minor changes.

[[Imported from SVN: r3299]]
parent 3a2517c4
No related branches found
No related tags found
No related merge requests found
......@@ -478,7 +478,6 @@ namespace Dune {
rp(*this,f,s, *leafIndexSet_ ,*leafIndexSet_);
ref = myGrid().duneAdapt(rp); // adapt grid
//leafIndexSet_->compress();
}
else
{
......
......@@ -591,7 +591,8 @@ namespace Dune {
int index (const typename GridImp::template Codim<cd>::Entity& en) const
{
// this must not be true for vertices
assert( level_ == en.level() || (cd == dim) );
// therefore only check other codims
assert( (cd == dim) ? (1) : (level_ == en.level() ));
assert( levelIndex_[cd][ hIndexSet_.index(en) ] >= 0 );
return levelIndex_[cd][ hIndexSet_.index(en) ];
}
......@@ -602,7 +603,8 @@ namespace Dune {
int subIndex (const typename GridType::template Codim<0>::Entity & en, int i) const
{
// this must not be true for vertices
assert( level_ == en.level() || (cd == dim) );
// therefore only check other codims
assert( (cd == dim) ? (1) : (level_ == en.level() ));
assert(levelIndex_[cd][ hIndexSet_.template subIndex<cd>(en,i) ] >= 0 );
return levelIndex_[cd][ hIndexSet_.template subIndex<cd>(en,i) ];
}
......
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