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

cleanup: do not directly us id component but use the leafIndex access function

[[Imported from SVN: r2972]]
parent 6665e13b
Branches
Tags
No related merge requests found
......@@ -102,11 +102,13 @@ namespace Dune {
}
int leafIndex() const {
return target_->myvertex->iv.id;
return UG_NS<dim>::leafIndex(target_);
// return target_->myvertex->iv.id;
}
unsigned int localId() const {
return target_->id;
return UG_NS<dim>::id(target_);
// return target_->id;
}
unsigned int globalId() const {
......@@ -307,7 +309,7 @@ namespace Dune {
//! Reference to one past the last neighbor
UGGridIntersectionIterator<GridImp> iend () const;
//! returns true if Entity has children
//! returns true if Entity has NO children
bool isLeaf() const {
return UG_NS<dim>::isLeaf(target_);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment