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

minor changes.

[[Imported from SVN: r3568]]
parent a493623b
No related branches found
No related tags found
No related merge requests found
......@@ -62,13 +62,14 @@ namespace Dune {
DUNE_THROW(GridError,
"wrong number of subEntities of codim " << codim);
}
for(int subEntity = 0; subEntity < refElem.size(0,0,codim); subEntity++)
{
typedef std::pair < int , GeometryType > SubEntityKeyType;
{
int numSubEntities = refElem.size(subEntity,codim,dim);
// every entity have at least one vertex
//assert( numSubEntities > 0 );
assert( numSubEntities > 0 );
// create vectors of number of vertices on sub entity
std::vector<int> local (numSubEntities,-1);
......@@ -248,8 +249,9 @@ namespace Dune {
derr << "WARNING: gridsize = "<< gridsize << " entities | map of entities = "
<< entityfound.size() << " for codim " << codim << std::endl;
}
// gridsize should be at least the size of found entities
assert( gridsize <= (int) entityfound.size() );
//assert( gridsize <= (int) entityfound.size() );
}
......@@ -310,9 +312,9 @@ namespace Dune {
for(int j=0; j<s; j++)
{
sout << refElem.subEntity(i , codim , j , dim );
if(j == s-1) sout << "]\n";
else sout << ",";
if(j != s-1) sout << ",";
}
sout << "]\n";
}
}
......
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