]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Debug for new MEDReader
authorageay <ageay>
Wed, 8 Jan 2014 10:20:37 +0000 (10:20 +0000)
committerageay <ageay>
Wed, 8 Jan 2014 10:20:37 +0000 (10:20 +0000)
src/MEDLoader/MEDFileFieldOverView.cxx

index 2d42a00fbed6e9b030114aa48439fb309f66b439..d8ed26f422288f61899baea4da6f5973a20b97bb 100644 (file)
@@ -52,7 +52,7 @@ std::vector<const BigMemoryObject *> MEDFileMeshStruct::getDirectChildren() cons
 
 MEDFileMeshStruct::MEDFileMeshStruct(const MEDFileMesh *mesh):_mesh(mesh)
 {
-  std::vector<int> levs=mesh->getNonEmptyLevels();
+  std::vector<int> levs(mesh->getNonEmptyLevels());
   _name=mesh->getName();
   _nb_nodes=mesh->getNumberOfNodes();
   _geo_types_distrib.resize(levs.size());
@@ -1965,9 +1965,8 @@ MEDMeshMultiLev *MEDFileField1TSStruct::buildFromScratchDataSetSupport(const MED
   else
     {
       if(!presenceOfPartialNodeDiscr(pos1))
-        {//we have only all nodes, no cell definition info -> level 0;
-          std::vector<int> levs(1,0);
-          return MEDMeshMultiLev::New(mst->getTheMesh(),levs);
+        {//we have only all nodes, no cell definition info -> all existing levels !;
+          return MEDMeshMultiLev::New(mst->getTheMesh(),mst->getTheMesh()->getNonEmptyLevels());
         }
       else
         return MEDMeshMultiLev::NewOnlyOnNode(mst->getTheMesh(),_already_checked[pos1][0].getPfl(globs));