Skip to content
Snippets Groups Projects
Commit 34c274f4 authored by Bruno Seny's avatar Bruno Seny
Browse files

several updates

parent a342e1d5
No related branches found
No related tags found
No related merge requests found
...@@ -213,7 +213,7 @@ class dataCacheMap { ...@@ -213,7 +213,7 @@ class dataCacheMap {
int _nbEvaluationPoints; int _nbEvaluationPoints;
std::map<const function*, dataCacheDouble*> _cacheDoubleMap; std::map<const function*, dataCacheDouble*> _cacheDoubleMap;
std::set<dataCacheDouble*> _allDataCaches; std::set<dataCacheDouble*> _allDataCaches;
std::set<dataCacheDouble*> _toInvalidateOnElement; std::vector<dataCacheDouble*> _toInvalidateOnElement;
MElement *_element; MElement *_element;
dataCacheMap() { dataCacheMap() {
_functionSolution = _functionSolutionGradient = NULL; _functionSolution = _functionSolutionGradient = NULL;
...@@ -225,7 +225,7 @@ class dataCacheMap { ...@@ -225,7 +225,7 @@ class dataCacheMap {
{ {
_allDataCaches.insert(data); _allDataCaches.insert(data);
if(invalidatedOnElement) if(invalidatedOnElement)
_toInvalidateOnElement.insert(data); _toInvalidateOnElement.push_back(data);
} }
virtual dgDataCacheMap *asDgDataCacheMap() virtual dgDataCacheMap *asDgDataCacheMap()
{ {
...@@ -246,7 +246,7 @@ class dataCacheMap { ...@@ -246,7 +246,7 @@ class dataCacheMap {
virtual void setElement(MElement *element) virtual void setElement(MElement *element)
{ {
_element=element; _element=element;
for(std::set<dataCacheDouble*>::iterator it=_toInvalidateOnElement.begin(); for(std::vector<dataCacheDouble*>::iterator it=_toInvalidateOnElement.begin();
it!= _toInvalidateOnElement.end(); it++) { it!= _toInvalidateOnElement.end(); it++) {
(*it)->_valid=false; (*it)->_valid=false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment