Skip to content
Snippets Groups Projects
Commit 21abbc58 authored by Robert Kloefkorn's avatar Robert Kloefkorn
Browse files

fix insertionIndex, where return statement was missing.

parent e195dcb4
No related branches found
No related tags found
No related merge requests found
...@@ -252,19 +252,10 @@ namespace Dune ...@@ -252,19 +252,10 @@ namespace Dune
virtual unsigned int virtual unsigned int
insertionIndex ( const typename Codim< dimension >::Entity &entity ) const insertionIndex ( const typename Codim< dimension >::Entity &entity ) const
{ {
if(dimension == 3) if(dimension == 2)
return Grid::getRealImplementation( entity ).getIndex()/2;
else // dimension == 3
return Grid::getRealImplementation( entity ).getIndex(); return Grid::getRealImplementation( entity ).getIndex();
else if(dimension == 2)
{
if(elementType == hexa)
{
return Grid::getRealImplementation( entity ).getIndex()/2;
}
else if(elementType == tetra)
{
return Grid::getRealImplementation( entity ).getIndex()/2;
}
}
} }
virtual unsigned int virtual unsigned int
......
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