Skip to content
Snippets Groups Projects
Commit 6bde8577 authored by Peter Bastian's avatar Peter Bastian
Browse files

implemented all missing size methods using index sets

ALUGrid specialists: Please provide a better implementation if there is one.

[[Imported from SVN: r2968]]
parent 30b9ea34
Branches
Tags
No related merge requests found
......@@ -334,6 +334,24 @@ namespace Dune {
//! number of grid entities per level and codim
int size (int level, int cd) const;
//! number of leaf entities per codim in this process
int size (int codim) const
{
return size(codim,simplex);
}
//! number of entities per level, codim and geometry type in this process
int size (int level, int codim, GeometryType type) const
{
return this->levelIndexSet(level).size(codim,type);
}
//! number of leaf entities per codim and geometry type in this process
int size (int codim, GeometryType type) const
{
return this->leafIndexSet().size(codim,type);
}
//! number of grid entities on all levels for given codim
int global_size (int cd) const DUNE_DEPRECATED;
......
......@@ -131,7 +131,7 @@ namespace Dune {
template <int dim, int dimworld, ALU3dGridElementType elType>
inline int ALU3dGrid<dim, dimworld, elType>::size(int level, int codim) const
{
return levelIndexSet(level).size(codim,this->geomTypes()[0]);
return levelIndexSet(level).size(codim,this->geomTypes(codim)[0]);
}
template <int dim, int dimworld, ALU3dGridElementType elType>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment