From 34c274f44adaac1c6e0c5bf04c2d33ec0209f179 Mon Sep 17 00:00:00 2001
From: Bruno Seny <bruno.seny@student.uclouvain.be>
Date: Mon, 7 Mar 2011 17:14:48 +0000
Subject: [PATCH] several updates

---
 Solver/function.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Solver/function.h b/Solver/function.h
index cc9d41a583..4392469adb 100644
--- a/Solver/function.h
+++ b/Solver/function.h
@@ -213,7 +213,7 @@ class dataCacheMap {
   int _nbEvaluationPoints;
   std::map<const function*, dataCacheDouble*> _cacheDoubleMap;
   std::set<dataCacheDouble*> _allDataCaches;
-  std::set<dataCacheDouble*> _toInvalidateOnElement;
+  std::vector<dataCacheDouble*> _toInvalidateOnElement;
   MElement *_element;
   dataCacheMap() {
     _functionSolution = _functionSolutionGradient = NULL;
@@ -225,7 +225,7 @@ class dataCacheMap {
   {
     _allDataCaches.insert(data);
     if(invalidatedOnElement)
-      _toInvalidateOnElement.insert(data);
+      _toInvalidateOnElement.push_back(data);
   }
   virtual dgDataCacheMap *asDgDataCacheMap() 
   {
@@ -246,7 +246,7 @@ class dataCacheMap {
   virtual void setElement(MElement *element)
   {
     _element=element;
-    for(std::set<dataCacheDouble*>::iterator it=_toInvalidateOnElement.begin(); 
+    for(std::vector<dataCacheDouble*>::iterator it=_toInvalidateOnElement.begin(); 
         it!= _toInvalidateOnElement.end(); it++) {
       (*it)->_valid=false;
     }
-- 
GitLab