Skip to content
Snippets Groups Projects
Commit 08f1bc85 authored by Timo Koch's avatar Timo Koch
Browse files

Make use of the entity's equal method to get rid of custom comparison logic

parent e5e0c9b2
No related branches found
No related tags found
No related merge requests found
......@@ -47,8 +47,8 @@ class FoamGridEntityPointer
{}
//! equality
bool equals(const FoamGridEntityPointer<codim,GridImp>& i) const {
return GridImp::getRealImplementation(virtualEntity_).target_ == GridImp::getRealImplementation(i.virtualEntity_).target_;
bool equals(const FoamGridEntityPointer<codim,GridImp>& other) const {
return virtualEntity_ == other.virtualEntity_;
}
......
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