]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Debug of RENUMBER test.
authorageay <ageay>
Mon, 22 Jul 2013 06:08:53 +0000 (06:08 +0000)
committerageay <ageay>
Mon, 22 Jul 2013 06:08:53 +0000 (06:08 +0000)
src/MEDLoader/MEDFileField.cxx

index 3e28557a176c5c885e75f2621f672d4acf2de1ec..00dbb7b36da4ff76c344082c2da13a2be9e3343f 100644 (file)
@@ -2343,11 +2343,16 @@ MEDFileFieldPerMesh::MEDFileFieldPerMesh(med_idt fid, MEDFileAnyTypeField1TSWith
   for(int i=0;i<MED_N_CELL_FIXED_GEO;i++)
     {
       int nbProfile =MEDfield23nProfile(fid,nasc.getName().c_str(),getIteration(),getOrder(),MED_CELL        ,typmai[i],_mesh_csit,meshName,pflName,locName);
+      std::string name0(MEDLoaderBase::buildStringFromFortran(meshName,MED_NAME_SIZE+1));
       int nbProfile2=MEDfield23nProfile(fid,nasc.getName().c_str(),getIteration(),getOrder(),MED_NODE_ELEMENT,typmai[i],_mesh_csit,meshName,pflName,locName);
+      std::string name1(MEDLoaderBase::buildStringFromFortran(meshName,MED_NAME_SIZE+1));
       if(nbProfile>0 || nbProfile2>0)
         {
           _field_pm_pt.push_back(MEDFileFieldPerMeshPerType::NewOnRead(fid,this,ON_CELLS,typmai2[i],nasc));
-          _mesh_name=MEDLoaderBase::buildStringFromFortran(meshName,MED_NAME_SIZE+1);
+          if(nbProfile>0)
+            _mesh_name=name0;
+          else
+            _mesh_name=name1;
         }
     }
   int nbProfile=MEDfield23nProfile(fid,nasc.getName().c_str(),getIteration(),getOrder(),MED_NODE,MED_NONE,_mesh_csit,meshName,pflName,locName);