Commit 889213a7 authored by Thomas Pitiot 's avatar Thomas Pitiot

work in progress

parent 60d13b2e
......@@ -185,8 +185,8 @@ Dart IHM2<PFP>::faceOldestDart(Dart d)
unsigned int l = m_map.getDartLevel(it) ;
if(l == 0)
return it ;
if(l < l_old)
// if(l < l_old || (l == l_old && it < oldest))
if(l < l_old || (l == l_old && it.index < oldest.index))
{
oldest = it ;
l_old = l ;
......
......@@ -537,8 +537,8 @@ Dart ImplicitHierarchicalMap3::faceOldestDart(Dart d)
unsigned int l = m_dartLevel[it] ;
if(l == 0)
return it ;
if(l < l_old)
//if(l < l_old || (l == l_old && it < oldest))
if(l < l_old || (l == l_old && it.index < oldest.index))
{
oldest = it ;
l_old = l ;
......@@ -560,7 +560,7 @@ Dart ImplicitHierarchicalMap3::volumeOldestDart(Dart d)
{
Dart old = faceOldestDart(dit);
unsigned int l = m_dartLevel[old];
if(l < l_old)
if(l < l_old || (l == l_old && it.index < oldest.index))
{
oldest = old;
l_old = l;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment