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) ...@@ -185,8 +185,8 @@ Dart IHM2<PFP>::faceOldestDart(Dart d)
unsigned int l = m_map.getDartLevel(it) ; unsigned int l = m_map.getDartLevel(it) ;
if(l == 0) if(l == 0)
return it ; 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 ; oldest = it ;
l_old = l ; l_old = l ;
......
...@@ -537,8 +537,8 @@ Dart ImplicitHierarchicalMap3::faceOldestDart(Dart d) ...@@ -537,8 +537,8 @@ Dart ImplicitHierarchicalMap3::faceOldestDart(Dart d)
unsigned int l = m_dartLevel[it] ; unsigned int l = m_dartLevel[it] ;
if(l == 0) if(l == 0)
return it ; 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 ; oldest = it ;
l_old = l ; l_old = l ;
...@@ -560,7 +560,7 @@ Dart ImplicitHierarchicalMap3::volumeOldestDart(Dart d) ...@@ -560,7 +560,7 @@ Dart ImplicitHierarchicalMap3::volumeOldestDart(Dart d)
{ {
Dart old = faceOldestDart(dit); Dart old = faceOldestDart(dit);
unsigned int l = m_dartLevel[old]; unsigned int l = m_dartLevel[old];
if(l < l_old) if(l < l_old || (l == l_old && it.index < oldest.index))
{ {
oldest = old; oldest = old;
l_old = l; 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