Skip to content
Snippets Groups Projects
Commit b51e5ba7 authored by Christian Engwer's avatar Christian Engwer
Browse files

improved gridcheck

[[Imported from SVN: r2882]]
parent b6d0a906
No related branches found
No related tags found
No related merge requests found
......@@ -495,9 +495,22 @@ struct subIndexCheck
{
if( g.levelIndexSet(e.level()).index( *(e.template entity<cd>(i)) )
!= g.levelIndexSet(e.level()).template subIndex<cd>(e,i) )
{
int id_e =
g.levelIndexSet(e.level()).index(e);
int id_e_i =
g.levelIndexSet(e.level()).index( *(e.template entity<cd>(i)) );
int subid_e_i =
g.levelIndexSet(e.level()).template subIndex<cd>(e,i);
DUNE_THROW(CheckError,
"g.levelIndexSet.index( *(e.template entity<cd>(i)) ) "
"== g.levelIndexSet.template subIndex<cd>(e,i) failed");
<< "== g.levelIndexSet.template subIndex<cd>(e,i) failed "
<< "[with cd=" << cd << ", i=" << i << "]"
<< " ... index(e)=" << id_e
<< " ... index(e.entity<cd>(i))=" << id_e_i
<< " ... subIndex(e,i)=" << subid_e_i
);
}
}
subIndexCheck<cd-1,Grid,Entity,
Dune::Capabilities::hasEntity<Grid,cd-1>::v> sick(g,e);
......
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