]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Debug for new MEDReader EDF:2219
authorageay <ageay>
Wed, 8 Jan 2014 10:07:24 +0000 (10:07 +0000)
committerageay <ageay>
Wed, 8 Jan 2014 10:07:24 +0000 (10:07 +0000)
src/MEDLoader/MEDFileFieldOverView.cxx

index 6d9da01659b9e4b58c16256c919c359ce413e8d4..2d42a00fbed6e9b030114aa48439fb309f66b439 100644 (file)
@@ -153,8 +153,7 @@ MEDMeshMultiLev *MEDMeshMultiLev::New(const MEDFileMesh *m, const std::vector<IN
 
 MEDMeshMultiLev *MEDMeshMultiLev::NewOnlyOnNode(const MEDFileMesh *m, const DataArrayInt *pflOnNode)
 {
-  std::vector<int> levs(1,0);
-  MEDCouplingAutoRefCountObjectPtr<MEDMeshMultiLev> ret(MEDMeshMultiLev::New(m,levs));
+  MEDCouplingAutoRefCountObjectPtr<MEDMeshMultiLev> ret(MEDMeshMultiLev::New(m,m->getNonEmptyLevels()));
   ret->selectPartOfNodes(pflOnNode);
   return ret.retn();
 }