Salome HOME
projects
/
modules
/
smesh.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use nodes and elements pointer instead on IDs
[modules/smesh.git]
/
src
/
SMESH_I
/
SMESH_MEDSupport_i.cxx
diff --git
a/src/SMESH_I/SMESH_MEDSupport_i.cxx
b/src/SMESH_I/SMESH_MEDSupport_i.cxx
index 7b9b8f255edf2382f40ac17f4db20abdb9db2b5f..931bb835bb7e56c2f54e51b64fcc26e9291507e5 100644
(file)
--- a/
src/SMESH_I/SMESH_MEDSupport_i.cxx
+++ b/
src/SMESH_I/SMESH_MEDSupport_i.cxx
@@
-308,16
+308,14
@@
Engines::long_array * SMESH_MEDSupport_i::getNumber(
int i = 0;
myseq->length(_subMeshDS->NbNodes());
int i = 0;
myseq->length(_subMeshDS->NbNodes());
- const set<const SMDS_MeshNode*> & myNodesMap = _subMeshDS->GetNodes();
- set<const SMDS_MeshNode*>::const_iterator it=myNodesMap.begin();
- for (; it!=myNodesMap.end(); it++)
+ SMDS_Iterator<const SMDS_MeshNode*> * it = _subMeshDS->GetNodes();
+ while(it->more())
{
{
- myseq[i] = (*it)->GetID();
- SCRUTE((*it)->GetID());
- SCRUTE(myseq[i]);
+ myseq[i] = it->next()->GetID();
i++;
};
i++;
};
+ delete it;
SCRUTE(myseq->length());
MESSAGE("End of SMESH_MEDSupport_i::getNumber");
SCRUTE(myseq->length());
MESSAGE("End of SMESH_MEDSupport_i::getNumber");